Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830590 - sys-devel/gettext: installs underlinked libgettextpo.so on musl (was: app-text/gtranslator-40.0 fails to compile: ld: libgettextpo.so: undefined reference to gl_get_setlocale_null_lock)
Summary: sys-devel/gettext: installs underlinked libgettextpo.so on musl (was: app-tex...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-01-04 11:51 UTC by Agostino Sarubbo
Modified: 2022-09-01 02:17 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,166.76 KB, text/plain)
2022-01-04 11:51 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-01-04 11:51:01 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-text/gtranslator-40.0 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-01-04 11:51:03 UTC
Created attachment 761277 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-01-04 11:51:04 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


/usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.1/../../../../x86_64-gentoo-linux-musl/bin/ld: /usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.1/../../../../lib/libgettextpo.so: undefined reference to `gl_get_setlocale_null_lock'
/var/tmp/portage/app-text/gtranslator-40.0/temp/environment: line 2332: type: locale: not found
collect2: error: ld returned 1 exit status
Comment 3 Larry the Git Cow gentoo-dev 2022-09-01 02:13:30 UTC
The bug has been closed via the following commit(s):

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

commit 45a9cd813a2244a676ab9a651a5274baac83a9d0
Author:     Alfred Persson Forsberg <cat@catcream.org>
AuthorDate: 2022-08-29 20:02:29 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-09-01 02:13:16 +0000

    sys-devel/gettext: fix musl symbol
    
    This patch forces OMIT_SETLOCALE_LOCK to 0 so that
    gl_get_setlocale_null_lock gets defined.
    
    Deliberately gone for a conditional patch
    for now as we want to get this sorted
    properly but it involves discussion
    with upstream first on the best way forward.
    
    See: https://savannah.gnu.org/bugs/index.php?62659
    Closes: https://bugs.gentoo.org/830590
    Signed-off-by: Alfred Persson Forsberg <cat@catcream.org>
    Closes: https://github.com/gentoo/gentoo/pull/27062
    Signed-off-by: Sam James <sam@gentoo.org>

 .../gettext-0.21-musl-omit_setlocale_lock.patch    |  37 +++++
 sys-devel/gettext/gettext-0.21-r4.ebuild           | 160 +++++++++++++++++++++
 2 files changed, 197 insertions(+)