[153838] trunk/dports/fuse/osxfuse
dports at macports.org
dports at macports.org
Thu Oct 13 07:56:40 CEST 2016
Revision: 153838
https://trac.macports.org/changeset/153838
Author: dports at macports.org
Date: 2016-10-12 22:56:40 -0700 (Wed, 12 Oct 2016)
Log Message:
-----------
osxfuse: backport patch to fix build on older OS X versions (#52584)
Modified Paths:
--------------
trunk/dports/fuse/osxfuse/Portfile
Added Paths:
-----------
trunk/dports/fuse/osxfuse/files/patch-ad92ff18.diff
Modified: trunk/dports/fuse/osxfuse/Portfile
===================================================================
--- trunk/dports/fuse/osxfuse/Portfile 2016-10-13 05:53:20 UTC (rev 153837)
+++ trunk/dports/fuse/osxfuse/Portfile 2016-10-13 05:56:40 UTC (rev 153838)
@@ -123,6 +123,9 @@
patchfiles patch-support-mount_osxfuse-mount_osxfuse.c.diff
+# backported fix to support building on older SDKs
+patchfiles-append patch-ad92ff18.diff
+
use_configure no
build.cmd ./build.sh -t packagemanager
Added: trunk/dports/fuse/osxfuse/files/patch-ad92ff18.diff
===================================================================
--- trunk/dports/fuse/osxfuse/files/patch-ad92ff18.diff (rev 0)
+++ trunk/dports/fuse/osxfuse/files/patch-ad92ff18.diff 2016-10-13 05:56:40 UTC (rev 153838)
@@ -0,0 +1,39 @@
+diff --git a/load_osxfuse/fuse_kext.c b/load_osxfuse/fuse_kext.c
+index 47b6ffb..69f51d3 100644
+--- support/load_osxfuse/fuse_kext.c
++++ support/load_osxfuse/fuse_kext.c
+@@ -92,18 +92,15 @@
+
+ #define SYSTEM_VERSION_PATH "/System/Library/CoreServices/SystemVersion.plist"
+
+-#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
+- #include <IOKit/kext/KextManager.h>
+- #include <libkern/OSKextLib.h>
+-#else
++#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060
+ #include <libkern/OSReturn.h>
+
+ extern OSReturn KextManagerLoadKextWithURL(
+ CFURLRef kextURL,
+ CFArrayRef dependencyKextAndFolderURLs
+ ) __attribute__((weak_import));
+-
+- #define kOSKextReturnNotFound -603947002
++#else
++ #include <IOKit/kext/KextManager.h>
+ #endif
+
+ #if MAC_OS_X_VERSION_MAX_ALLOWED < 1070
+@@ -114,6 +111,12 @@
+ ) __attribute__((weak_import));
+ #endif
+
++#if MAC_OS_X_VERSION_MAX_ALLOWED < 101100
++ #define kOSKextReturnNotFound -603947002
++#else
++ #include <libkern/OSKextLib.h>
++#endif
++
+ static int
+ fuse_system_get_version(int *major, int *minor, int *bugfix)
+ {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-changes/attachments/20161012/3cb028cf/attachment-0002.html>
More information about the macports-changes
mailing list