Re: [Fink-devel] build-as-nobody causes cpio error

2010-01-07 Thread Hanspeter Niederstrasser
This email is informational in case it shows up again for other people.

I was building gcc44 on a clean 10.5/32bit system and the build 
continuously failed when using --build-as-nobody (important note: this 
system does _not_ have the passwd package installed and no fink-bld 
user, so --build-as-nobody uses the system built-in 'nobody' user). 
After some testing, I found out the cause of the error and am listing my 
findings here for the record.  The subject line is from an old 
fink-devel thread[1] from 2008 with an identical symptom in another 
package, so hopefully the archives will find it and list it as part of 
that thread.

The --build-as-nobody build was halting with the following output:

checking how to create a ustar tar archive...
ATTENTION! cpio archive volume change required.
Ready for archive volume: 2
Input archive name or "." to quit cpio.
Archive name >


Entering '.' (or ctrl-D) was the only way it would proceed.  When 
building as a normal user, gnutar was successfully found for the 
configure test with no manual intervention.  I tracked this test down to 
it's configure.ac file, where the macro is called as:

AM_INIT_AUTOMAKE([1.9.0 gnu std-options tar-ustar -Wno-portability])

This generates a test for several tar and tar-like programs.  When 
building as nobody, these tests all exited with variations of:


tar: value 4294967294 out of uid_t range 0..2097151
tar: Error exit delayed from previous errors

or

pax: Ustar header field is too small for uid 4294967294, using nobody


'id nobody' gives --> "uid=4294967294(nobody) gid=4294967294(nobody) 
groups=4294967294(nobody)".  4294967294 must be too large for some 
system call, which led to the error in the configure test, which led to 
the build halting (why the cpio test becomes interactive is a whole 
other issue that I'm not touching).  The user fink-bld has an id=266, so 
the error doesn't show up when that is present and explains why most 
people using --build-as-nobody did not get the build halt.

Adding "am_cv_prog_tar_ustar=gnutar" (the results from a successful 
non-nobody build) to ConfigureParams as suggested by pogma[2] did not 
work because that particular secondary ./configure is not passed the 
options from the main ./configure script (however, it might work for 
other programs that only have one ./configure).

Hopefully this information is a useful addition to the archives.

Hanspeter

[1] 
http://www.mail-archive.com/fink-devel@lists.sourceforge.net/msg16815.html

[2] 
http://www.mail-archive.com/fink-devel@lists.sourceforge.net/msg16818.html

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] build-as-nobody causes cpio error

2008-03-24 Thread Alexander K. Hansen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Trevor Harmon wrote:
| I'm working on a package that fails when built with "-m --build-as-
| nobody". The error I get occurs when running the package's configure  
| script:
|
| checking how to create a ustar tar archive...
| ATTENTION! cpio archive volume change required.
| Ready for archive volume: 2
| Input archive name or "." to quit cpio.
| Archive name >
|
| At this point the build halts. I can hit ^D to continue the build, and  
| everything seems to work fine after that. But I can't get past this  
| prompt without manual intervention.
|
| Rebuilding without the build-as-nobody does not generate this prompt.
|
| I thought maybe the Fink version of cpio is required, but a package  
| for it doesn't seem to exist.
|
| Any suggestions on how to fix it? Thanks,
|
| Trevor
|
A quick and dirty way, as long as the build works under 
--build-as-nobody when you've manually intervened, is to put a note in, 
say, DescPackaging that it doesn't work under --build-as-nobody without 
manual intervention.
As long as the package isn't installing directly into a user's 
filesystem (what --build-as-nobody is designed to detect), then not 
working with --build-as-nobody isn't a huge deal.  In fact, it's not 
recommended for end-users anyway, because some packages (though I have 
yet to encounter them) have been reported to generate binaries 
differently when not built as root.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFH56bPB8UpO3rKjQ8RAuz8AJ4/cPIhHghocVJEpE2U+LzchYtYSQCdEyr/
mHc08gO/chPaXIUrw6dvYbQ=
=8BQ0
-END PGP SIGNATURE-


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel


Re: [Fink-devel] build-as-nobody causes cpio error

2008-03-24 Thread Peter O'Gorman
Trevor Harmon wrote:
> I'm working on a package that fails when built with "-m --build-as- 
> nobody". The error I get occurs when running the package's configure  
> script:
> 
> checking how to create a ustar tar archive...
> ATTENTION! cpio archive volume change required.
> Ready for archive volume: 2
> Input archive name or "." to quit cpio.
> Archive name >

If the result of the test is an autoconf cache variable, you can set it
at configure time to avoid the test.

Assuming the var is ac_cv_tar, and configure was generated with
autoconf-2.5.x or later:

./configure %c ac_cv_tar=tar
make

Peter
-- 
Peter O'Gorman
http://pogma.com

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel