Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 319207 - sys-fs/e2fsprogs-1.41.9 uses hardcoded /usr/bin/sed
Summary: sys-fs/e2fsprogs-1.41.9 uses hardcoded /usr/bin/sed
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-10 21:45 UTC by Konstantin Münning
Modified: 2010-05-18 18:23 UTC (History)
1 user (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 Konstantin Münning 2010-05-10 21:45:29 UTC
When compiling sys-fs/e2fsprogs-1.41.9 it failed with

making all in debugfs
make[2]: Entering directory `/var/tmp/portage/sys-fs/e2fsprogs-1.41.9/work/e2fsprogs-1.41.9/debugfs'
        MK_CMDS debug_cmds.c
        CC debugfs.c
/usr/bin/mk_cmds: line 51: /usr/bin/sed: No such file or directory
        CC util.c
        CC ncheck.c
        CC icheck.c
        CC ls.c
        CC lsdel.c
        CC dump.c
        CC set_fields.c
        CC logdump.c
        CC htree.c
        CC unused.c
        SUBST debugfs.8
        CC debug_cmds.c
debug_cmds.c:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ssu00001'
debug_cmds.c:5: warning: data definition has no type or storage class
debug_cmds.c:5: error: 'ssu00001' undeclared here (not in a function)
debug_cmds.c:5: warning: excess elements in scalar initializer
debug_cmds.c:5: warning: (near initialization for 'ss_request_table')
make[2]: *** [debug_cmds.o] Error 1

What made me suspicious was that it tried to execute /usr/bin/sed as sed is located in /bin/sed and configure correctly finds it. With a symlink  /usr/bin/sed -> /bin/sed e2fsprogs emerges fine. So probably easy to reproduce.
Comment 1 Matti Bickel (RETIRED) gentoo-dev 2010-05-18 10:39:03 UTC
Can you attach your emerge --info and the full build.log, please? I'm not getting this error here on amd64.
Comment 2 Konstantin Münning 2010-05-18 18:23:01 UTC
(In reply to comment #1)
> Can you attach your emerge --info and the full build.log, please? I'm not
> getting this error here on amd64.
> 

I should have checked the message better. There was a hardcoded sed in /usr/bin/mk_cmds which belongs to sys-libs/e2fsprogs-libs. Apparently sys-libs/e2fsprogs-libs preferres the symlink /usr/bin/sed over /bin/sed when emerging and after upgrading/cleaning the system (and removing the orphan /usr/bin/sed), /usr/bin/mk_cmds stopped working because of the hardcoded path. Reemerging sys-libs/e2fsprogs-libs solved the problem as the path there is now pointing to /bin/sed (line 9). I don't know why the absolute path is used for sed as for awk it relies on proper search path. I'm not sure if using absolute paths should be considered as a bug.