[MacPorts] #50724: audacity: mixed localization issues
MacPorts
noreply at macports.org
Tue Mar 8 14:33:34 PST 2016
#50724: audacity: mixed localization issues
-----------------------+-------------------------
Reporter: devans@… | Owner: rjvbertin@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Resolution: | Keywords: haspatch
Port: audacity |
-----------------------+-------------------------
Comment (by devans@…):
Yes, it looks like you're right. Declaring a path in destroot.keepsdir
should create the corresponding directory and place the ".turd" file in it
if they don't already exist. It's the presence of this ".turd" file in
the folder that keeps it from getting deleted.
Here's the relevant code from portdestroot::destroot_finish which is
executed after any post-destroot sections:
{{{
# Prune empty directories in ${destroot}
foreach path ${destroot.keepdirs} {
if {![file isdirectory ${path}]} {
xinstall -m 0755 -d ${path}
}
if {![file exists ${path}/.turd_${subport}]} {
xinstall -c -m 0644 /dev/null ${path}/.turd_${subport}
}
}
fs-traverse -depth dir ${destroot} {
if {[file type $dir] eq "directory"} {
catch {file delete $dir}
}
}
}}}
I'll double check my results when I get a chance (long build currently
running) and, if all works out as expected, commit your original
suggestion.
--
Ticket URL: <https://trac.macports.org/ticket/50724#comment:12>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list