Bug 53604 - Update of devel/pcsc-lite
Summary: Update of devel/pcsc-lite
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-22 02:10 UTC by Toni Andjelkovic
Modified: 2003-06-24 13:10 UTC (History)
0 users

See Also:


Attachments
file.diff (3.23 KB, patch)
2003-06-22 02:10 UTC, Toni Andjelkovic
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toni Andjelkovic 2003-06-22 02:10:14 UTC
-	Update to 1.1.2.b.5.

-	MASTER_SITES has moved.

-	Handles "usbdropdir" and "muscledropdir" explicitly.

-	aclocal.m4 has moved, so there's no need to set LIBTOOLFILES
	any longer.

-	Two patches fixing flex-generated code which included <stdint.h>
	unconditionally, causing build failure on older systems (notably
	4.8-STABLE).
Comment 1 Daichi GOTO freebsd_committer freebsd_triage 2003-06-23 14:18:34 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 2 rob 2003-06-24 10:00:11 UTC
Toni Andjelkovic wrote:
>>Number:         53604
>>Category:       ports
>>Synopsis:       Update of devel/pcsc-lite
>>Confidential:   no
>>Severity:       serious
>>Priority:       medium
>>Responsible:    freebsd-ports-bugs
>>State:          open
>>Quarter:        
>>Keywords:       
>>Date-Required:
>>Class:          maintainer-update
>>Submitter-Id:   current-users
>>Arrival-Date:   Sat Jun 21 18:10:14 PDT 2003
>>Closed-Date:
>>Last-Modified:
>>Originator:     Toni Andjelkovic
>>Release:        FreeBSD 4.8-STABLE i386
>>Organization:
>>Environment:
> 
> System: FreeBSD gate.soth.at 4.8-STABLE FreeBSD 4.8-STABLE #2: Wed Jun 11 13:00:42 CEST 2003 toni@gate.soth.at:/usr/obj/usr/src/sys/GATE i386
> 
> 
>>Description:
> 
> 
> -	Update to 1.1.2.b.5.
> 
> -	MASTER_SITES has moved.
> 
> -	Handles "usbdropdir" and "muscledropdir" explicitly.
> 
> -	aclocal.m4 has moved, so there's no need to set LIBTOOLFILES
> 	any longer.
> 
> -	Two patches fixing flex-generated code which included <stdint.h>
> 	unconditionally, causing build failure on older systems (notably
> 	4.8-STABLE).
> 
> 
>>How-To-Repeat:
>>Fix:
> 
> 
> Index: Makefile
> ===================================================================
> RCS file: /home/ncvs/ports/devel/pcsc-lite/Makefile,v
> retrieving revision 1.8
> diff -u -r1.8 Makefile
> --- Makefile	19 May 2003 01:36:52 -0000	1.8
> +++ Makefile	22 Jun 2003 00:10:45 -0000
> @@ -6,19 +6,18 @@
>  #
>  
>  PORTNAME=	pcsc-lite
> -PORTVERSION=	1.1.2.b.4
> +PORTVERSION=	1.1.2.b.5
>  CATEGORIES=	devel security
> -MASTER_SITES=	http://ludovic.rousseau.free.fr/softwares/muscle/
> +MASTER_SITES=	http://alioth.debian.org/download.php/160/
>  DISTNAME=	${PORTNAME}-${PORTVERSION:S/.b./beta/}
>  
>  MAINTAINER=	toni@soth.at
>  COMMENT=	A smartcard development library
>  
> -WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.b.4//}
> +WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.b.5//}
>  GNU_CONFIGURE=	yes
>  USE_GMAKE=	yes
>  USE_LIBTOOL=	yes
> -LIBTOOLFILES+=	build/aclocal.m4
>  
>  INSTALLS_SHLIB=	yes
>  CONFIGURE_ENV+=	PTHREAD_LIBS="${PTHREAD_LIBS}"
> @@ -26,7 +25,9 @@
>  		--enable-syslog \
>  		--enable-runpid=/var/run/pcscd.pid \
>  		--enable-ipcdir=/var/tmp/ \
> -		--enable-confdir=${PREFIX}/etc \
> +		--enable-confdir=${PREFIX}/etc/ \
> +		--enable-usbdropdir=${PREFIX}/pcsc/drivers/ \
> +		--enable-muscledropdir=${PREFIX}/pcsc/services/ \
>  		--enable-threadsafe
>  PKGMESSAGE=	${WRKDIR}/pkg-message
>  MAN1=		formaticc.1
> @@ -39,6 +40,8 @@
>  	${INSTALL_DATA} ${WRKSRC}/doc/pcsc-lite-0.8.7.pdf ${DOCSDIR}
>  	${INSTALL_DATA} ${WRKSRC}/doc/muscle-api-1.3.0.pdf ${DOCSDIR}
>  .endif
> +	@${MKDIR} ${PREFIX}/pcsc/drivers
> +	@${MKDIR} ${PREFIX}/pcsc/services
>  	${INSTALL_DATA} ${WRKSRC}/etc/reader.conf \
>  		${PREFIX}/etc/reader.conf.sample
>  	${INSTALL_SCRIPT} ${FILESDIR}/pcscd.sh \
> Index: distinfo
> ===================================================================
> RCS file: /home/ncvs/ports/devel/pcsc-lite/distinfo,v
> retrieving revision 1.6
> diff -u -r1.6 distinfo
> --- distinfo	19 May 2003 01:36:53 -0000	1.6
> +++ distinfo	22 Jun 2003 00:10:45 -0000
> @@ -1 +1 @@
> -MD5 (pcsc-lite-1.1.2beta4.tar.gz) = 4ceb2cc932dc894f62f1226ac98a605e
> +MD5 (pcsc-lite-1.1.2beta5.tar.gz) = 38791ef76bd0c731d26893317d24fe3b
> Index: pkg-plist
> ===================================================================
> RCS file: /home/ncvs/ports/devel/pcsc-lite/pkg-plist,v
> retrieving revision 1.4
> diff -u -r1.4 pkg-plist
> --- pkg-plist	22 Feb 2003 03:24:14 -0000	1.4
> +++ pkg-plist	22 Jun 2003 00:10:45 -0000
> @@ -17,3 +17,6 @@
>  lib/libpcsclite.so.0
>  sbin/pcscd
>  %%PORTDOCS%%@dirrm share/doc/pcsc-lite
> +@dirrm pcsc/drivers
> +@dirrm pcsc/services
> +@dirrm pcsc
> --- /dev/null	Sun Jun 22 02:08:40 2003
> +++ files/patch-src::configfile.c	Sun Jun 22 01:38:03 2003
> @@ -0,0 +1,12 @@
> +--- src/configfile.c.bak	Sun Jun  1 23:43:39 2003
> ++++ src/configfile.c	Sun Jun  1 23:43:59 2003
> +@@ -20,7 +20,9 @@
> + #include <string.h>
> + #include <errno.h>
> + #include <stdlib.h>
> ++#ifdef HAVE_STDINT_H
> + #include <stdint.h> /* May break IA64 test-noansi-r */
> ++#endif
> + 
> + /* end standard C headers. */
> + 
> --- /dev/null	Sun Jun 22 02:08:40 2003
> +++ files/patch-src::tokenparser.c	Sun Jun 22 01:38:03 2003
> @@ -0,0 +1,12 @@
> +--- src/tokenparser.c.bak	Sun Jun  1 23:44:13 2003
> ++++ src/tokenparser.c	Sun Jun  1 23:44:31 2003
> +@@ -20,7 +20,9 @@
> + #include <string.h>
> + #include <errno.h>
> + #include <stdlib.h>
> ++#ifdef HAVE_STDINT_H
> + #include <stdint.h> /* May break IA64 test-noansi-r */
> ++#endif
> + 
> + /* end standard C headers. */
> + 
> 
>>Release-Note:
>>Audit-Trail:
>>Unformatted:
> 
> _______________________________________________
> freebsd-ports-bugs@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
> To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe@freebsd.org"
> 

