When trying to emerge apache, I get the followong results. Rebuilding m4, autoconf, automake doesn't help. Lowering my cflags, export WANT_AUTCONF=2.57 or WANT_AUTOCONF=2.13, running strace doesn't help either. Regards, S
When trying to emerge apache, I get the followong results. Rebuilding m4, autoconf, automake doesn't help. Lowering my cflags, export WANT_AUTCONF=2.57 or WANT_AUTOCONF=2.13, running strace doesn't help either. Regards, Sébastien. Reproducible: Always Steps to Reproduce: root@idk-002c307 seb # emerge apache Actual Results: Calculating dependencies ...done! >>> emerge (1 of 1) net-www/apache-2.0.46 to / >>> md5 src_uri ;-) httpd-2.0.46.tar.gz >>> Unpacking source... >>> Unpacking httpd-2.0.46.tar.gz to /var/tmp/portage/apache-2.0.46/work * Applying apache-2.0.46-gentoo.diff... [ ok ] * /home/httpd is your Apache2 data directory ... rebuilding srclib/apr/configure buildconf: checking installation... head: `-1' option is obsolete; use `-n 1' Try `head --help' for more information. buildconf: autoconf not found. You need autoconf version 2.13 or newer installed to build Apache from CVS. ./buildconf failed for apr !!! ERROR: net-www/apache-2.0.46 failed. !!! Function src_unpack, Line 120, Exitcode 1 !!! buildconf failed Portage 2.0.48-r1 (default-x86-1.4, gcc-3.3, glibc-2.2.5-r2,2.3.2-r2) ================================================================= System uname: 2.5.70-mm2 i686 Pentium III (Coppermine) GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror ftp://ftp.fhh.opensource-mirror.de/gentoo.org ftp://ftp.tu-clausthal.de/pub/linux/gentoo ftp://sunsite.informatik.rwth.aachen.de/pub/Linux/gentoo http://gentoo.oregonstate.edu" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/home/pub/src" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg mikmod mmx mpeg ncurses nls pdflib png quicktime truetype xml2 xmms xv zlib directfb gtkhtml alsa gdbm berkdb slang readline tetex aalib nas bonobo svga tcltk java guile mysql X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt motif opengl mozilla ldap cdr scanner acpi acpi4linux apache2 dvd emacs evms2 gtk2 hbci imap lcms maildir mbox moznocompose moznoirc moznomail pic plotutils samba socks5 sse tiff usb vim-with-x xfs -libg++ -spell -arts -kde" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Created attachment 12607 [details] strace qpkg -f /bin/ps
This bug can be related to the bug #21208 concerning procps and the hammer patch as I also get the same floating point error attempting to run top: bash $ top Floating point exception bash $ Moreover, something is wrong with qpkpg that returns quite the same error: bash $ qpkg -f /bin/ps uniq: `-1' option is obsolete; use `-f 1' Try `uniq --help' for more information. bash $ (see attachment "strace qpkg -f /bin/ps" above) NB: I have coreutils installed.
Umm, its right in front of you -- if you would just LOOK head: `-1' option is obsolete; use `-n 1' Try `head --help' for more information. So, it looks to me, at least, that somehow your version of "head" is too new. I dont have time to look into this much further, but maybe try downgrading head? What package is that in I wonder....
Another thought... if this "head" thing turns out to be a deprecated option or whatever, then the Apache people I think would want to update their build scripts...
Yeah, it was in front of my "head" :) head is part of the coreutils package, which "intends to replace fileutils (which also contains a "head"), text-utils and sh-utils". I guess the apache people still use the head from fileutils and it works for them. However, you're right saying that they "would want to update their build scripts..." Maybe an update of the dependancies with !=sys-apps/coreutils would be necessary until this problem gets resolved. Kind regards, S
Yeah, it was in front of my "head" :) head is part of the coreutils package, which "intends to replace fileutils (which also contains a "head"), text-utils and sh-utils". I guess the apache people still use the head from fileutils and it works for them. However, you're right saying that they "would want to update their build scripts..." Maybe an update of the dependancies with !=sys-apps/coreutils would be necessary until this problem gets resolved. Kind regards, Sébastien NB: I use sys-apps/coreutils-5.0.0 and I was about to try recompiling apache with the coreutils-4.5.11-r1 ebuild as I get a sandbox violation (quite often these days :( ). It's too late for me (1am), I give up.
Well, I too have coreutils-5.0 and I dont get this problem, so you're either having a PATH difficulty or something else is messed up, I dunno. At any rate, why not just try: cd net-www/apache ebuild apache-2.0.46.ebuild unpack (it'll fail...) cd /var/tmp/portage/apache-2.0.46/work/httpd-2.0.46/ and then look around and find out what is calling `head -1' and fix it to say `head -n 1' just exactly like the error message says to do! Then you can run `./buildconf' while you're still in the work/httpd-2.0.46 directory. Once you get ./buildconf to finish without complaining, then you may: cd net-www/apache touch /var/tmp/portage/apache-2.0.46/.unpacked ebuild apache-2.0.46.ebuild merge hopefully that will fix you up!
Created attachment 13191 [details, diff] Fix for deprecated head -1 build problem Attached is a drop-in replacement for /usr/portage/net-www/apache/files/apache-2.0.46-gentoo.diff which includes the head -1 fix. Just overwrite the existing file with this one, and emerge apache.
*** Bug 22993 has been marked as a duplicate of this bug. ***
ok so the GNU people deprecated the -1 shortcut for a bunch of utilities it seems, among them uniq(1) head(1) and tail(1) maybe more? im not going to run around like a chicken with my "head" (haha) cut off adding patches all over the portage tree for this, sorry. hopefully the upstream project maintainers will update their codebases! thanks for the patch though, its appreciated.
Thank you for the patch Jason, it solves the problem nicely. Sorry that I have not been of great help this time. I think we can mark this "headache" as resolved. Regards, S
Thank you for the patch Jason, it solves the problem nicely. Sorry that I have not been of great help this time. I think we can mark this "headache" as resolved. Regards, Sébastien.
no, using a patch is way overkill. and then when ASF updates their build scripts im just going to have to redo it AGAIN. well, no way hose. instead ive just fixed it inline. rsync your tree and you'll get the fixed version.
OK thanks Donny S
OK thanks Donny Sébastien