[MacPorts] #48577: subversion 1.9.0+ causes port lint Portfile property checks to fail
MacPorts
noreply at macports.org
Fri Aug 14 11:44:10 PDT 2015
#48577: subversion 1.9.0+ causes port lint Portfile property checks to fail
----------------------+--------------------------------
Reporter: devans@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.3.3
Keywords: | Port:
----------------------+--------------------------------
This concerns the behavior of the '''port lint''' command when the
standard svn properties have not been set on a given Portfile.
Using subversion 1.8.14 and earlier, failure to set these properties on
the Portfile results in the useful message:
{{{
---> Verifying Portfile for argyll
Error: Missing subversion property on Portfile, please execute: svn ps
svn:keywords Id Portfile
---> 1 errors and 0 warnings found.
}}}
However, after upgrading to subversion 1.9.0, the message is less helpful:
{{{
$ port lint
---> Verifying Portfile for argyll
Warning: Unable to check for svn:keywords property: svn: warning: W200017:
Property 'svn:keywords' not found on
'/opt/macports/trunk/dports/graphics/argyll/Portfile'
svn: E200000: A problem occurred; see other errors for details
child process exited abnormally
---> 0 errors and 0 warnings found.
}}}
The cause is due to the fact that, in 1.9.0, subversion now considers it
an error if propget is executed on a file when the target property does
not exist.
In the earlier subversion versions, subversion does not generate an error
and just returns with null output.
The current code depends on this latter behavior to identify when a
property has not been set. If subversion returns an error, the error is
printed as shown in the 1.9.0 case. The new 1.9.0 behavior in this
situation needs to be accommodated as well as that of the older versions.
Tested in MacPorts 2.3.3 but examination of current subversion HEAD shows
that the problem has not yet been dealt with.
--
Ticket URL: <https://trac.macports.org/ticket/48577>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list