Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 890273 - sys-devel/m4 warning: FORTIFY_SOURCE redefined with gcc12 hardened _F_S=3
Summary: sys-devel/m4 warning: FORTIFY_SOURCE redefined with gcc12 hardened _F_S=3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 847148
  Show dependency tree
 
Reported: 2023-01-09 08:06 UTC by genBTC
Modified: 2023-01-09 09:45 UTC (History)
0 users

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


Attachments
m4 build.log (m4,180.90 KB, application/octet-stream)
2023-01-09 08:09 UTC, genBTC
Details

Note You need to log in before you can comment on or make changes to this bug.
Description genBTC 2023-01-09 08:06:32 UTC
When using gentoo-hardened with the new  fortify-source-3.patch  built into Gcc-12.2.1_p20221231 ,
M4 package results in a warning about a definition redefined collision.

<command-line>: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition

Meaning the package has _F_S=2 hardcoded internally somewhere and that flag should be stripped so _F_S=3 can take effect without conflict.

Reproducible: Always
Comment 1 genBTC 2023-01-09 08:09:39 UTC
Created attachment 848004 [details]
m4 build.log

warning: "_FORTIFY_SOURCE" redefined
Comment 2 Larry the Git Cow gentoo-dev 2023-01-09 09:45:09 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34ace9fe79667dfcfd0ab651cc246c85a7706ae6

commit 34ace9fe79667dfcfd0ab651cc246c85a7706ae6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-01-09 08:17:11 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-01-09 09:45:01 +0000

    sys-devel/m4: stop downgrading FORTIFY_SOURCE
    
    Closes: https://bugs.gentoo.org/890273
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/m4/files/m4-1.4.19-fortify-source.patch |  49 +++++++++++
 sys-devel/m4/m4-1.4.19-r1.ebuild                  | 101 ++++++++++++++++++++++
 2 files changed, 150 insertions(+)