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

Marc Haber Marc Haber <mh+debian-packages@zugschlus.de>, 262607@bugs.debian.org
Sun, 1 Aug 2004 08:53:43 +0200


tags 262607 confirmed
thanks

On Sun, Aug 01, 2004 at 04:57:33AM +0200, Robert Millan wrote:
> 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:
> 
> [...]
>  debian/rules build
> test -d debian/patched || install -d debian/patched
> dpatch  apply-all  
> [...]
> applying patch 34_eximstatsmanpage to ./ ...patch: **** can't open file src/eximstats.src : Permission denied
>  failed.
> make: *** [patch-stamp] Error 1

I tried it with "dpkg-buildpackage -rsudo" twice, and I got a
different error message:
reverting patch 30_dontoverridecflags from ./ ... ok.
reverting patch 10_daemon_close_fds from ./ ... ok.
rm -rf patch-stamp patch-stampT debian/patched
 dpkg-source -b exim4-4.34
dpkg-source: building exim4 using existing exim4_4.34.orig.tar.gz
dpkg-source: building exim4 in exim4_4.34-4.diff.gz
diff: ./exim4-4.34/src/eximstats.src: Permission denied
dpkg-source: failure: diff on ./exim4-4.34/src/eximstats.src gave error exit status 2
[11/10]mh@lefler[chroot sid]:~/exim4/exim4-4.34$ ls -al src/eximstats.src
-rw-------  1 root root 88K Aug  1 06:39 src/eximstats.src

A cursory inspection of the package for chmod and umask calls didn't
give any results. But that might be due to the early time of day.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Karlsruhe, Germany |  lose things."    Winona Ryder | Fon: *49 721 966 32 15
Nordisch by Nature |  How to make an American Quilt | Fax: *49 721 966 31 29