Opened 8 years ago

Closed 7 years ago

#53775 closed defect (fixed)

emacs-mac-app @6.1_2: Cannot be installed into /opt/local/Applications/Emacs.app

Reported by: crapshoot Owned by: seanfarley (Sean Farley)
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc: seanfarley (Sean Farley)
Port: emacs-mac-app

Description

emacs-mac-app fails to install Emacs when the application directory is a subdirectory of of the prefix directory, such as /opt/local/Applications.

The post-destroot block in the Portfile copies the necessary files from ${destroot}${prefix} to ${destroot}${applications_dir} . On line 65, the Portfile uses delete ${destroot}${prefix} to remove the remains of the ${destroot}${prefix} directory tree, but that also removes ${destroot}${application_dir} when it is a subdirectory of ${destroot}${prefix} .

The attached file is how I modified the Portfile to check for that condition and to remove everything except ${destroot}${application_dir} from ${destroot}${prefix} . You may apply this as a patch or devise a different own solution.

Attachments (1)

Portfile.patch (783 bytes) - added by crapshoot 8 years ago.

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by crapshoot

Attachment: Portfile.patch added

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

Cc: seanfarley added

comment:2 Changed 7 years ago by seanfarley (Sean Farley)

Owner: set to seanfarley
Resolution: fixed
Status: newclosed

In 4727de8fe890e74a5e3db500ebe7df82d2e5564e/macports-ports:

emacs-mac-app: fix error when app_dir is subdirectory of prefix

Fixes: #53775

Note: See TracTickets for help on using tickets.