ports/134758: [patch] graphics/pngnq: fix build

Stefan Bethke stb at lassitu.de
Wed May 20 16:40:04 UTC 2009


>Number:         134758
>Category:       ports
>Synopsis:       [patch] graphics/pngnq: fix build
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 20 16:40:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Stefan Bethke
>Release:        FreeBSD 8.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD koef.zs64.net 8.0-CURRENT FreeBSD 8.0-CURRENT #8: Thu Feb 12 21:42:10 UTC 2009 root at lokschuppen.lassitu.de:/usr/obj/usr/src/sys/EISENBOOT amd64
>Description:

CFLAGS hat wrong quoting for the version number, resulting in a segfault on
invocation of pngnq -V.

>How-To-Repeat:
>Fix:
diff -u Makefile.orig Makefile
--- Makefile.orig	2009-05-11 00:37:04.000000000 +0200
+++ Makefile	2009-05-20 18:30:09.979798772 +0200
@@ -7,6 +7,7 @@
 
 PORTNAME=	pngnq
 PORTVERSION=	0.5
+PORTREVISION=	1
 CATEGORIES=	graphics
 MASTER_SITES=	SF
 DISTNAME=	${PORTNAME}-${PORTVERSION}-src
@@ -19,7 +20,7 @@
 WRKSRC=		${WRKDIR}/${PORTVERSION}
 
 USE_GMAKE=	yes
-MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS} -I${LOCALBASE}/include -DVERSION='${PORTVERSION}'" \
+MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS} -I${LOCALBASE}/include -DVERSION='\"${PORTVERSION}\"'" \
 		LDFLAGS="-lpng -lz -lm -L${LOCALBASE}/lib"
 
 PORTDOCS=	README LICENSE README.pngcomp
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list