#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)
Change History (3)
Changed 16 years ago by blb@…
Attachment: | p5-file-basedir.tar.bz2 added |
---|
comment:1 Changed 16 years ago by ghosthound
Resolution: | → fixed |
---|---|
Status: | new → closed |
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.
tarball containing Portfile and files/patch-lib_File_BaseDir.pm.diff