Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#16704 closed defect (fixed)

p5-file-basedir-0.03 patch to use MacPorts location for XDG_DATA_DIRS

Reported by: blb@… Owned by: ghosthound
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc:
Port: p5-file-basedir

Description

The default value for XDG_DATA_DIRS is /usr/local/share and /usr/share, but should probably be /opt/local/share and (maybe) /usr/share. Attached is a tarball with a Portfile diff and files/patch-lib_File_BaseDir.pm.diff to change /usr/local to /opt/local.

Also note that files/patch-Makefile.PL.diff is no longer referenced in Portfile.

Attachments (1)

p5-file-basedir.tar.bz2 (884 bytes) - added by blb@… 16 years ago.
tarball containing Portfile and files/patch-lib_File_BaseDir.pm.diff

Download all attachments as: .zip

Change History (3)

Changed 16 years ago by blb@…

Attachment: p5-file-basedir.tar.bz2 added

tarball containing Portfile and files/patch-lib_File_BaseDir.pm.diff

comment:1 Changed 16 years ago by ghosthound

Resolution: fixed
Status: newclosed

The attached patch will fail when $prefix != /opt/local. I think we can safely change the line to just add the path w/o using File::Spec->catdir() (since we know the directory delimiters on our system, though if anyone wants the fun of splitting out ${prefix} and using File::Spec->catdir(), they're welcome to it). Fix applied in r40401.

Also, attaching tarballs to tickets for a small number of files makes extra work for anyone who wants to view said files, please attach them as native in the future.

comment:2 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.