[Build-common-hackers] Bug#489430: Bug#489430: closed by Jonas Smedegaard <dr at jones.dk> (Bug#489430: fixed in cdbs 0.4.53)

Frédéric Brière fbriere at fbriere.net
Thu Mar 19 00:53:25 UTC 2009


On Wed, Mar 18, 2009 at 09:48:32PM +0100, Martin Koeppe wrote:
> The behaviour still hasn't changed. time_1.7-23 can't still be built  

Hmm, me thinks Jonas mistook r269 for something else.  :)

> with debhelper's dh_testroot, instead the hardcoded
>   test "`id -u`" = 0
> is executed.

What intrigues me is that dh_testroot does (almost) just that:

  if ($< != 0) {
	error("You must run this as root (or use fakeroot).");
  }

Why would one work but not the other?

Notice that dh_testroot tests for the *real* UID, while buildcore.mk
tests for the *effective* UID.  Does this explain the discrepancy?
(What does "id -ru" return for you?)


-- 
< sam> /.ing an issue is like asking an infinite number of monkeys for
       advice
		-- in #debian-devel





More information about the Build-common-hackers mailing list