Public bug reported:

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.

** Affects: dpkg (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1455205

Title:
  dpkg-gencontrol fails when debian/control is mode 444

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1455205/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to