Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685986 - app-crypt/argon2-20171227-r1: sed fails in src_prepare?
Summary: app-crypt/argon2-20171227-r1: sed fails in src_prepare?
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-14 19:36 UTC by kurlovitsch
Modified: 2019-06-02 14:03 UTC (History)
2 users (show)

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


Attachments
Argon 2 sed failure logs (build-argon2.log,10.46 KB, text/plain)
2019-06-02 14:03 UTC, Julian Cléaud
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kurlovitsch 2019-05-14 19:36:47 UTC
Unpacking source...
>>> Unpacking argon2-20171227.tar.gz to /var/tmp/portage/app-crypt/argon2-20171227-r1/work
 * Call stack:
 *     ebuild.sh, line 124:  Called src_prepare
 *   environment, line 1061:  Called die
 * The specific snippet of code:
 *       sed -i -e 's/-O3 //' -e 's/-g //' -e "s/-march=\$(OPTTARGET) /${CFLAGS...


When replace with sed -i -e 's/-O3 //' -e 's/-g //' -e 's/-march=\$(OPTTARGET) /${CFLAGS} /' -e 's/CFLAGS += -march=\$(OPTTARGET)//' Makefile || die "sed failed" emerging successful
Comment 1 Brian Evans (RETIRED) gentoo-dev 2019-05-14 19:43:06 UTC
Please attach the full build.log and put 'emerge --info =app-crypt/argon2-20171227-r1' into a comment
Comment 2 kurlovitsch 2019-05-14 19:55:15 UTC
I solve the problem by changing Manifest, and cannot find build.log
Comment 3 Brian Evans (RETIRED) gentoo-dev 2019-05-14 20:06:43 UTC
(In reply to kurlovitsch from comment #2)
> I solve the problem by changing Manifest, and cannot find build.log

The build.log path is posted to the screen when a build fails.
Comment 4 Julian Cléaud 2019-06-02 14:03:27 UTC
Created attachment 578432 [details]
Argon 2 sed failure logs

I'm affected by this bug too.
Basically, sed 3rd expression fails when CFLAGS contains a path.

This can be resolved by changing sed's delimiter by any other character like in "s|-march=\$(OPTTARGET) |${CFLAGS} |".