Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 814512 - app-text/libmwaw: bundled libtool breaks clang
Summary: app-text/libmwaw: bundled libtool breaks clang
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-09-23 19:14 UTC by Jannik Glückert
Modified: 2021-11-08 23:14 UTC (History)
1 user (show)

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


Attachments
patch as requested by sam (0001-app-text-libmwaw-allways-call-eautoreconf-814512.patch,865 bytes, patch)
2021-11-08 22:08 UTC, Jannik Glückert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jannik Glückert 2021-09-23 19:14:16 UTC
The bundled libtool filters a bunch of flags when using clang (see line 7776). The problematic part here is that it filters things such as '-fuse-ld=*', which breaks compilation with LTO, or '-pie', which causes the final binaries to be non-pie.

The solution is to call eautoreconf in src_prepare
Comment 1 Jannik Glückert 2021-11-08 22:08:34 UTC
Created attachment 749628 [details, diff]
patch as requested by sam
Comment 2 Larry the Git Cow gentoo-dev 2021-11-08 22:10:53 UTC
The bug has been closed via the following commit(s):

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

commit 8bcf56a162cd538301683fdf4b9be5a698c38eed
Author:     Jannik Glückert <jannik.glueckert@gmail.com>
AuthorDate: 2021-11-08 22:06:17 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-08 22:10:32 +0000

    app-text/libmwaw: allways call eautoreconf (refresh libtool; fixes Clang)
    
    Closes: https://bugs.gentoo.org/814512
    Signed-off-by: Jannik Glückert <jannik.glueckert@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 app-text/libmwaw/libmwaw-0.3.20.ebuild | 4 +++-
 app-text/libmwaw/libmwaw-9999.ebuild   | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)
Comment 3 Larry the Git Cow gentoo-dev 2021-11-08 23:14:04 UTC
The bug has been closed via the following commit(s):

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

commit e7389d729922d94ca92ce13c908f732d3c288f49
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-08 23:13:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-08 23:13:54 +0000

    app-text/libmwaw: add missing inherit
    
    Closes: https://bugs.gentoo.org/814512
    Signed-off-by: Sam James <sam@gentoo.org>

 app-text/libmwaw/libmwaw-0.3.20.ebuild | 4 +++-
 app-text/libmwaw/libmwaw-9999.ebuild   | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)