Date: Mon, 24 Feb 2003 12:25:50 GMT From: Jens Rehsack <rehsack@liwing.de> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Jens Rehsack <rehsack@liwing.de>, "Vanilla I. Shu" <vanilla@FreeBSD.org> Subject: ports/48624: fixing problem with using make.conf's CFLAGS of php-dbg-2.11.5 Message-ID: <200302241225.h1OCPoWK020435@helo.liwing.de>
next in thread | raw e-mail | index | archive | help
>Number: 48624 >Category: ports >Synopsis: fixing problem with using make.conf's CFLAGS of php-dbg-2.11.5 >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: Mon Feb 24 04:30:14 PST 2003 >Closed-Date: >Last-Modified: >Originator: Jens Rehsack >Release: FreeBSD 4.7-STABLE i386 >Organization: LiWing IT-Services >Environment: System: FreeBSD fozzie.muppets.liwing.de 4.7-STABLE FreeBSD 4.7-STABLE #0: Sun Feb 2 21:10:03 GMT 2003 root@fozzie.muppets.liwing.de:/usr/obj/usr/src/sys/FOZZIE i386 >Description: Since phpize generates the autoconf and configure scripts for the port, it doesn't recognize the value for CFLAGS in /etc/make.conf not correctly (better: ignore it). Even a fix in the skeleton files of the php port would be much better, here is a fix for the php-dbg port. >How-To-Repeat: Look at the commands for compile 'make build' is using :-) >Fix: --- php-dbg.diff begins here --- --- Makefile.orig Mon Feb 24 12:05:15 2003 +++ Makefile Mon Feb 24 12:17:25 2003 @@ -7,6 +7,7 @@ PORTNAME= dbg PORTVERSION= 2.11.5 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://dd.cron.ru/dbg/dnld/ PKGNAMEPREFIX= php- @@ -24,6 +25,7 @@ WRKSRC= ${WRKDIR}/dbg CONFIGURE_ARGS= --enable-dbg=shared --with-dbg-profiler \ --with-php-config=${PREFIX}/bin/php-config +CONFIGURE_ENV= CFLAGS="${CFLAGS}" PKGMESSAGE= ${WRKDIR}/pkg-message PLIST= ${WRKDIR}/pkg-plist --- /dev/null Mon Feb 24 12:17:58 2003 +++ files/patch-configure Mon Feb 24 12:15:42 2003 @@ -0,0 +1,25 @@ +--- configure.orig Mon Feb 24 12:14:38 2003 ++++ configure Mon Feb 24 12:15:22 2003 +@@ -2217,18 +2217,18 @@ + + OVERALL_TARGET=php + php_c_pre='$(CC)' +- php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' ++ php_c_meta='$(COMMON_FLAGS) ${CFLAGS} $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + php_c_post=' && echo > $@' + php_cxx_pre='$(CXX)' +- php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' ++ php_cxx_meta='$(COMMON_FLAGS) ${CXXFLAGS} $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + php_cxx_post=' && echo > $@' + php_lo=o + + shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' +- shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -prefer-pic' ++ shared_c_meta='$(COMMON_FLAGS) ${CFLAGS} $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' + shared_c_post= + shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' +- shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -prefer-pic' ++ shared_cxx_meta='$(COMMON_FLAGS) ${CXXFLAGS} $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' + shared_cxx_post= + shared_lo=lo + --- php-dbg.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302241225.h1OCPoWK020435>