ports/118468: [patch] databases/gbib unbreak fix build with GCC 4.2 + adopt maintainship
Pietro Cerutti
gahr at gahr.ch
Thu Dec 6 19:10:02 UTC 2007
>Number: 118468
>Category: ports
>Synopsis: [patch] databases/gbib unbreak fix build with GCC 4.2 + adopt maintainship
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Dec 06 19:10:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: Pietro Cerutti
>Release: FreeBSD 8.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD 8.0-CURRENT #15: Thu Dec 6 12:47:48 CET 2007
root at gahrtop.localhost:/usr/obj/usr/src/sys/MSI1034
>Description:
The patch below:
- removes a compiler flag which is no longer present in GCC 4.2
- sets maintainship to me
>How-To-Repeat:
cd /usr/ports/databases/gbib && make
>Fix:
--- _gbib.diff begins here ---
--- Makefile.orig 2007-12-06 19:49:05.000000000 +0100
+++ Makefile 2007-12-06 20:03:30.000000000 +0100
@@ -17,13 +17,13 @@
PATCHFILES= ${PORTNAME}_${PORTVERSION}-3.diff.gz
PATCH_DIST_STRIP= -p1
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= gahr at gahr.ch
COMMENT= Editor/browser for BibTeX bibliographic databases
USE_X_PREFIX= yes
USE_GNOME= gnomelibs
USE_GMAKE= yes
-USE_AUTOTOOLS= autoconf:213
+USE_AUTOTOOLS= libtool:15
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lintl"
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
@@ -31,12 +31,6 @@
CFLAGS+= -fpermissive
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 700042
-BROKEN= Broken with gcc 4.2
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's|map.h,|map,|g ; \
s|vector.h,|vector,|g' ${WRKSRC}/configure.in
@@ -47,9 +41,11 @@
s|^exec_prefix =.*$$|exec_prefix = @exec_prefix@|g ; \
s|^datadir =.*$$|datadir = @datadir@|g ; \
s|^localedir =.*$$|localedir = $$(prefix)/share/locale|g ; \
- s|^gnulocaledir =.*$$|gnulocaledir = $$(prefix)/share/locale|g'
+ s|^gnulocaledir =.*$$|gnulocaledir = $$(prefix)/share/locale|g; \
+ s|-fwritable-strings||g'
+ @${FIND} ${WRKSRC} -name "*.orig" -delete
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
--- _gbib.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list