[138553] trunk/dports/devel/gettext

jeremyhu at macports.org jeremyhu at macports.org
Sat Jul 11 23:50:56 PDT 2015


Revision: 138553
          https://trac.macports.org/changeset/138553
Author:   jeremyhu at macports.org
Date:     2015-07-11 23:50:56 -0700 (Sat, 11 Jul 2015)
Log Message:
-----------
gettext: Fix build failure on SL and earlier

Modified Paths:
--------------
    trunk/dports/devel/gettext/Portfile

Added Paths:
-----------
    trunk/dports/devel/gettext/files/
    trunk/dports/devel/gettext/files/stpncpy.patch

Modified: trunk/dports/devel/gettext/Portfile
===================================================================
--- trunk/dports/devel/gettext/Portfile	2015-07-12 03:57:45 UTC (rev 138552)
+++ trunk/dports/devel/gettext/Portfile	2015-07-12 06:50:56 UTC (rev 138553)
@@ -54,6 +54,14 @@
                         port:libiconv \
                         port:ncurses
 
+platform darwin {
+    if {${os.major} < 11} {
+        patchfiles-append stpncpy.patch
+        use_autoreconf yes
+        autoreconf.args -fvi
+    }
+}
+
 test.run                yes
 test.target             check
 

Added: trunk/dports/devel/gettext/files/stpncpy.patch
===================================================================
--- trunk/dports/devel/gettext/files/stpncpy.patch	                        (rev 0)
+++ trunk/dports/devel/gettext/files/stpncpy.patch	2015-07-12 06:50:56 UTC (rev 138553)
@@ -0,0 +1,11 @@
+--- gettext-tools/libgettextpo/Makefile.am.orig	2015-06-22 01:42:02.000000000 -0700
++++ gettext-tools/libgettextpo/Makefile.am	2015-07-11 22:42:42.000000000 -0700
+@@ -105,7 +105,7 @@ LTV_AGE=5
+ # How to build libgettextpo.la.
+ # Don't make it depend on libgettextsrc.la or libgettextlib.la, since they
+ # define an uncontrolled amount of symbols.
+-libgettextpo_la_LIBADD = libgnu.la $(WOE32_LIBADD) $(LTLIBUNISTRING)
++libgettextpo_la_LIBADD = libgnu.la $(WOE32_LIBADD) $(LTLIBUNISTRING) ../gnulib-lib/stpncpy.lo
+ libgettextpo_la_LDFLAGS = \
+   -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
+   -rpath $(libdir) \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150711/e8942b61/attachment.html>


More information about the macports-changes mailing list