Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#16675 closed enhancement (fixed)

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

Reported by: mike-savory Owned by: pmq@…
Priority: Normal Milestone:
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 (1)

Portfile (1.3 KB) - added by mike-savory 16 years ago.
First cut at portfile

Download all attachments as: .zip

Change History (10)

Changed 16 years ago by mike-savory

Attachment: Portfile added

First cut at portfile

comment:1 Changed 16 years 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.

comment:2 Changed 16 years ago by mike-savory

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

comment:3 Changed 16 years 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.

comment:4 Changed 16 years ago by mike-savory

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


comment:5 Changed 16 years 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.

comment:6 Changed 16 years ago by mike-savory

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?

comment:7 Changed 16 years 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?

comment:8 Changed 16 years ago by pmq@…

Resolution: fixed
Status: newclosed

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

comment:9 Changed 15 years ago by (none)

Milestone: Port Enhancements

Milestone Port Enhancements deleted

Note: See TracTickets for help on using tickets.