ports/170537: devel/libftdi seems broken on i386 and amd64

zoon01 zoon01 at nas4free.org
Sat Aug 11 13:40:02 UTC 2012


>Number:         170537
>Category:       ports
>Synopsis:       devel/libftdi seems broken on i386 and amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 11 13:40:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Michael Zoon
>Release:        FreeBSD 9.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD pegasus.bayofrum.net 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Sun Apr 29 12:29:02 BST 2012 root at pegasus.bayofrum.net:/usr/obj/usr/src/sys/PEGASUS amd64


	
>Description:
	
>How-To-Repeat:
	
>Fix:

	

This is a multipart message in MIME format.

------=_NextPart_000_0004_01CD7758.A511D890
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Port devel/libftdi seems broken on both i386 and amd64 freebsd 9.0 release
p4

I included all the new files for the port upgrade for libftdi from 0.18 to
0.20

>From files in current port tree this file can be removed:
patch-examples_serial_read.c as it is no longer used

Regards,
Michael Zoon



===>  Building for libftdi-0.18
(CDPATH="${ZSH_VERSION+.}:" && cd . && /usr/local/bin/autoheader-2.69)
rm -f stamp-h1
touch ./config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make  all-recursive
Making all in src
/bin/sh ../libtool --tag=CC    --mode=compile cc -DHAVE_CONFIG_H -I. -I..
-O2 -pipe -I/usr/local/include -fno-strict-aliasing -MT ftdi.lo -MD -MP -MF
.deps/ftdi.Tpo -c -o ftdi.lo ftdi.c
mv -f .deps/ftdi.Tpo .deps/ftdi.Plo
mv: rename .deps/ftdi.Tpo to .deps/ftdi.Plo: No such file or directory
*** Error code 1

Stop in /usr/ports/devel/libftdi/work/libftdi-0.18/src.
*** Error code 1

Stop in /usr/ports/devel/libftdi/work/libftdi-0.18.
*** Error code 1

Stop in /usr/ports/devel/libftdi/work/libftdi-0.18.
*** Error code 1

Stop in /usr/ports/devel/libftdi.
*** Error code 1

Stop in /usr/ports/devel/libftdi.
dev#

------=_NextPart_000_0004_01CD7758.A511D890
Content-Type: application/octet-stream;
	name="distinfo"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="distinfo"

SHA256 (libftdi-0.20.tar.gz) =3D =
3176d5b5986438f33f5208e690a8bfe90941be501cc0a72118ce3d338d4b838e=0A=
SIZE (libftdi-0.20.tar.gz) =3D 423570=0A=

------=_NextPart_000_0004_01CD7758.A511D890
Content-Type: application/octet-stream;
	name="Makefile"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="Makefile"

# New ports collection makefile for:	libftdi=0A=
# Date created:				2006-07-27=0A=
# Whom:					Olexandr Davydenko <o.davydenko at gmail.com>=0A=
#=0A=
# $FreeBSD: ports/devel/libftdi/Makefile,v 1.17 2011/09/23 22:22:03 =
amdmi3 Exp $=0A=
#=0A=
=0A=
PORTNAME=3D	libftdi=0A=
PORTVERSION=3D	0.20=0A=
CATEGORIES=3D	devel=0A=
MASTER_SITES=3D	http://www.intra2net.com/en/developer/libftdi/download/=0A=
=0A=
MAINTAINER=3D	zoon01 at nas4free.org=0A=
COMMENT=3D	A library (using libusb) to talk to FTDI chips=0A=
=0A=
OPTIONS=3D	BOOST	"Build with boost"	off=0A=
=0A=
USE_AUTOTOOLS=3D		autoconf libtool automake=0A=
GNU_CONFIGURE=3D		yes=0A=
CFLAGS+=3D		-I${LOCALBASE}/include=0A=
USE_LDCONFIG=3D		yes=0A=
USE_GNOME=3D		pkgconfig gnomehack=0A=
=0A=
PORTDOCS=3D		COPYING.LIB ChangeLog README=0A=
=0A=
.include <bsd.port.pre.mk>=0A=
=0A=
.if defined(WITH_BOOST)=0A=
PLIST_SUB+=3D		BOOST=3D""=0A=
CONFIGURE_ARGS+=3D	--with-boost=0A=
CXXFLAGS+=3D		"-I${LOCALBASE}/include"=0A=
LIB_DEPENDS+=3D		boost_system.4:${PORTSDIR}/devel/boost-libs=0A=
.else=0A=
PLIST_SUB+=3D		BOOST=3D"@comment "=0A=
CONFIGURE_ARGS+=3D	--without-boost=0A=
.endif=0A=
=0A=
.if ${OSVERSION} < 800069=0A=
LIB_DEPENDS+=3D	usb-0.1:${PORTSDIR}/devel/libusb=0A=
.else=0A=
EXTRA_PATCHES=3D	${FILESDIR}/extra-patch-configure.in=0A=
.endif=0A=
=0A=
post-patch:=0A=
	@${REINPLACE_CMD} -E -e \=0A=
		's:\$$\(libdir\)/pkgconfig:${PREFIX}/libdata/pkgconfig:' \=0A=
		${WRKSRC}/Makefile.am ${WRKSRC}/Makefile.in=0A=