After the port upgrade of devel/pcsc-lite I get an error 2 when 
building the package.

------snip--------
source='tokenparser.c' object='tokenparser.lo' libtool=yes \
depfile='.deps/tokenparser.Plo' tmpdepfile='.deps/tokenparser.TPlo' \
depmode=gcc /bin/sh ../build/depcomp \
/bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. 
-DPACKAGE=\"pcsc-lite\" -DVERSION=\"1.1.2\" -O -pipe -march=pentiumpro 
-D_THREAD_SAFE  -Wall -fno-common -c -o tokenparser.lo `test -f 
'tokenparser.c' || echo './'`tokenparser.c
rm -f .libs/tokenparser.lo
cc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE=\"pcsc-lite\" 
-DVERSION=\"1.1.2\" -O -pipe -march=pentiumpro -D_THREAD_SAFE -Wall 
-fno-common -c tokenparser.c -Wp,-MD,.deps/tokenparser.TPlo  -fPIC 
-DPIC -o .libs/tokenparser.lo
tokenparser.c:23: stdint.h: No such file or directory
tokenparser.c:1085: warning: `yyunput' defined but not used
gmake[3]: *** [tokenparser.lo] Error 1
gmake[3]: Leaving directory 
`/usr/ports/devel/pcsc-lite/work/pcsc-lite-1.1.2/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory 
`/usr/ports/devel/pcsc-lite/work/pcsc-lite-1.1.2/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
`/usr/ports/devel/pcsc-lite/work/pcsc-lite-1.1.2'
gmake: *** [all] Error 2
*** Error code 2
------snip--------


