Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 890280 - media-libs/svt-av1-1.4.1 warning: FORTIFY_SOURCE redefined with gcc12 hardened _F_S=3
Summary: media-libs/svt-av1-1.4.1 warning: FORTIFY_SOURCE redefined with gcc12 hardene...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: James Beddek
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 847148
  Show dependency tree
 
Reported: 2023-01-09 09:03 UTC by genBTC
Modified: 2023-05-31 07:00 UTC (History)
2 users (show)

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


Attachments
svt-av1 build.log (svt,52.59 KB, application/octet-stream)
2023-01-09 09:04 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 09:03:57 UTC
When using gentoo-hardened with the new  fortify-source-3.patch  built into Gcc-12.2.1_p20221231 ,
svt-av1 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

The package has _F_S=2 hardcoded in :
 @ CMakeLists.txt
 @ gstreamer-plugin/CMakeLists.txt
 @ gstreamer-plugin/meson.build
and that flag should be stripped so _F_S=3 can take effect without conflict.

Reproducible: Always
Comment 1 genBTC 2023-01-09 09:04:56 UTC
Created attachment 848010 [details]
svt-av1 build.log

warning: "_FORTIFY_SOURCE" redefined
Comment 2 Agostino Sarubbo gentoo-dev 2023-02-18 13:57:26 UTC
hardened_tinderbox has reproduced this issue with version 1.1.0 - Updating summary.
Comment 3 Agostino Sarubbo gentoo-dev 2023-05-28 12:14:11 UTC
tinderbox_musl has reproduced this issue with version 1.4.1 - Updating summary.
Comment 4 Larry the Git Cow gentoo-dev 2023-05-31 07:00:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f298acb0c9958b158914fd9ce4fce8692a16f23

commit 5f298acb0c9958b158914fd9ce4fce8692a16f23
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-31 06:25:09 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-31 06:56:26 +0000

    media-libs/svt-av1: add 1.5.0
    
    Closes: https://bugs.gentoo.org/890280
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/svt-av1/Manifest                        |  1 +
 .../files/svt-av1-1.5.0-fortify-no-override.patch  | 37 ++++++++++++++++++
 media-libs/svt-av1/svt-av1-1.5.0.ebuild            | 45 ++++++++++++++++++++++
 media-libs/svt-av1/svt-av1-9999.ebuild             |  4 ++
 4 files changed, 87 insertions(+)