[MacPorts] #16675: py25-libdnet trying to get py-libdnet to work with Python 2.5
#16675: py25-libdnet trying to get py-libdnet to work with Python 2.5 -------------------------------+-------------------------------------------- Reporter: msavory@nzbox.com | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Keywords: python | Port: -------------------------------+-------------------------------------------- Attempted to modify the port file see attached But build fails... {{{ $ sudo port install py25-libdnet ---> Fetching py25-libdnet ---> Verifying checksum(s) for py25-libdnet ---> Extracting py25-libdnet ---> Configuring py25-libdnet ---> Building py25-libdnet with target all ---> Staging py25-libdnet into destroot Error: Target org.macports.destroot returned: shell command " cd "/opt/local/var/macports/build/_Users_mikesavory_mp_python_py25-libdnet/work/libdnet-1.11/python" && /opt/local/bin/python2.5 ./setup.py install install --prefix=/opt/local --root=/opt/local/var/macports/build/_Users_mikesavory_mp_python_py25-libdnet/work/destroot " returned error 1 Command output: running install running build running build_ext building 'dnet' extension creating build creating build/temp.macosx-10.3-i386-2.5 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I../include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c ./dnet.c -o build/temp.macosx-10.3-i386-2.5/./dnet.o unable to execute -DNDEBUG: No such file or directory error: command '-DNDEBUG' failed with exit status 1 Error: Status 1 encountered during processing. }}} What am I doing wrong? wanting to get scapy2 into macports see scapy port -- Ticket URL: <http://trac.macports.org/ticket/16675> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16675: py25-libdnet trying to get py-libdnet to work with Python 2.5 --------------------------------+------------------------------------------- Reporter: msavory@nzbox.com | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: | Keywords: python Port: | --------------------------------+------------------------------------------- Comment(by blb@macports.org): The error {{{ unable to execute -DNDEBUG: No such file or directory }}} is the Tcl environment bug, as documented in ticket #13930. Try cleaning py25-libdnet then building it again. -- Ticket URL: <http://trac.macports.org/ticket/16675#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16675: py25-libdnet trying to get py-libdnet to work with Python 2.5 --------------------------------+------------------------------------------- Reporter: msavory@nzbox.com | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: | Keywords: python Port: | --------------------------------+------------------------------------------- Comment(by msavory@nzbox.com): Hi, I have cleaned and built it 5 times with no success, I think it has something to do with the original port not using portgroup like the py- pylibpcap that I have got to work, I just don't understand the python portgroup stuff enough to know how to fix this. I assume its me not setting the ENV correctly, not the TCL bug.. or that how this port is configured it somehow hits the TCL bug everytime... M -- Ticket URL: <http://trac.macports.org/ticket/16675#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16675: py25-libdnet trying to get py-libdnet to work with Python 2.5 --------------------------------+------------------------------------------- Reporter: msavory@nzbox.com | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: | Keywords: python Port: | --------------------------------+------------------------------------------- Comment(by blb@macports.org): Interesting, looks like this is one of the Tcl env bug's edge cases which hasn't been fixed yet. When it fails for you, immediately just try {{{sudo port install py25-libdnet}}} again. For me, running trunk MacPorts, it also fails the first try, but the second run works just fine. Could be like the one mentioned in #14876. -- Ticket URL: <http://trac.macports.org/ticket/16675#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16675: py25-libdnet trying to get py-libdnet to work with Python 2.5 --------------------------------+------------------------------------------- Reporter: msavory@nzbox.com | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: | Keywords: python Port: | --------------------------------+------------------------------------------- Comment(by msavory@nzbox.com): Repeated attempts to install without cleaning give... {{{ $ sudo port install py25-libdnet ---> Fetching py25-libdnet ---> Attempting to fetch libdnet-1.11.tar.gz from http://downloads.sourceforge.net/libdnet ---> Verifying checksum(s) for py25-libdnet ---> Extracting py25-libdnet ---> Configuring py25-libdnet ---> Building py25-libdnet with target all ---> Staging py25-libdnet into destroot Error: Target org.macports.destroot returned: shell command " cd "/opt/local/var/macports/build/_Users_mikesavory_mp_python_py25-libdnet/work/libdnet-1.11/python" && /opt/local/bin/python2.5 ./setup.py install install --prefix=/opt/local --root=/opt/local/var/macports/build/_Users_mikesavory_mp_python_py25-libdnet/work/destroot " returned error 1 Command output: running install running build running build_ext building 'dnet' extension creating build creating build/temp.macosx-10.3-i386-2.5 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I../include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c ./dnet.c -o build/temp.macosx-10.3-i386-2.5/./dnet.o unable to execute -DNDEBUG: No such file or directory error: command '-DNDEBUG' failed with exit status 1 Error: Status 1 encountered during processing. $ sudo port install py25-libdnet ---> Staging py25-libdnet into destroot ---> Installing py25-libdnet 1.11_0 Error: Target org.macports.install returned: Registry error: py25-libdnet @1.11_0 already registered as installed. Please uninstall it first. Error: Status 1 encountered during processing. $ sudo port install py25-libdnet ---> Installing py25-libdnet 1.11_0 Error: Target org.macports.install returned: Registry error: py25-libdnet @1.11_0 already registered as installed. Please uninstall it first. Error: Status 1 encountered during processing. [21:25:20] [mikesavory@PB15-Leo-2:~/mp] $ }}} -- Ticket URL: <http://trac.macports.org/ticket/16675#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16675: py25-libdnet trying to get py-libdnet to work with Python 2.5 --------------------------------+------------------------------------------- Reporter: msavory@nzbox.com | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: | Keywords: python Port: | --------------------------------+------------------------------------------- Comment(by blb@macports.org): The second run made it through destroot without issue, but you already have py25-libdnet installed so the new install didn't work. Of course, the big issue is what's causing the need to rerun in the first place. -- Ticket URL: <http://trac.macports.org/ticket/16675#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16675: py25-libdnet trying to get py-libdnet to work with Python 2.5 --------------------------------+------------------------------------------- Reporter: msavory@nzbox.com | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: | Keywords: python Port: | --------------------------------+------------------------------------------- Comment(by msavory@nzbox.com): OK more clarity here... I had to sudo port -f uninstall py-libdnet sudo port install py25-libdnet And now everything seems to work. Why did the "registry" think I had the 2.5 version installed? How do you indicate that the port conflicts, or is there something in the python group for 2.5 that I am missing that would manage to avoid this conflict? -- Ticket URL: <http://trac.macports.org/ticket/16675#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16675: py25-libdnet trying to get py-libdnet to work with Python 2.5 --------------------------------+------------------------------------------- Reporter: msavory@nzbox.com | Owner: pmq@macports.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: | Keywords: python Port: | --------------------------------+------------------------------------------- Changes (by pmq@macports.org): * owner: macports-tickets@lists.macosforge.org => pmq@macports.org Comment: Hi Mike, Will commit your port, I also want scapy2 in the tree. It seems Chris Owen is inactive in the project as of now, so would you accept to be the maintainer? -- Ticket URL: <http://trac.macports.org/ticket/16675#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16675: py25-libdnet trying to get py-libdnet to work with Python 2.5 --------------------------------+------------------------------------------- Reporter: msavory@nzbox.com | Owner: pmq@macports.org Type: enhancement | Status: closed Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: python Port: | --------------------------------+------------------------------------------- Changes (by pmq@macports.org): * status: new => closed * resolution: => fixed Comment: OK committed, thanks. BTW, saw your mail on -dev, I already committed #16677 some time ago. -- Ticket URL: <http://trac.macports.org/ticket/16675#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts