[Bug 1455205] [NEW] dpkg-gencontrol fails when debian/control is mode 444

Quanah Gibson-Mount 1455205 at bugs.launchpad.net
Thu May 14 18:56:37 UTC 2015


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
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:
  New

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