>>> Source unpacked. eutils set +vx; \ for var in BINDIR CC CFLAGS COUNTSUFFIX DEFDICT DEFHASH DEFLANG \ HASHSUFFIX INSTALL \ LANGUAGES LIBDIR LIBES LINT LINTFLAGS \ MAKE_SORTTMP MAN1DIR MAN1EXT MAN4DIR MAN4EXT MASTERHASH \ MSGLANG REGLIB STATSUFFIX \ TERMLIB YACC \ ; do \ cat config.X local.h \ | sed -n -e "s/^#define[ ]*$var[ ]*"'"'"/$var=/p" \ | sed -e 's/".*$/'"'/" -e "s/=/='/" \ | tail -1; \ done > config.sh; \ echo 'case "$MAKE_SORTTMP" in "") \ SORTTMP="-e /!!SORTTMP!!/s/=.*$/=/";; *) SORTTMP=;; esac' \ >> config.sh tail: `-1' option is obsolete; use `-n 1' Try `tail --help' for more information. tail: `-1' option is obsolete; use `-n 1' Try `tail --help' for more information. sed: Couldn't flush stdout: Broken pipe tail: `-1' option is obsolete; use `-n 1' Try `tail --help' for more information. sed: Couldn't flush stdout: Broken pipe tail: `-1' option is obsolete; use `-n 1' Try `tail --help' for more information. tail: `-1' option is obsolete; use `-n 1' ... There's some sort breakage further on down
Created attachment 19680 [details, diff] fixes tail problem, please verify
I verified the brokage. Stefan's patch removes the problem with tail(1)'s different syntax, but then there's a similar problem with sort(1) later on the build: sort -u -t/ +0f -1 +0 -T /tmp -o english.xlg [input files] sort: invalid option -- 1 The three options +0f -1 +0 seem to have no meaning in sort now. -1 and +0 can be replaced with -k 0,1 (or something similar), but I haven't got an idea for the +0f. I tried this with various coreutilses: 5.0-r3 5.0-r4 5.0.91, same result everywhere.
Yep. the headtail bugs are easily fixed using the eclass, but the sort ones are a little more trciky. unfortunately i have a lot of work on my plate right now but i will make sure the sort fix gets added to the fixheadtails eclass asap.
*** Bug 32658 has been marked as a duplicate of this bug. ***
I edited the tail prob on my system. But ispell still wont build. It doesnt do anything with parse.y . It stops after failing to find parse.c which never gets made. Looking at Bug 32658 comment #5 I checked parse.y and found no extra ";". So I tried "bison parse.y" which gave me "parse.tab.c" left there and tried ebuild...compile. NO joy "make " didnt work either. tester root # ebuild /home/portage/app-text/ispell/ispell-3.2.06-r6.ebuild compile >>> md5 src_uri ;-) ispell-3.2.06.tar.gz >>> md5 src_uri ;-) ispell-3.2.06-r6-gentoo-0.1.diff.bz2 eutils eutils >>> Checking ispell-3.2.06.tar.gz's mtime... >>> Checking ispell-3.2.06-r6-gentoo-0.1.diff.bz2's mtime... >>> WORKDIR is up-to-date, keeping... eutils make: `config.sh' is up to date. + parse.y /bin/sh: line 1: parse.y: command not found + gcc -march=athlon-xp -fomit-frame-pointer -Os -falign-jumps=4 -falign-functions=4 -pipe -c y.tab.c gcc: y.tab.c: No such file or directory gcc: no input files + mv y.tab.o parse.o mv: cannot stat `y.tab.o': No such file or directory + rm -f y.tab.c + gcc -march=athlon-xp -fomit-frame-pointer -Os -falign-jumps=4 -falign-functions=4 -pipe -o buildhash buildhash.o hash.o makedent.o parse.o gcc: parse.o: No such file or directory make: *** [buildhash] Error 1 !!! ERROR: app-text/ispell-3.2.06-r6 failed. !!! Function src_compile, Line 40, Exitcode 2 !!! (no error message)
*** Bug 34930 has been marked as a duplicate of this bug. ***
It looks like you can fix it by exporting "_POSIX2_VERSION=199209" before emerging ispell. This is the trick I have to use when using older Makeself-Installers, which suffer from the same problem. The export should enable the old tail syntax. It has fixed ispell on my machine. I made a (quite trivial) patch for the ebuild to show what I changed.
Created attachment 21782 [details, diff] ebuild patch This is a patch to show what I changed on the ebuild to fix the tail problem.
brad already fixed this -- brad, can you comment please
closing, for no follow up from brad