[Bug 1455205] Re: dpkg-gencontrol fails when debian/control is mode 444
Launchpad Bug Tracker
1455205 at bugs.launchpad.net
Thu Jun 23 02:02:09 UTC 2016
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: dpkg (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dpkg in Ubuntu.
https://bugs.launchpad.net/bugs/1455205
Title:
dpkg-gencontrol fails when debian/control is mode 444
Status in dpkg package in Ubuntu:
Confirmed
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1455205/+subscriptions
More information about the foundations-bugs
mailing list