Bug 91302 - Update port: textproc/libextractor to 0.5.9
Summary: Update port: textproc/libextractor to 0.5.9
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: Kevin Lo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-04 09:00 UTC by Vasil Dimov
Modified: 2006-02-09 15:01 UTC (History)
1 user (show)

See Also:


Attachments
libextractor_0.5.7-0.5.9.diff (1.17 KB, patch)
2006-01-04 09:00 UTC, Vasil Dimov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vasil Dimov 2006-01-04 09:00:13 UTC
Update textproc/libextractor from 0.5.7 to 0.5.9

The update includes security fix, see:
http://gnunet.org/libextractor/
http://www.idefense.com/application/poi/display?id=344&type=vulnerabilities
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-01-04 09:04:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->kevlo

Over to maintainer
Comment 2 Vasil Dimov freebsd_committer freebsd_triage 2006-01-23 13:55:15 UTC
Recent tests on RELENG_4 show that this patch should be applied instead:

--- libextractor_0.5.7-0.5.9.diff begins here ---
Index: Makefile
===================================================================
RCS file: /usr/local/cvsupdroot/ports/textproc/libextractor/Makefile,v
retrieving revision 1.9
diff -u -r1.9 Makefile
--- Makefile	17 Nov 2005 01:25:10 -0000	1.9
+++ Makefile	23 Jan 2006 13:52:13 -0000
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	libextractor
-PORTVERSION=	0.5.7
+PORTVERSION=	0.5.9
 CATEGORIES=	textproc
 MASTER_SITES=	http://gnunet.org/libextractor/download/ \
 		${MASTER_SITE_GNU}
@@ -15,10 +15,10 @@
 MAINTAINER=	kevlo@FreeBSD.org
 COMMENT=	Library for keyword extraction
 
+USE_GCC=	3.4+
 USE_GNOME=	glib20
 USE_PYTHON=	yes
-USE_REINPLACE=	yes
-USE_AUTOTOOLS=	libtool:15 libltdl
+USE_AUTOTOOLS=	libtool:15:inc libltdl:15
 INSTALLS_SHLIB=	yes
 CONFIGURE_ARGS=	--disable-ltdl-install
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
@@ -36,9 +36,13 @@
 post-patch:
 	@${FIND} ${WRKSRC} -type f | ${XARGS} ${TOUCH} -f
 	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
-		${WRKSRC}/src/plugins/Makefile.*
+		${WRKSRC}/src/plugins/Makefile.* \
+		${WRKSRC}/src/plugins/exiv2/Makefile.* \
+		${WRKSRC}/src/plugins/rpm/Makefile.*
 	@${REINPLACE_CMD} -e 's|-lc_r|${PTHREAD_LIBS}|g' \
 		${WRKSRC}/configure
+	@${REINPLACE_CMD} -e 's|^#ifdef EXV_HAVE_STDINT_H$$|#if EXV_HAVE_STDINT_H|' \
+		${WRKSRC}/src/plugins/exiv2/types.hpp
 
 check: build
 	@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check)
@@ -59,4 +63,13 @@
 PLIST_SUB+=	VORBIS:="@comment "
 .endif
 
+patch-autotools::
+	@(cd ${PATCH_WRKSRC}; \
+	for file in ${LIBTOOLFILES}; do \
+		${CP} $$file $$file.tmp; \
+		${SED} -e "/^ltmain=/s^\$$ac_aux_dir/ltmain.sh^${LTMAIN}^g" \
+			$$file.tmp > $$file; \
+		${RM} $$file.tmp; \
+	done);
+
 .include <bsd.port.post.mk>
Index: distinfo
===================================================================
RCS file: /usr/local/cvsupdroot/ports/textproc/libextractor/distinfo,v
retrieving revision 1.3
diff -u -r1.3 distinfo
--- distinfo	17 Nov 2005 01:25:10 -0000	1.3
+++ distinfo	23 Jan 2006 13:52:13 -0000
@@ -1,3 +1,3 @@
-MD5 (libextractor-0.5.7.tar.gz) = fe08d8f9473fcea6963afcb3d7e858c4
-SHA256 (libextractor-0.5.7.tar.gz) = 680d6a48af9aadaec82a30f4cb6344464c35e15a5eeb10e7481312e971265594
-SIZE (libextractor-0.5.7.tar.gz) = 6127292
+MD5 (libextractor-0.5.9.tar.gz) = 21c22bf2653a3200968417d6642b6662
+SHA256 (libextractor-0.5.9.tar.gz) = 99a837dbe267d1d18267f9cdb5ee3b1583447c935765b32bb939a1c23edd2ea0
+SIZE (libextractor-0.5.9.tar.gz) = 6138887
Index: pkg-plist
===================================================================
RCS file: /usr/local/cvsupdroot/ports/textproc/libextractor/pkg-plist,v
retrieving revision 1.4
diff -u -r1.4 pkg-plist
--- pkg-plist	17 Nov 2005 01:25:10 -0000	1.4
+++ pkg-plist	23 Jan 2006 13:52:13 -0000
@@ -1,6 +1,5 @@
 bin/extract
 include/extractor.h
-lib/libextractor.a
 lib/libextractor.so
 lib/libextractor.so.2
 lib/libextractor/libextractor_asf.so
--- libextractor_0.5.7-0.5.9.diff ends here ---

-- 
Vasil Dimov
Comment 3 Vasil Dimov freebsd_committer freebsd_triage 2006-02-09 15:00:55 UTC
State Changed
From-To: open->closed

Committed (maintainer timeout)