Ticket #43415: osxfuse.patch

File osxfuse.patch, 2.7 KB (added by drkp (Dan Ports), 10 years ago)

proposed patch

  • opt/local/var/macports/sources/svn.macports.org/trunk/dports/fuse/osxfuse/Portfile

     
    55
    66name                osxfuse
    77version             2.6.4
     8revision            1
    89categories          fuse devel
    910platforms           macosx
    1011license             BSD APSL
     
    2122
    2223homepage            http://osxfuse.github.io/
    2324
    24 # We want to match the supported arch
     25# We will build user-space components for the specified arch, and
     26# kernel modules for the kernel arch.
    2527set kernel_arch [exec uname -m]
    26 switch ${kernel_arch} {
    27     i386 -
    28     x86_64 {
    29         supported_archs ${kernel_arch}
    30     }
    31     default {
    32         supported_archs i386 x86_64
    33     }
     28# If building for different kernel/user-space arches, force a build
     29# from source. The binary package IDs don't encode the kernel arch.
     30if {${kernel_arch} != [get_canonical_archs]} {
     31    archive_sites
    3432}
    3533
    3634distfiles
     
    8179
    8280    # Only build the archs we want, not the hardcoded universal archs
    8381    reinplace -E "s,@@ARCHS@@,[get_canonical_archs],g" ${worksrcpath}/build.sh
     82    reinplace -E "s,@@KERNELARCHS@@,${kernel_arch},g" ${worksrcpath}/build.sh
    8483
    8584    # Inject the destroot path as the buildsystem tries to write to the prefix directly
    8685    reinplace -E "s,@@DESTROOT@@,${destroot},g" ${worksrcpath}/build.sh
  • opt/local/var/macports/sources/svn.macports.org/trunk/dports/fuse/osxfuse/files/patch-buildsystem.diff

     
    5555 
    5656     if [ -e "$ms_osxfuse_out" ]
    5757     then
     58@@ -1870,7 +1870,7 @@
     59 
     60     m_log "building OSXFUSE kernel extension and tools"
     61 
     62-    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
     63+    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
     64 
     65     m_exit_on_error "xcodebuild cannot build configuration $m_configuration."
     66 
    5867@@ -1945,7 +1945,7 @@
    5968     xcrun make -j4 >$m_stdout 2>$m_stderr
    6069     m_exit_on_error "make failed while compiling the OSXFUSE library."