Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #16675 (closed enhancement: fixed)

Opened 2 months ago

Last modified 6 weeks ago

py25-libdnet trying to get py-libdnet to work with Python 2.5

Reported by: msavory@… Owned by: pmq@…
Priority: Normal Milestone: Port Enhancements
Component: ports Version: 1.6.0
Keywords: python Cc: chris.owen@…
Port:

Description

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

Attachments

Portfile (1.3 KB) - added by msavory@… 2 months ago.
First cut at portfile

Change History

Changed 2 months ago by msavory@…

First cut at portfile

Changed 2 months ago by blb@…

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.

Changed 2 months ago by msavory@…

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

Changed 2 months ago by blb@…

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.

Changed 2 months ago by msavory@…

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]
$ 


Changed 2 months ago by blb@…

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.

Changed 2 months ago by msavory@…

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?

Changed 6 weeks ago by pmq@…

  • owner changed from macports-tickets@… to pmq@…

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?

Changed 6 weeks ago by pmq@…

  • status changed from new to closed
  • resolution set to fixed

OK committed, thanks. BTW, saw your mail on -dev, I already committed #16677 some time ago.

Note: See TracTickets for help on using tickets.