Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#15778 closed defect (fixed)

macfuse portfile assumes MacPorts is installed in /opt/local

Reported by: eris.discord@… Owned by: kballard (Lily Ballard)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: macfuse Cc: mike@…, gkelly@…, ryandesign (Ryan Carsten Schmidt)
Port: macfuse

Description

Just as the title says, the macfuse port assumes that MacPorts is installed in the default location, /opt/local. I have an unusual setup with MacPorts installed in /Software/MacPorts and other unix-like software packages installed in /Software/*.prefix so I can easily remove them without having to hunt for files. Unfortunately this means MacFUSE goes in the wrong folder and doesn't end up in my path. :)

I would try to fix this myself and submit a patch, but I'm not really sure about the proper use of for instance install_name_tool. I'm kind of afraid to break things with it...

Attachments (2)

macfuse.patch (1.5 KB) - added by jmroot (Joshua Root) 16 years ago.
patch from #16956
macfuse.2.patch (1.6 KB) - added by mike@… 16 years ago.
Updated patch for 1.7_1

Download all attachments as: .zip

Change History (9)

comment:1 Changed 16 years ago by skymoo (Adam Mercer)

Milestone: Port Bugs
Owner: changed from macports-tickets@… to eridius@…

assign to maintainer

comment:2 Changed 16 years ago by jmroot (Joshua Root)

Cc: mike@… added
Port: macfuse added

Cc reporter of duplicate #16956.

Changed 16 years ago by jmroot (Joshua Root)

Attachment: macfuse.patch added

patch from #16956

Changed 16 years ago by mike@…

Attachment: macfuse.2.patch added

Updated patch for 1.7_1

comment:3 Changed 16 years ago by gkelly@…

macfuse.2.patch doesn't work if prefix is "/usr/local". After the build, it is untarred, and then there's a line in the destroot that deletes usr/local, so the subsequent commands fail to operate on the files that were just removed!

comment:4 in reply to:  3 ; Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: gkelly@… ryandesign@… added

Replying to gkelly@…:

macfuse.2.patch doesn't work if prefix is "/usr/local". After the build, it is untarred, and then there's a line in the destroot that deletes usr/local, so the subsequent commands fail to operate on the files that were just removed!

It is not supported for ${prefix} to be /usr/local. Use some other prefix for MacPorts.

comment:5 in reply to:  4 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to ryandesign@…:

It is not supported for ${prefix} to be /usr/local. Use some other prefix for MacPorts.

I filed #18602 to prevent installation of MacPorts with the prefix /usr/local.

comment:6 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Since the maintainer hasn't responded to this issue, I committed the patch in r47182, with a slight modification to delete ${destpath}${prefix} before untarring the built software. This should allow it to work if ${prefix} is /usr/local. However, having prefix set to /usr/local is still unsupported and other ports will probably also be broken under such a setup. Don't expect MacPorts to continue to allow using prefix /usr/local.

comment:7 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.