Skip to content

Commit

Permalink
xorg-libXt: improve vendor handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mohd-akram committed May 22, 2024
1 parent f50f48b commit 37520ea
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x11/xorg-libXt/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PortSystem 1.0

name xorg-libXt
version 1.3.0
revision 0
revision 1

checksums rmd160 419bd67ac7b1370267f52d2576e461aee56255e9 \
sha256 52820b3cdb827d08dc90bdfd1b0022a3ad8919b57a39808b12591973b331bf91 \
Expand All @@ -26,6 +26,8 @@ distname libXt-${version}

use_xz yes

patchfiles patch-src-vendor.diff

# this port repeatedly fails to build parallel on Tiger
platform darwin 8 {
use_parallel_build no
Expand Down
24 changes: 24 additions & 0 deletions x11/xorg-libXt/files/patch-src-vendor.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
This allows Motif and Athena to override the symbols even when linking for
two-level namespace.
--- src/Vendor.c.orig 2023-04-10 00:48:48
+++ src/Vendor.c 2024-05-22 23:24:02
@@ -82,6 +82,9 @@
#endif

/* *INDENT-OFF* */
+#if defined(__APPLE__)
+__attribute__((weak))
+#endif
externaldef(vendorshellclassrec)
VendorShellClassRec vendorShellClassRec = {
{
@@ -138,6 +141,9 @@
/* *INDENT-ON* */

#if !defined(AIXSHLIB) || !defined(SHAREDCODE)
+#if defined(__APPLE__)
+__attribute__((weak))
+#endif
externaldef(vendorshellwidgetclass)
WidgetClass vendorShellWidgetClass = (WidgetClass) (&vendorShellClassRec);
#endif

0 comments on commit 37520ea

Please sign in to comment.