dpkg-gencontrol fails when debian/control is mode 444

Bug #1455205 reported by Quanah Gibson-Mount
16
This bug affects 3 people
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/build/p4/zimbra/main/ThirdParty/openssl/deb/zimbra-openssl'
   dh_installdeb
   dh_gencontrol
dpkg-gencontrol: error: cannot write debian/control: Permission denied
dh_gencontrol: dpkg-gencontrol -pzimbra-openssl -ldebian/changelog -Tdebian/zimbra-openssl.substvars -Pdebian/zimbra-openssl returned exit code 13
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://sources.debian.net/src/dpkg/1.17.25/scripts/dpkg-gencontrol.pl/#L387

Since dpkg-gencontrol is not actually modifying/writing the actual debian/control file, there should be no requirement that the file be writeable.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dpkg (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.