maintainer-approval requested: [Bug 285401] x11/libxkbcommon: after recent updates to 1.8.0 and 1.8.1 several ports may need a PORTREVISION bump : [Attachment 258810] [patch] fix libxkbcommon version-script test for freebsd (v2: use -shared for ver script test)

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 19 Mar 2025 13:03:26 UTC
John Hein <jcfyecrayz@liamekaens.com> has asked freebsd-x11 (Nobody)
<x11@FreeBSD.org> for maintainer-approval:
Bug 285401: x11/libxkbcommon: after recent updates to 1.8.0 and 1.8.1 several
ports may need a PORTREVISION bump
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285401

Attachment 258810: [patch] fix libxkbcommon version-script test for freebsd
(v2: use -shared for ver script test)
https://bugs.freebsd.org/bugzilla/attachment.cgi?id=258810&action=edit



--- Comment #46 from John Hein <jcfyecrayz@liamekaens.com> ---
Created attachment 258810
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=258810&action=edit
[patch] fix libxkbcommon version-script test for freebsd (v2: use -shared for
ver script test)

I know that bapt@ has said that this should be fixed in the toolchain, but here
is a simple fix that can be applied (locally if need be) while people wait for
the toolchain fix.

And it is simpler than singling out freebsd-specific symbols (as in the
previous patch from comment 39).  It performs the version script test by
generating a shared object rather than an executable image (the second option
tijl@ mentioned in comment 30).