Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 884767 - sys-devel/libtool: filters out -Werror at link time (affects LTO testing like -Werror=odr) (media-libs/fdk-aac: ignoring -Werror=odr during linking phase)
Summary: sys-devel/libtool: filters out -Werror at link time (affects LTO testing like...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-12-07 19:40 UTC by Kostadin Shishmanov
Modified: 2023-05-31 06:51 UTC (History)
2 users (show)

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


Attachments
patch from irc (libtool-werror.patch,640 bytes, patch)
2022-12-07 19:40 UTC, Kostadin Shishmanov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kostadin Shishmanov 2022-12-07 19:40:17 UTC
media-libs/fdk-aac is ignoring -Werror=odr in both CFLAGS and LDFLAGS during the linking phase
Comment 1 Kostadin Shishmanov 2022-12-07 19:40:38 UTC
Created attachment 840829 [details, diff]
patch from irc
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-07 19:48:44 UTC
We'll need to both patch sys-devel/libtool (and send it upstream, although our other patches are still pending) and then add it into elt-patches.
Comment 3 Larry the Git Cow gentoo-dev 2022-12-10 02:44:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40b028161459dcad5ddbe429216c7632a0b7e80a

commit 40b028161459dcad5ddbe429216c7632a0b7e80a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-12-10 02:42:57 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-10 02:43:03 +0000

    media-libs/fdk-aac: elibtoolize for -Werror=odr
    
    Closes: https://bugs.gentoo.org/884767
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/fdk-aac/fdk-aac-2.0.2.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

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

commit a9438218bd109ab144c5c05526e6dda213194dfc
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-12-10 02:34:26 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-10 02:43:03 +0000

    app-portage/elt-patches: add 20221210
    
    Closes: https://bugs.gentoo.org/884767
    Signed-off-by: Sam James <sam@gentoo.org>

 app-portage/elt-patches/Manifest                   |  1 +
 .../elt-patches/elt-patches-20221210.ebuild        | 25 ++++++++++++++++++++++
 2 files changed, 26 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b258b6396f73a8c9065132834b273e2fbdd1556

commit 2b258b6396f73a8c9065132834b273e2fbdd1556
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-12-10 02:42:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-10 02:43:03 +0000

    sys-devel/libtool: add -Werror filtering patch
    
    Needed to make -Werror=odr and such error out at link-time.
    
    Bug: https://bugs.gentoo.org/884767
    Signed-off-by: Sam James <sam@gentoo.org>

 .../libtool/files/libtool-2.4.7-werror-lto.patch   |  45 ++++++++
 sys-devel/libtool/libtool-2.4.7-r1.ebuild          | 116 +++++++++++++++++++++
 2 files changed, 161 insertions(+)
Comment 4 Larry the Git Cow gentoo-dev 2022-12-10 02:44:15 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/elt-patches.git/commit/?id=7ff3d75742a3560333334af9c92b282a99cc1486

commit 7ff3d75742a3560333334af9c92b282a99cc1486
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-12-10 02:31:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-10 02:31:23 +0000

    2.4.6, 2.4.7: add -Werror filter bypass for LTO
    
    Bug: https://bugs.gentoo.org/884767
    Signed-off-by: Sam James <sam@gentoo.org>

 eltpatch.in          |  2 +-
 patches/werror/2.4.6 | 28 ++++++++++++++++++++++++++++
 patches/werror/2.4.7 | 30 ++++++++++++++++++++++++++++++
 3 files changed, 59 insertions(+), 1 deletion(-)