[127428] trunk/dports/sysutils/realpath
ryandesign at macports.org
ryandesign at macports.org
Mon Oct 27 21:58:31 PDT 2014
Revision: 127428
https://trac.macports.org/changeset/127428
Author: ryandesign at macports.org
Date: 2014-10-27 21:58:31 -0700 (Mon, 27 Oct 2014)
Log Message:
-----------
realpath: fix build on Snow Leopard and earlier (#45623)
Modified Paths:
--------------
trunk/dports/sysutils/realpath/Portfile
Added Paths:
-----------
trunk/dports/sysutils/realpath/files/
trunk/dports/sysutils/realpath/files/patch-Makefile.template.diff
Modified: trunk/dports/sysutils/realpath/Portfile
===================================================================
--- trunk/dports/sysutils/realpath/Portfile 2014-10-28 04:35:36 UTC (rev 127427)
+++ trunk/dports/sysutils/realpath/Portfile 2014-10-28 04:58:31 UTC (rev 127428)
@@ -19,6 +19,8 @@
checksums rmd160 f972c2a0d298307b2035a2d9aecb53343cff7ca7 \
sha256 554ceca127840cf8af0d3c0919c74fc4e8d6ae8ad94bf4aea743ca4af8198be3
+patchfiles-append patch-Makefile.template.diff
+
configure.pre_args
configure.args -b ${prefix}/bin \
-m ${prefix}/share/man
Added: trunk/dports/sysutils/realpath/files/patch-Makefile.template.diff
===================================================================
--- trunk/dports/sysutils/realpath/files/patch-Makefile.template.diff (rev 0)
+++ trunk/dports/sysutils/realpath/files/patch-Makefile.template.diff 2014-10-28 04:58:31 UTC (rev 127428)
@@ -0,0 +1,13 @@
+Fix build with old gcc by enforcing C99
+https://github.com/user454322/realpath/commit/1358f37ba759524c9c49225ad3b5aa3f314da6c3
+--- Makefile.template
++++ Makefile.template
+@@ -6,7 +6,7 @@ MAN_PATH= MAN_PATH_VAL
+ default: realpath
+
+ realpath: realpath.c
+- $(CC) -o realpath realpath.c -Werror -Wextra
++ $(CC) -o realpath realpath.c -std=c99 -Werror -Wextra
+
+ clean:
+ rm -f realpath
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141027/f96272c8/attachment-0001.html>
More information about the macports-changes
mailing list