[Bug 193923] New: security/vuxml: |make validate| fails if ${.OBJDIR} already exists
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Sep 25 13:31:41 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193923
Bug ID: 193923
Summary: security/vuxml: |make validate| fails if ${.OBJDIR}
already exists
Product: Ports Tree
Version: Latest
Hardware: Any
OS: Any
Status: Needs Triage
Keywords: patch
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: ports-secteam at FreeBSD.org
Reporter: jbeich at vfemail.net
Assignee: ports-secteam at FreeBSD.org
Flags: maintainer-feedback?(ports-secteam at FreeBSD.org)
Created attachment 147669
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=147669&action=edit
incomplete fix
According to make(1) manpage
Since make will chdir(2) to ‘.OBJDIR’ before executing any targets, each
child process starts with that as its current working directory.
and absolute paths are more commonplace in ports without an explicit |cd|.
$ export MAKEOBJDIRPREFIX=$HOME/.cache
$ export WRKDIRPREFIX=$HOME/.cache
$ make -V .OBJDIR
/home/foo/.cache/p/security/vuxml
$ mkdir /home/foo/.cache/p/security/vuxml
$ make validate
/bin/sh /p/security/vuxml/files/tidy.sh "/p/security/vuxml/files/tidy.xsl"
"/p/security/vuxml/vuln.xml" > "/p/security/vuxml/vuln.xml.tidy"
>>> Validating...
/usr/local/bin/xmllint --valid --noout /p/security/vuxml/vuln.xml
>>> Successful.
Checking if tidy differs...
... seems okay
Checking for space/tab...
... seems okay
/usr/local/bin/python2.7 /p/security/vuxml/files/extra-validation.py
Traceback (most recent call last):
File "/p/security/vuxml/files/extra-validation.py", line 8, in <module>
tree = ET.parse('vuln.xml')
File "/usr/local/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
tree.parse(source, parser)
File "/usr/local/lib/python2.7/xml/etree/ElementTree.py", line 647, in parse
source = open(source, "rb")
IOError: [Errno 2] No such file or directory: 'vuln.xml'
*** Error code 1
Stop.
--- Comment #1 from Bugzilla Automation <bugzilla at FreeBSD.org> ---
Auto-assigned to maintainer ports-secteam at FreeBSD.org
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list