Bug#262607: FTBFS when "gain-root" command gains real root

Andreas Metzler Andreas Metzler <ametzler@downhill.at.eu.org>, 262607@bugs.debian.org
Sun, 1 Aug 2004 12:43:32 +0200


tags 262607 pending
# fixed in CVS
tags 262607 sarge-ignore
# I had asked vorlon on IRC.
thanks
On 2004-08-01 Robert Millan <rmh@debian.org> wrote:
> Package: exim4
> Severity: serious

> Building exim4 when "gain-root" command gains real root (e.g. -rsudo)
> leaves the source tree in an unconsistent state. The next time build is
> attempted (either with -rsudo or -rfakeroot) it will fail with:

Hello,
This is caused by the fact that src/eximstats.src is shipped with 0600
permissions in the upstream tarball. We patch it at build time and
unpatch it at clean time, the latter runs as root|fakeroot, therefore
the file ends up being owned by root. Now, when dpkg-buildpackage
tries to generate a diff (running as non-root) it fails to read the
file. Boom.

I've commited this to CVS, fixing the issue:
----------------------
--- rules       14 Jul 2004 09:30:10 -0000      1.68
+++ rules       1 Aug 2004 10:29:54 -0000
@@ -234,6 +234,9 @@
 endif
        dh_clean podebconfize
        rm -rf Local
+       # fix broken (0600) permissions in original tarball
+       find OS doc scripts exim_monitor src util -perm -044 -or -print0 |\
+               xargs -0r chmod -c og+r
----------------------

I do not know yet when a upload will happen, I'll probably wait for
some translations to accumulate and will the push this together with
translations to tpu.
             cu andreas
-- 
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"