Fwd: Building

Mike Savory msavory1 at nzbox.com
Fri Aug 29 23:39:47 PDT 2008


Sent this to Chris, the port maintainer

Should I open a ticket??

Mike


Begin forwarded message:

> From: Mike Savory <msavory at nzbox.com>
> Date: August 21, 2008 9:39:54 PM PDT
> To: chris.owen at consault.com
> Subject: Building
>
> Hi Chris
>
> Im trying to get a local portfile to work for py-libdnet and  
> python2.5 (to get scapy 2 running (requires Python 2.5)
>
> Have you looked at making a portfile for py25
>
>
>
> I tried both just changing yours to have
>
> set python.bin	${prefix}/bin/python2.5
>
> and to do add in the
>
> PortGroup               python25 1.0
>
> (which I don't really understand)
>
> I have had success with the py-pylibpcap library building OK I  
> think...
>
> This is my current try with your Portfile
>
> # $Id: Portfile 20751 2006-11-25 22:10:13Z markd at macports.org $
> PortSystem              1.0
> #PortGroup               python25 1.0
>
> set python.bin	${prefix}/bin/python2.5
>
> name                    py25-libdnet
> version                 1.11
> categories              python net
> maintainers             chris.owen at consault.com
> description             A python module for the libdnet low-level  
> networking library.
> long_description        \
>       Libdnet provides a simplified, portable interface to several  
> low-level \
>       networking routines, including: network address manipulation,  
> kernel \
>       arp(4) cache and route(4) table lookup and manipulation,  
> network \
>       firewalling (IP filter, ipfw, ipchains, pf, ...), network  
> interface \
>       lookup and manipulation, raw IP packet and Ethernet frame  
> transmission.
> homepage                http://libdnet.sourceforge.net/
>
>
> master_sites            sourceforge:libdnet
> distname                libdnet-${version}
>
> depends_lib	      port:libdnet
>
> checksums		md5 04c394ed8e1e7fc455456e79e908916d \
> 			sha1 e2ae8c7f0ca95655ae9f77fd4a0e2235dc4716bf \
> 			rmd160 9a940cdd96af4b513a048f3a389e3f7eb0bb7011
>
>
> pre-destroot {
> 	worksrcdir	${worksrcdir}/python
> }
> destroot.cmd		${python.bin} setup.py
> destroot.destdir	--prefix=${prefix} --root=${destroot}
>
>
> $ sudo port install py25-libdnet
> Portfile changed since last build; discarding previous state.
> --->  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 --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.
>
>
>
>
> Regards
>
> Mike



More information about the macports-dev mailing list