dpkg-gencontrol fails when debian/control is mode 444
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
If debian/control is read only, dpkg-buildpackage will fail with the following error:
make[1]: Leaving directory `/home/
dh_installdeb
dh_gencontrol
dpkg-gencontrol: error: cannot write debian/control: Permission denied
dh_gencontrol: dpkg-gencontrol -pzimbra-openssl -ldebian/changelog -Tdebian/
make: *** [binary] Error 13
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
This is problematic when keeping the debian/* files necessary for building a package under a revision control system that sets files to mode 444 once they are submitted and not opened for editing
The root problem seems to come from http://
Since dpkg-gencontrol is not actually modifying/writing the actual debian/control file, there should be no requirement that the file be writeable.
Status changed to 'Confirmed' because the bug affects multiple users.