[123208] trunk/dports/fuse/osxfuse

dports at macports.org dports at macports.org
Wed Aug 6 18:18:30 PDT 2014


Revision: 123208
          https://trac.macports.org/changeset/123208
Author:   dports at macports.org
Date:     2014-08-06 18:18:29 -0700 (Wed, 06 Aug 2014)
Log Message:
-----------
osxfuse: build for active kernel architecture even if it's different
from build_arch (#43415)

Modified Paths:
--------------
    trunk/dports/fuse/osxfuse/Portfile
    trunk/dports/fuse/osxfuse/files/patch-buildsystem.diff

Modified: trunk/dports/fuse/osxfuse/Portfile
===================================================================
--- trunk/dports/fuse/osxfuse/Portfile	2014-08-07 01:12:31 UTC (rev 123207)
+++ trunk/dports/fuse/osxfuse/Portfile	2014-08-07 01:18:29 UTC (rev 123208)
@@ -5,6 +5,7 @@
 
 name                osxfuse
 version             2.6.4
+revision            1
 categories          fuse devel
 platforms           macosx
 license             BSD APSL
@@ -21,16 +22,13 @@
 
 homepage            http://osxfuse.github.io/
 
-# We want to match the supported arch
+# We will build user-space components for the specified arch, and
+# kernel modules for the kernel arch.
 set kernel_arch [exec uname -m]
-switch ${kernel_arch} {
-    i386 -
-    x86_64 {
-        supported_archs ${kernel_arch}
-    }
-    default {
-        supported_archs i386 x86_64
-    }
+# If building for different kernel arch than our buildslaves use, force a build
+# from source. The binary package IDs don't encode the kernel arch.
+if {${kernel_arch} ne "x86_64"} {
+    archive_sites
 }
 
 distfiles
@@ -81,6 +79,7 @@
 
     # Only build the archs we want, not the hardcoded universal archs
     reinplace -E "s,@@ARCHS@@,[get_canonical_archs],g" ${worksrcpath}/build.sh
+    reinplace -E "s,@@KERNELARCHS@@,${kernel_arch},g" ${worksrcpath}/build.sh
 
     # Inject the destroot path as the buildsystem tries to write to the prefix directly
     reinplace -E "s,@@DESTROOT@@,${destroot},g" ${worksrcpath}/build.sh

Modified: trunk/dports/fuse/osxfuse/files/patch-buildsystem.diff
===================================================================
--- trunk/dports/fuse/osxfuse/files/patch-buildsystem.diff	2014-08-07 01:12:31 UTC (rev 123207)
+++ trunk/dports/fuse/osxfuse/files/patch-buildsystem.diff	2014-08-07 01:18:29 UTC (rev 123208)
@@ -55,6 +55,15 @@
  
      if [ -e "$ms_osxfuse_out" ]
      then
+@@ -1870,7 +1870,7 @@
+ 
+     m_log "building OSXFUSE kernel extension and tools"
+ 
+-    xcodebuild -configuration "$m_configuration" -target All GCC_VERSION="$m_compiler" ARCHS="$m_archs" SDKROOT="$m_usdk_dir" MACOSX_DEPLOYMENT_TARGET="$m_platform" >$m_stdout 2>$m_stderr
++    xcodebuild -configuration "$m_configuration" -target All GCC_VERSION="$m_compiler" ARCHS="@@KERNELARCHS@@" SDKROOT="$m_usdk_dir" MACOSX_DEPLOYMENT_TARGET="$m_platform" >$m_stdout 2>$m_stderr
+ 
+     m_exit_on_error "xcodebuild cannot build configuration $m_configuration."
+ 
 @@ -1945,7 +1945,7 @@
      xcrun make -j4 >$m_stdout 2>$m_stderr
      m_exit_on_error "make failed while compiling the OSXFUSE library."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140806/7a8a0228/attachment.html>


More information about the macports-changes mailing list