=0A=
pre-configure:=0A=
	@cd ${WRKSRC} && ${AUTORECONF}=0A=
=0A=
post-install:=0A=
.if !defined(NOPORTDOCS)=0A=
	${MKDIR} ${DOCSDIR}=0A=
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}=0A=
.endif=0A=
=0A=
.include <bsd.port.post.mk>=0A=

------=_NextPart_000_0004_01CD7758.A511D890
Content-Type: application/octet-stream;
	name="extra-patch-configure.in"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="extra-patch-configure.in"

--- configure.in.orig	2012-03-19 12:20:56.000000000 +0100=0A=
+++ configure.in	2012-08-10 23:27:47.000000000 +0200=0A=
@@ -7,30 +7,7 @@=0A=
 AM_PROG_LIBTOOL=0A=
 AC_PROG_CXX=0A=
 =0A=
-dnl check for libusb-config=0A=
-AC_CHECK_TOOL(HAVELIBUSB, libusb-config)=0A=
-=0A=
-if test ! -z "$HAVELIBUSB"; then=0A=
-   LIBUSB_CFLAGS=3D`$HAVELIBUSB --cflags`=0A=
-   LIBUSB_LIBS=3D`$HAVELIBUSB --libs`=0A=
-=0A=
-   CFLAGS=3D"$CFLAGS $LIBUSB_CFLAGS"=0A=
-   LIBS=3D"$LIBS $LIBUSB_LIBS"=0A=
-else=0A=
-   AC_MSG_ERROR([*** libusb-config not found. You need a working libusb =
installation.])=0A=
-fi=0A=
-=0A=
-dnl check for version of libusb=0A=
-AC_MSG_CHECKING([if libusb version is >=3D 0.1.7])=0A=
-libusb_version_needed=3D"1007"=0A=
-libusb_version=3D`$HAVELIBUSB --version | sed -e "s/libusb //" | awk =
'BEGIN { FS =3D "."; } { printf "%d", ($''1 * 1000 + $''2) * 1000 + =
$''3;}'`=0A=
-=0A=
-if test $libusb_version -lt $libusb_version_needed; then=0A=
-   AC_MSG_RESULT(no)=0A=
-   AC_MSG_ERROR([*** libusb is too old ($libusb_version). You need a =
libusb installation newer or equal to 0.1.7.])=0A=
-else=0A=
-   AC_MSG_RESULT(yes)=0A=
-fi=0A=
+LIBS=3D"$LIBS -lusb"=0A=
 =0A=
 ENABLE_ASYNC_MODE=3D0=0A=
 AC_ARG_WITH(async-mode,=0A=

------=_NextPart_000_0004_01CD7758.A511D890
Content-Type: application/octet-stream;
	name="patch-examples_baud_test.c"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="patch-examples_baud_test.c"

--- examples/baud_test.c.orig	2012-03-15 10:58:44.000000000 +0100=0A=
+++ examples/baud_test.c	2012-08-10 22:37:09.000000000 +0200=0A=
@@ -31,6 +31,7 @@=0A=
 =0A=
 #include <sys/time.h>=0A=
 #include <stdio.h>=0A=
+#include <stdlib.h>=0A=
 #include <unistd.h>=0A=
 #include <ftdi.h>=0A=
 =0A=

------=_NextPart_000_0004_01CD7758.A511D890
Content-Type: application/octet-stream;
	name="patch-examples_bitbang.c"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="patch-examples_bitbang.c"

--- examples/bitbang.c.orig	2012-03-15 10:58:44.000000000 +0100=0A=
+++ examples/bitbang.c	2012-08-10 22:37:09.000000000 +0200=0A=
@@ -1,6 +1,7 @@=0A=
 /* This program is distributed under the GPL, version 2 */=0A=
 =0A=
 #include <stdio.h>=0A=
+#include <stdlib.h>=0A=
 #include <unistd.h>=0A=
 #ifdef __WIN32__=0A=
 #define sleep(x) Sleep(x)=0A=

------=_NextPart_000_0004_01CD7758.A511D890
Content-Type: application/octet-stream; name="patch-examples_bitbang_ft2232.c"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="patch-examples_bitbang_ft2232.c"

--- examples/bitbang_ft2232.c.orig	2012-03-15 10:58:44.000000000 +0100=0A=
+++ examples/bitbang_ft2232.c	2012-08-10 22:37:09.000000000 +0200=0A=
@@ -9,6 +9,7 @@=0A=
 */=0A=
 =0A=
 #include <stdio.h>=0A=
+#include <stdlib.h>=0A=
 #include <unistd.h>=0A=
 #ifdef __WIN32__=0A=
 #define sleep(x) _sleep(x)=0A=

------=_NextPart_000_0004_01CD7758.A511D890
Content-Type: application/octet-stream;
	name="patch-examples_bitbang2.c"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="patch-examples_bitbang2.c"

--- examples/bitbang2.c.orig	2012-03-15 10:58:44.000000000 +0100=0A=
+++ examples/bitbang2.c	2012-08-10 22:37:09.000000000 +0200=0A=
@@ -30,6 +30,7 @@=0A=
 =0A=
 =0A=
 #include <stdio.h>=0A=
+#include <stdlib.h>=0A=
 #include <unistd.h>=0A=
 #ifdef __WIN32__=0A=
 #define usleep(x) Sleep((x+999)/1000)=0A=

------=_NextPart_000_0004_01CD7758.A511D890
Content-Type: application/octet-stream;
	name="patch-examples_find_all.c"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="patch-examples_find_all.c"

--- examples/find_all.c.orig	2012-03-15 10:58:44.000000000 +0100=0A=
+++ examples/find_all.c	2012-08-10 22:37:09.000000000 +0200=0A=
@@ -6,6 +6,7 @@=0A=
 */=0A=
 =0A=
 #include <stdio.h>=0A=
+#include <stdlib.h>=0A=
 #include <ftdi.h>=0A=
 =0A=
 int main(void)=0A=

------=_NextPart_000_0004_01CD7758.A511D890
Content-Type: application/octet-stream;
	name="patch-examples_simple.c"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="patch-examples_simple.c"

--- examples/simple.c.orig	2012-03-15 10:58:44.000000000 +0100=0A=
+++ examples/simple.c	2012-08-10 22:49:53.000000000 +0200=0A=
@@ -6,6 +6,7 @@=0A=
 */=0A=
 =0A=
 #include <stdio.h>=0A=
+#include <stdlib.h>=0A=
 #include <ftdi.h>=0A=
 =0A=
 int main(void)=0A=

------=_NextPart_000_0004_01CD7758.A511D890
Content-Type: application/octet-stream;
	name="patch-src_ftdi.c"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="patch-src_ftdi.c"

--- src/ftdi.c.orig	2012-03-15 10:58:44.000000000 +0100=0A=
+++ src/ftdi.c	2012-08-10 22:42:51.000000000 +0200=0A=
@@ -28,6 +28,7 @@=0A=
 /** \addtogroup libftdi */=0A=
 /* @{ */=0A=
 =0A=
+#include <stdlib.h>=0A=
 #include <usb.h>=0A=
 #include <string.h>=0A=
 #include <errno.h>=0A=

------=_NextPart_000_0004_01CD7758.A511D890
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
freebsd-ports-bugs at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe at freebsd.org"

------=_NextPart_000_0004_01CD7758.A511D890--

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list