Date: Tue, 08 Nov 2005 14:58:27 -0800 (PST) From: "Michael C. Shultz" <ringworm01@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Cc: holger@e-gitt.net Subject: ports/88699: [PATCH] multimedia/avifile doesn't build if CFLAGS= -ggdb Message-ID: <20051108225827.7E701130C21@ringworm.mechee.com> Resent-Message-ID: <200511082310.jA8NADsC018441@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 88699 >Category: ports >Synopsis: [PATCH] multimedia/avifile doesn't build if CFLAGS= -ggdb >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Nov 08 23:10:13 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Michael C. Shultz >Release: FreeBSD 5.4-STABLE i386 >Organization: >Environment: System: FreeBSD ringworm.mechee.com 5.4-STABLE FreeBSD 5.4-STABLE #0: Fri Nov 4 06:35:37 PST 2005 root@ringworm.mechee.com:/usr5/obj/usr5/src/sys/RINGWORM5 i386 >Description: multimedia/avifile doesn't build if CFLAGS= -ggdb I think, anyways I get this error: cc -DHAVE_CONFIG_H -I. -I. -I../../include -DHAVE_AV_CONFIG_H -I./../libavcodec -I./.. -I/usr/local/include -I/usr/local/include -I/usr/X11R6/include -D_GETOPT_H -Wall -Wno-unused -I../../include gdb -O -pipe -march=athlon-xp -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -c 4xm.c -fPIC -DPIC -o .libs/4xm.o cc: gdb: No such file or directory and my CFLAGS= -ggdb -O -pipe so something seems to be stripping out only the "-g", same thing happens later on with CXXFLAGS but that is to be expected because /etc/make.conf states "Note that CXXFLAGS is initially set to the value of CFLAGS." and I don't set CXXFLAGS to anything else. Anyways the attached patch simply replaces CFLAGS = gdb with CFLAGS = -ggdb and same for CXXFLAGS in all Makefiles then the port compiles just fine. >How-To-Repeat: set CFLAGS= -ggd in /etc/make.conf then try to build >Fix: --- avifile-0.7.41_1.diff begins here --- diff -ruN avifile/Makefile avifile-0.7.41_1/Makefile --- avifile/Makefile Fri Nov 26 01:18:28 2004 +++ avifile-0.7.41_1/Makefile Tue Nov 8 14:41:45 2005 @@ -7,6 +7,7 @@ PORTNAME= avifile PORTVERSION= 0.7.41 +PORTREVISION= 1 PORTEPOCH= 2 CATEGORIES= multimedia MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} @@ -293,6 +294,14 @@ .endif post-configure: + @${FIND} ${WRKSRC} \( -name Makefile \) | \ + ${XARGS} -n 10 ${REINPLACE_CMD} -E \ + -e 's|CFLAGS = gdb|CFLAGS = -ggdb|g' + + @${FIND} ${WRKSRC} \( -name Makefile \) | \ + ${XARGS} -n 10 ${REINPLACE_CMD} -E \ + -e 's|CXXFLAGS = gdb|CXXFLAGS = -ggdb|g' + @${LN} -sf ${LIBTOOL} ${WRKSRC}/libtool post-install: --- avifile-0.7.41_1.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051108225827.7E701130C21>