Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Aug 2004 23:00:12 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/70406: Update port: devel/dparser to 1.11
Message-ID:  <20040813230012.2ad6b710.tkato432@yahoo.com>
Resent-Message-ID: <200408131410.i7DEAOsA002236@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         70406
>Category:       ports
>Synopsis:       Update port: devel/dparser to 1.11
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 13 14:10:23 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.10-RELEASE-p2 i386
>Organization:
>Environment:
>Description:
- Update to version 1.11

New file:
files/patch-write_tables.c

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/devel/dparser/Makefile devel/dparser/Makefile
--- /usr/ports/devel/dparser/Makefile	Mon Jun 28 22:57:47 2004
+++ devel/dparser/Makefile	Wed Aug 11 09:13:45 2004
@@ -7,7 +7,7 @@
 #
 
 PORTNAME=	dparser
-PORTVERSION=	1.10
+PORTVERSION=	1.11
 CATEGORIES=	devel
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -24,7 +24,16 @@
 MAN1=		make_dparser.1
 PORTDOCS=	faq.html index.html manual.html
 PLIST_FILES=	bin/make_dparser include/dparse.h include/dparse_tables.h \
-		include/dsymtab.h lib/libdparse.a
+		include/dsymtab.h lib/${LIBDPARSE}
+
+.if defined(WITH_GC)
+LIB_DEPENDS+=	gc:${PORTSDIR}/devel/boehm-gc
+MAKE_ARGS+=	D_USE_GC=1 \
+		GC_CFLAGS="-I${LOCALBASE}/include -L${LOCALBASE}/lib"
+LIBDPARSE=	libdparse_gc.a
+.else
+LIBDPARSE=	libdparse.a
+.endif
 
 .include <bsd.port.pre.mk>
 
@@ -35,10 +44,10 @@
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/make_dparser ${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/make_dparser.1 ${MANPREFIX}/man/man1
-	${INSTALL_DATA} ${WRKSRC}/libdparse.a ${PREFIX}/lib
 	${INSTALL_DATA} ${WRKSRC}/dparse.h ${PREFIX}/include
 	${INSTALL_DATA} ${WRKSRC}/dparse_tables.h ${PREFIX}/include
 	${INSTALL_DATA} ${WRKSRC}/dsymtab.h ${PREFIX}/include
+	${INSTALL_DATA} ${WRKSRC}/${LIBDPARSE} ${PREFIX}/lib
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/*.html ${DOCSDIR}
diff -urN /usr/ports/devel/dparser/distinfo devel/dparser/distinfo
--- /usr/ports/devel/dparser/distinfo	Mon Jun 28 22:57:47 2004
+++ devel/dparser/distinfo	Wed Aug 11 08:56:53 2004
@@ -1,2 +1,2 @@
-MD5 (d-1.10-src.tar.gz) = eb7fd35268d0080ba80d791c5172d629
-SIZE (d-1.10-src.tar.gz) = 196141
+MD5 (d-1.11-src.tar.gz) = 4443debf8c778e66203130617a251831
+SIZE (d-1.11-src.tar.gz) = 198263
diff -urN /usr/ports/devel/dparser/files/patch-write_tables.c devel/dparser/files/patch-write_tables.c
--- /usr/ports/devel/dparser/files/patch-write_tables.c	Thu Jan  1 09:00:00 1970
+++ devel/dparser/files/patch-write_tables.c	Wed Aug 11 09:15:55 2004
@@ -0,0 +1,26 @@
+--- write_tables.c.orig	Mon Aug  2 08:24:03 2004
++++ write_tables.c	Wed Aug 11 09:15:44 2004
+@@ -87,6 +87,7 @@
+ save_binary_tables(File *file) {
+   int i;
+   BinaryTablesHead tables;
++  unsigned int len;
+   
+   tables.n_relocs = file->relocations.n;
+   tables.n_strings = file->str_relocations.n;
+@@ -94,13 +95,13 @@
+   tables.tables_size = file->tables.cur - file->tables.start;
+   tables.strings_size = file->strings.cur - file->strings.start;
+ 
+-  unsigned int len = sizeof(BinaryTablesHead) +
++  len = sizeof(BinaryTablesHead) +
+     tables.tables_size + tables.strings_size +
+     (file->relocations.n * sizeof(void*)) +
+     (file->str_relocations.n * sizeof(void*));
+ 
+   if (file->str) {
+-    file->cur_str = *file->str = (unsigned char*)malloc(len);
++    file->cur_str = *file->str = (unsigned char*)MALLOC(len);
+     *file->str_len = len;
+   }
+ 
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040813230012.2ad6b710.tkato432>