Opened 4 years ago

Last modified 8 months ago

#55187 assigned defect

osxfuse permission issues

Reported by: iefdev (Eric F) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc: dershow, pavelpicka (Pavel Picka)
Port: osxfuse

Description

When upgrading ntfs-3g, it starts with osxfuse, as a dependency.

It configures and builds, but is failing to destroot:

:debug:destroot Executing proc-post-org.macports.destroot-destroot-0
:error:destroot Failed to destroot osxfuse: could not set permissions for file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_fuse_osxfuse/osxfuse/work/destroot/opt/local/Library/Filesystems/osxfuse.fs/Contents/Resources/load_osxfuse": no such file or directory
:debug:destroot Error code: NONE
:debug:destroot Backtrace: could not set permissions for file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_fuse_osxfuse/osxfuse/work/destroot/opt/local/Library/Filesystems/osxfuse.fs/Contents/Resources/load_osxfuse": no such file or directory
:debug:destroot     while executing
:debug:destroot "$post $targetname"
:error:destroot See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_fuse_osxfuse/osxfuse/main.log for details.

Attachments (2)

osxfuse_main.log (90.5 KB) - added by iEFdev 4 years ago.
Main logfile
osxfuse-fail-log.txt (705.2 KB) - added by mouse07410 (Mouse) 3 years ago.
Another log of the failing install

Download all attachments as: .zip

Change History (15)

Changed 4 years ago by iEFdev

Attachment: osxfuse_main.log added

Main logfile

comment:1 Changed 4 years ago by ryandesign (Ryan Schmidt)

Cc: dports@… removed
Keywords: osxfuse ntfs-3g removed
Owner: set to drkp
Status: newassigned

comment:2 Changed 4 years ago by dershow

Cc: dershow added

comment:3 Changed 4 years ago by iEFdev

I looked at the Portfile diff to see the changes. Appears the patch removes the build of the environment (ie. ... /osxfuse.fs/Contents/Resources/load_osxfuse": no such file or directory). It stops at “Filesystems/”.

Removing the patch in from the Portfile, it passed the Staging, and installed.

$ sudo port edit osxfuse
- - -
#if { ! $use_signed_kext } {
#    patchfiles      patch-build.d_targets_packagemanager.sh.diff
#}

comment:4 Changed 3 years ago by ryandesign (Ryan Schmidt)

Cc: pavelpicka added

Has duplicate #56406.

comment:5 Changed 3 years ago by mouse07410 (Mouse)

Any updates on this? Failure of this port to build/install/work makes all the other osxfuse-dependent ports unusable, since there seems to be no way to tell Macports "don't bother installing a dependency - I already got it installed outside of Macports".

$ sudo port install osxfuse
Password:
--->  Computing dependencies for osxfuse
--->  Fetching archive for osxfuse
--->  Attempting to fetch osxfuse-3.7.1_0.darwin_17.x86_64.tbz2 from https://packages.macports.org/osxfuse
--->  Attempting to fetch osxfuse-3.7.1_0.darwin_17.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/osxfuse
--->  Attempting to fetch osxfuse-3.7.1_0.darwin_17.x86_64.tbz2 from http://lil.fr.packages.macports.org/osxfuse
--->  Fetching distfiles for osxfuse
--->  Attempting to fetch osxfuse-431bdc5.tar.gz from https://distfiles.macports.org/osxfuse/3.7.1
--->  Attempting to fetch kext-0a73539.tar.gz from https://distfiles.macports.org/osxfuse/3.7.1
--->  Attempting to fetch framework-e1df643.tar.gz from https://distfiles.macports.org/osxfuse/3.7.1
--->  Attempting to fetch prefpane-8a65eb2.tar.gz from https://distfiles.macports.org/osxfuse/3.7.1
--->  Attempting to fetch fuse-559738e.tar.gz from https://distfiles.macports.org/osxfuse/3.7.1
--->  Attempting to fetch support-19b4e8b.tar.gz from https://distfiles.macports.org/osxfuse/3.7.1
--->  Attempting to fetch osxfuse-3.7.1.dmg from https://distfiles.macports.org/osxfuse/3.7.1
--->  Verifying checksums for osxfuse
--->  Extracting osxfuse
--->  Configuring osxfuse
--->  Building osxfuse
Error: Failed to build osxfuse: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_fuse_osxfuse/osxfuse/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port osxfuse failed
$

Changed 3 years ago by mouse07410 (Mouse)

Attachment: osxfuse-fail-log.txt added

Another log of the failing install

comment:6 Changed 3 years ago by kencu (Ken)

It's easy to trick MacPorts into thinking you have a port installed for your own use, mouse. Just make an osxfuse Portfile something like this in your local repo:

PortSystem          1.0

name                osxfuse
version             3.7.1
categories          fuse devel
platforms           macosx
license             BSD APSL
maintainers         {dports @drkp} openmaintainer

description         THIS IS NOT THE OSXFUSE PORT!!!!
long_description    ${description}

homepage            https://osxfuse.github.io/

fetch {}
extract {}
configure {}
build {}
destroot{]

MacPorts will be happy and show osxfuse as installed. The other ports that depend on it will think it's installed. You're on your own after that, though! No tickets if things don't work!!!

comment:7 Changed 3 years ago by mouse07410 (Mouse)

Thank you - that's very good to know, especially for those ports that appear to depend on Java (aka kaffe).

But I still would like osxfuse port to be functional, if possible. ;)

comment:8 Changed 3 years ago by raimue (Rainer Müller)

To make progress on this, it would be required to know why it fails on some systems. It seems to have worked on the buildbot. I could also not reproduce the problem on my system running macOS 10.12.6 Sierra.

comment:9 Changed 3 years ago by raimue (Rainer Müller)

Also note the attached logs show completely different problems. The first one was a failure in destroot, the second one fails during build. These should have been filed as different issues.

Regarding ticket:55187:osxfuse-fail-log.txt, this might be this upstream issue. It is supposed upstream, but no commit is linked, so the appropriate patch still has to be found. In any case, it is unrelated to the issue discussed in this ticket, so please open a new ticket for this problem.

comment:10 Changed 2 years ago by iEFdev

Is there any updadate on this one?

Not that it isn't very hard to comment out that patch each time, but it would be nice if there was a solution to it.

comment:11 in reply to:  10 ; Changed 2 years ago by SenileFelineS

Replying to iEFdev:

Is Kencu's fake portfile the solution, or commenting out the patch the solution?

comment:12 in reply to:  11 Changed 14 months ago by bighin (bighin)

Replying to SenileFelineS:

Replying to iEFdev:

Is Kencu's fake portfile the solution, or commenting out the patch the solution?

The fake portfile works for me (if OSXFUSE is installed manually), please note that you need to add the following to lines two the Portfile above:

distfiles
destroot.keepdirs	${destroot}${prefix}/share/${name}
Last edited 14 months ago by bighin (bighin) (previous) (diff)

comment:13 Changed 8 months ago by mf2k (Frank Schima)

Owner: drkp deleted
Note: See TracTickets for help on using tickets.