[131810] trunk/dports/devel/libmacho
jeremyhu at macports.org
jeremyhu at macports.org
Mon Jan 19 00:18:58 PST 2015
Revision: 131810
https://trac.macports.org/changeset/131810
Author: jeremyhu at macports.org
Date: 2015-01-19 00:18:58 -0800 (Mon, 19 Jan 2015)
Log Message:
-----------
libmacho: Fix incorrect pointer in implementation of getsectdatafromheader and getsectdatafromheader_64 ... update to match header
Modified Paths:
--------------
trunk/dports/devel/libmacho/Portfile
Added Paths:
-----------
trunk/dports/devel/libmacho/files/
trunk/dports/devel/libmacho/files/ld64-getsectiondata.patch
Modified: trunk/dports/devel/libmacho/Portfile
===================================================================
--- trunk/dports/devel/libmacho/Portfile 2015-01-19 08:13:18 UTC (rev 131809)
+++ trunk/dports/devel/libmacho/Portfile 2015-01-19 08:18:58 UTC (rev 131810)
@@ -4,7 +4,8 @@
PortSystem 1.0
name libmacho
version 862
-revision 2
+revision 3
+subport ${name}-headers { revision 2 }
categories devel
platforms darwin
maintainers jeremyhu openmaintainer
@@ -25,7 +26,10 @@
use_configure no
-subport libmacho-headers {
+patchfiles \
+ ld64-getsectiondata.patch
+
+if {${subport} == "${name}-headers"} {
supported_archs noarch
universal_variant no
use_configure no
@@ -38,9 +42,7 @@
file rename -force ${destroot}${prefix}/usr/include ${destroot}${prefix}/
file delete -force ${destroot}${prefix}/usr
}
-}
-
-if {${subport} == "${name}"} {
+} elseif {${subport} == "${name}"} {
# Technically not needed, but subports will expect depending on libunwind to pull in the headers
depends_lib-append port:libmacho-headers
Added: trunk/dports/devel/libmacho/files/ld64-getsectiondata.patch
===================================================================
--- trunk/dports/devel/libmacho/files/ld64-getsectiondata.patch (rev 0)
+++ trunk/dports/devel/libmacho/files/ld64-getsectiondata.patch 2015-01-19 08:18:58 UTC (rev 131810)
@@ -0,0 +1,20 @@
+--- libmacho/getsecbyname.c
++++ libmacho/getsecbyname.c
+@@ -477,7 +477,7 @@ getsectdatafromheader(
+ struct mach_header *mhp,
+ const char *segname,
+ const char *sectname,
+-unsigned long *size)
++uint32_t *size)
+ {
+ const struct section *sp;
+
+@@ -501,7 +501,7 @@ getsectdatafromheader_64(
+ struct mach_header_64 *mhp,
+ const char *segname,
+ const char *sectname,
+-unsigned long *size)
++uint64_t *size)
+ {
+ const struct section_64 *sp;
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150119/385f98b3/attachment.html>
More information about the macports-changes
mailing list