pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/58272: libxkbcommon is wrongly built without symbol versions



>Number:         58272
>Category:       pkg
>Synopsis:       libxkbcommon is wrongly built without symbol versions
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 22 01:30:00 +0000 2024
>Originator:     Taylor R Campbell
>Release:        netbsd-9, netbsd-10, netbsd-current; pkgsrc-current from 2024-04-06 to date
>Organization:
The NetXKB Version
>Environment:
>Description:
libxkbcommon's meson.build script broke detection of --version-script support in GNU ld, as NetBSD uses, by tacking on --undefined-version in the test, which GNU ld lacks:

diff --git a/meson.build b/meson.build
index 1ea2bf3..b2bbeac 100644
--- a/meson.build
+++ b/meson.build
@@ -145,7 +145,7 @@ configh_data.set('WIN32_LEAN_AND_MEAN', 1)
 # Supports -Wl,--version-script?
 have_version_script = cc.links(
     'int main(){}',
-    args: '-Wl,--version-script=' + meson.current_source_dir()/'xkbcommon.map',
+    args: '-Wl,--undefined-version,--version-script=' + meson.current_source_dir()/'xkbcommon.map',
     name: '-Wl,--version-script',
 )

https://github.com/xkbcommon/libxkbcommon/pull/459

This was an attempt to fix things with lld but it broke things with GNU ld.
>How-To-Repeat:
nm -gD --defined-only --with-symbol-versions $LOCALBASE/lib/libxkbcommon.so.0

and observe the lack of symbol versions
>Fix:
1. patch x11/libxkbcommon to revert this meson.build change (or tailor it to lld vs GNU ld, or pass MESON_ARGS to override the buggy test)
2. revbump and redo x11/libxkbcommon/buildlink3.mk rev. 1.5 (https://mail-index.netbsd.org/pkgsrc-changes/2024/04/06/msg296541.html) to allow >=1.5.0nb2<1.7.0 or >=1.7.0nb1
3. file an upstream issue



Home | Main Index | Thread Index | Old Index