Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31893 - esdl-0.94.0125 build lacks tail +2 -> tail -n +2 change
Summary: esdl-0.94.0125 build lacks tail +2 -> tail -n +2 change
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Heinrich Wendel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-24 01:37 UTC by Andreas Kobara
Modified: 2004-04-11 19:16 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kobara 2003-10-24 01:37:51 UTC
compilation of package fails due to the use of an obsolete tail +2 command which should read tail -n +2 on newer systems. The ebuild should require coreutils=>5.0.91 and patch the esdl source Makefiles:

work/esdl-0.93.0909/Makefile:ERL_DIR := $(shell echo 'io:format("~s~n",[code:root_dir()]),halt().' | erl | sed 's,^[0-9]*> *,,g' | tail +2)
work/esdl-0.93.0909/c_src/Makefile:  ERL_DIR := $(shell echo 'io:format("~s~n",[code:root_dir()]),halt().' | erl | sed 's,^[0-9]*> *,,g' | tail +2)
work/esdl-0.93.0909/c_src/Makefile.orig:  ERL_DIR := $(shell echo 'io:format("~s~n",[code:root_dir()]),halt().' | erl | sed 's,^[0-9]*> *,,g' | tail +2)
work/esdl-0.93.0909/c_src/Makefile.macOSX:ERL_DIR := $(shell echo 'io:format("~s~n",[code:root_dir()]),halt().' | erl | sed 's,^[0-9]*> *,,g' | tail +2)

to read: tail -n +2

Regards,
Andy.
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2003-10-24 04:32:18 UTC
thx, fixed :D
Comment 2 Andreas Kobara 2004-04-04 08:42:17 UTC
same problem in esdl-0.94.0125 please add those two "tail -n" sed lines.

src_compile() {
        cp c_src/Makefile{,.orig}
        sed -e "/^CFLAGS.*/s:\\\\$: ${CFLAGS} \\\\:" \
                c_src/Makefile.orig > c_src/Makefile
        sed -i -e s:"tail +2":"tail -n +2":g Makefile
        sed -i -e s:"tail +2":"tail -n +2":g c_src/Makefile
        make || die
}

Regards,
Andy.
Comment 3 SpanKY gentoo-dev 2004-04-11 19:16:50 UTC
fixed in cvs ... also fixed the CFLAGS sed since it's changed through the released