Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342593 - app-arch/tar-1.24 fails to ./configure with FEATURES="-userpriv"
Summary: app-arch/tar-1.24 fails to ./configure with FEATURES="-userpriv"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 342737 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-10-25 08:04 UTC by Samuli Suominen (RETIRED)
Modified: 2010-10-26 10:51 UTC (History)
20 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log (config.log,326.38 KB, text/plain)
2010-10-25 08:06 UTC, Samuli Suominen (RETIRED)
Details
patch (tar-1.24.ebuild.patch,308 bytes, patch)
2010-10-25 08:16 UTC, Samuli Suominen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Samuli Suominen (RETIRED) gentoo-dev 2010-10-25 08:04:52 UTC
checking whether mknod can create fifo without root privileges... configure: error: in `/var/tmp/portage/app-arch/tar-1.24/work/tar-1.24':
configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)
See `config.log' for more details.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-arch/tar-1.24/work/tar-1.24/config.log
 * ERROR: app-arch/tar-1.24 failed:
 *   econf failed
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-10-25 08:06:02 UTC
Created attachment 251901 [details]
config.log
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-10-25 08:16:24 UTC
Created attachment 251903 [details, diff]
patch

Kind of obvious, but oh well :P
Comment 3 Francis Galiegue 2010-10-25 08:23:18 UTC
I confirm. I don't have userpriv in FEATURES and it fails with this exact error
message...

Another solution is, as mentioned in the message, to FORCE_UNSAFE_CONFIGURE=1
emerge -1 tar.
Comment 4 tman 2010-10-25 10:39:13 UTC
same error

checking whether mbrtowc works as well as mbtowc... (cached) guessing yes
checking whether mbrtowc handles incomplete characters... (cached) guessing yes
checking whether mbrtowc works as well as mbtowc... (cached) guessing yes
checking whether mbsrtowcs works... guessing yes
checking for mempcpy... (cached) yes
checking for memrchr... yes
checking whether mkdir handles trailing slash... yes
checking whether mkdir handles trailing dot... yes
checking for mkdtemp... yes
checking whether mkfifo rejects trailing slashes... yes
checking whether mknod can create fifo without root privileges... configure: error: in `/var/tmp/portage/app-arch/tar-1.24/work/tar-1.24':
configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)
See `config.log' for more details.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-arch/tar-1.24/work/tar-1.24/config.log
 * ERROR: app-arch/tar-1.24 failed:
 *   econf failed
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_configure
 *   environment, line 2701:  Called econf '--enable-backup-scripts' '--bindir=/bin' '--libexecdir=/usr/sbin' '--enable-nls'
 *     ebuild.sh, line  558:  Called die
 * The specific snippet of code:
 *   			die "econf failed"
 * 
 * If you need support, post the output of 'emerge --info =app-arch/tar-1.24',
 * the complete build log and the output of 'emerge -pqv =app-arch/tar-1.24'.
 * The complete build log is located at '/var/log/portage/app-arch:tar-1.24:20101025-101620.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-arch/tar-1.24/temp/environment'.
 * S: '/var/tmp/portage/app-arch/tar-1.24/work/tar-1.24'

 * Messages for package app-arch/tar-1.24:

Comment 5 Martijn Schmidt 2010-10-25 10:41:40 UTC
(In reply to comment #3)
> I confirm. I don't have userpriv in FEATURES and it fails with this exact error
> message...
> 
> Another solution is, as mentioned in the message, to FORCE_UNSAFE_CONFIGURE=1
> emerge -1 tar.
> 

(In reply to comment #3)
> I confirm. I don't have userpriv in FEATURES and it fails with this exact error
> message...
> 
> Another solution is, as mentioned in the message, to FORCE_UNSAFE_CONFIGURE=1
> emerge -1 tar.
> 

Confirming as well, on ~amd64. Same error message. Setting the FORCE_UNSAFE_CONFIGURE=1 worked around the problem.

martijn@martijndesktop ~ $ emerge -pv tar

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] app-arch/tar-1.24 [1.23-r4] USE="nls -static" 0 kB
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2010-10-25 10:42:48 UTC
There is no need to say "Me too.". The issue is known and clear. Any posts from here on out are plain spam... so add yourself to CC list if you want, but that's it.
Comment 7 Ian Abbott 2010-10-25 15:30:20 UTC
I don't know if it matters to the functionality of tar, but when configured with FORCE_UNSAFE_CONFIGURE=1, the result of the "checking whether mknod can create fifo without root privileges..." test is "no".  However, if tar is configured by a non-root user on a Linux system, the result of this test should be "yes".
Comment 8 Ian Abbott 2010-10-25 15:52:55 UTC
(In reply to comment #7)
> I don't know if it matters to the functionality of tar, but when configured
> with FORCE_UNSAFE_CONFIGURE=1, the result of the "checking whether mknod can
> create fifo without root privileges..." test is "no".  However, if tar is
> configured by a non-root user on a Linux system, the result of this test should
> be "yes".

Replying to myself: when this test results in "no", MKNOD_FIFO_BUG is defined in config.h.  The only use of this is in gnu/mknod.c and the only effect of this define is to cause mkfifo() to be called instead of mknod() to create FIFOs.  The man page mknod(2) hints that mkfifo(3) is the preferred way of creating FIFOs nowadays, so the "no" result of the test should be perfectly harmless.
Comment 9 SpanKY gentoo-dev 2010-10-26 01:29:16 UTC
the var should be on a new line just like the "gl_cv_xxx" var above it.  feel free to commit with that change.
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2010-10-26 06:31:34 UTC
+  26 Oct 2010; Samuli Suominen <ssuominen@gentoo.org> tar-1.24.ebuild:
+  Fix ./configure with FEATURES="-userpriv" wrt #342593.
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2010-10-26 10:31:33 UTC
*** Bug 342737 has been marked as a duplicate of this bug. ***