Rob Evers
Comment 3 Toni Andjelkovic 2003-06-24 12:41:41 UTC
> After the port upgrade of devel/pcsc-lite I get an error 2 when 
> building the package.
> 
> ------snip--------
> source='tokenparser.c' object='tokenparser.lo' libtool=yes \
> depfile='.deps/tokenparser.Plo' tmpdepfile='.deps/tokenparser.TPlo' \
> depmode=gcc /bin/sh ../build/depcomp \
> /bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. 
> -DPACKAGE=\"pcsc-lite\" -DVERSION=\"1.1.2\" -O -pipe -march=pentiumpro 
> -D_THREAD_SAFE  -Wall -fno-common -c -o tokenparser.lo `test -f 
> 'tokenparser.c' || echo './'`tokenparser.c
> rm -f .libs/tokenparser.lo
> cc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE=\"pcsc-lite\" 
> -DVERSION=\"1.1.2\" -O -pipe -march=pentiumpro -D_THREAD_SAFE -Wall 
> -fno-common -c tokenparser.c -Wp,-MD,.deps/tokenparser.TPlo  -fPIC 
> -DPIC -o .libs/tokenparser.lo
> tokenparser.c:23: stdint.h: No such file or directory
 
Hi Rob,

this error is because two patch files haven't been commited to CVS.
However, I submitted them:

> >-	Two patches fixing flex-generated code which included <stdint.h>
> >	unconditionally, causing build failure on older systems (notably
> >	4.8-STABLE).

Here they are:

> >--- /dev/null	Sun Jun 22 02:08:40 2003
> >+++ files/patch-src::configfile.c	Sun Jun 22 01:38:03 2003
> >@@ -0,0 +1,12 @@
> >+--- src/configfile.c.bak	Sun Jun  1 23:43:39 2003
> >++++ src/configfile.c	Sun Jun  1 23:43:59 2003
> >+@@ -20,7 +20,9 @@
> >+ #include <string.h>
> >+ #include <errno.h>
> >+ #include <stdlib.h>
> >++#ifdef HAVE_STDINT_H
> >+ #include <stdint.h> /* May break IA64 test-noansi-r */
> >++#endif
> >+ 
> >+ /* end standard C headers. */
> >+ 
> >--- /dev/null	Sun Jun 22 02:08:40 2003
> >+++ files/patch-src::tokenparser.c	Sun Jun 22 01:38:03 2003
> >@@ -0,0 +1,12 @@
> >+--- src/tokenparser.c.bak	Sun Jun  1 23:44:13 2003
> >++++ src/tokenparser.c	Sun Jun  1 23:44:31 2003
> >+@@ -20,7 +20,9 @@
> >+ #include <string.h>
> >+ #include <errno.h>
> >+ #include <stdlib.h>
> >++#ifdef HAVE_STDINT_H
> >+ #include <stdint.h> /* May break IA64 test-noansi-r */
> >++#endif
> >+ 
> >+ /* end standard C headers. */
> >+ 

These two files should be committed and the problem will
disappear.

Cheers,
-- 
Toni Andjelkovic
<toni@soth.at>
Comment 4 daichi 2003-06-24 13:07:19 UTC
I am sorry. It is my mistake.
I added and committed it. Thanks for your adivice.

--
  Daichi GOTO, http://people.freebsd.org/~daichi