#456 closed defect (fixed)
[NEW PORT] PyXML
Reported by: | ryanwilcox@… | Owned by: | jpm@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.0 |
Keywords: | Cc: | jpm@… | |
Port: |
Description
Attached are the port and patch files for PyXML, XML tools for Python
Attachments (5)
Change History (13)
Changed 22 years ago by ryanwilcox@…
comment:1 Changed 22 years ago by jpm@…
if the given patchfiles are only applicable to darwin/macosx you might want to place them in a variant block instead of global. this will allow the port to work on other platforms without being molested by darwin/macosx specific changes
variant darwin {
patchfiles spider.monkey
}
comment:2 Changed 22 years ago by ryanwilcox@…
attachments.isobsolete: | 0 → 1 |
---|
comment:3 Changed 22 years ago by ryanwilcox@…
Cc: | jpm@… added |
---|
comment:4 Changed 22 years ago by jpm@…
Owner: | changed from kevin@… to jpm@… |
---|
the portfile as attached didn't parse correctly -- attaching my copy with more master_sites and fixed darwin variant comment.
obviously this doesn't afford us a whole lot as it still fails to build...
DEBUG: Executing com.apple.patch (pyxml) ---> Applying /opt/local/var/db/dports/distfiles/patch-setup.py.diff DEBUG: Assembled command: 'cd /Users/jpm/sandbox/darwinports/dports/devel/pyxml/work/ PyXML-0.8.2 && patch -p0' patch unexpectedly ends in middle of line patch: Only garbage was found in the patch input. Error: Target com.apple.patch returned: shell command "cd /Users/jpm/sandbox/darwinports/ dports/devel/pyxml/work/PyXML-0.8.2 && patch -p0 < "/opt/local/var/db/dports/distfiles/ patch-setup.py.diff"" returned error 2 Command output: patch unexpectedly ends in middle of line patch: Only garbage was found in the patch input.
comment:5 Changed 22 years ago by jpm@…
attachments.isobsolete: | 0 → 1 |
---|
comment:6 Changed 22 years ago by jpm@…
my bad, the patchfile was hosed as saved by safari...
looks like you are trying to use the python bin from /opt/local/bin but this can be installed by the system elsewhere -- you should probably let the sys decide which python bin to use and not hard code it. install fails with:
DEBUG: Executing com.apple.install (pyxml) DEBUG: Assembled command: 'cd /Users/jpm/sandbox/darwinports/dports/devel/pyxml/work/ PyXML-0.8.2 && /opt/local/bin/python setup.py install --prefix=/Users/jpm/sandbox/ darwinports/dports/devel/pyxml/work/destroot/opt/local ' sh: /opt/local/bin/python: No such file or directory Error: Target com.apple.install returned: shell command "cd /Users/jpm/sandbox/darwinports/ dports/devel/pyxml/work/PyXML-0.8.2 && /opt/local/bin/python setup.py install --prefix=/ Users/jpm/sandbox/darwinports/dports/devel/pyxml/work/destroot/opt/local " returned error 127 Command output: sh: /opt/local/bin/python: No such file or directory
comment:7 Changed 22 years ago by ryanwilcox@…
attachments.isobsolete: | 0 → 1 |
---|
comment:8 Changed 22 years ago by jpm@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
i think you just want to list python, rather than specify any path to the binary -- this will allow the system to resolve the dependency which could be satisified from a number of location...
made that change and checking in. thank you for the port -- keep 'em coming :0)
The port file