Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261320 - sys-apps/einit fails to build with _FORTIFY_SOURCE=2
Summary: sys-apps/einit fails to build with _FORTIFY_SOURCE=2
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Christian Faulhammer (RETIRED)
Depends on:
Blocks: fortify-source
  Show dependency tree
Reported: 2009-03-05 14:55 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2009-03-12 00:49 UTC (History)
2 users (show)

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

Build log (einit-0.40.0:20090305-144224.log,23.74 KB, text/plain)
2009-03-05 14:56 UTC, Diego Elio Pettenò (RETIRED)
fix for O_CREAT bug in src/modules/linux/linux-urandom.c (einit_open_mode.patch,403 bytes, patch)
2009-03-10 22:18 UTC, Magnus Granberg
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2009-03-05 14:55:30 UTC
Check attached build log.

Note: I killed the build because scons seems to have frozen at that point, no clue why.
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-03-05 14:56:21 UTC
Created attachment 184018 [details]
Build log
Comment 2 Christian Faulhammer (RETIRED) gentoo-dev 2009-03-06 08:14:27 UTC
Dear upstream...will you prepare a fix or should we wait for the successor that will have that fixed?
Comment 3 Magnus Deininger 2009-03-06 09:09:21 UTC
Seems doubtful anyone's gonna fix this, so either just filter/deactivate the flag, compile with a different compiler or deactivate/use-flag the "linux-urandom" module in einit's sconscript. the successor shouldn't have this particular issue.
Comment 4 Magnus Granberg gentoo-dev 2009-03-10 22:18:22 UTC
Created attachment 184628 [details, diff]
fix for O_CREAT bug in src/modules/linux/linux-urandom.c
Comment 5 Christian Faulhammer (RETIRED) gentoo-dev 2009-03-12 00:49:40 UTC
Patch looks good to me, please test.