Date: Fri, 14 Jun 2002 17:12:57 -0700 (PDT) From: Chris Wasser <cwasser@shaw.ca> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/39317: uulib port fails to build due to sed(1) regex Message-ID: <200206150012.g5F0CvAo099983@www.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 39317 >Category: ports >Synopsis: uulib port fails to build due to sed(1) regex >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jun 14 17:20:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Chris Wasser >Release: 4.5-RELEASE-p6 >Organization: n/a >Environment: FreeBSD 4.5-RELEASE-p6 FreeBSD 4.5-RELEASE-p6 #0: Sun Jun 2 21:34:05 MDT 2002 root@:/usr/obj/usr/src/sys/UKCV1_SKUNKWORKS i386 >Description: The uulib 0.5.13 port in /usr/ports/convertors/uulib fails to build if the user has specified compiler debugging that contains a debugging level such as -g3 due to how a sed(1) regex in configure and configure.in strip the debugging flag from /etc/make.conf CFLAGS variable. >How-To-Repeat: Specify -g# (such as 1,2,3..etc) in /etc/make.conf CFLAGS variable and try to build the port. >Fix: This may not be the correct way or even portable but it works for me: http://members.shaw.ca/cwasser/uulib-0.5.13_patch: --- configure.orig Thu Jan 9 07:22:00 1997 +++ configure Fri Jun 14 17:16:02 2002 @@ -1011,7 +1011,7 @@ echo $ac_n "checking compiler flags""... $ac_c" 1>&6 if test "$optimize" = "yes" ; then -CFLAGS=`echo $CFLAGS | sed 's/-g//g'` +CFLAGS=`echo $CFLAGS | sed -E 's/(-g?[0-9]|-g)//g'` case $CFLAGS in *"-O"*) ;; --- configure.in.orig Thu Jan 9 07:22:04 1997 +++ configure.in Fri Jun 14 17:16:22 2002 @@ -81,7 +81,7 @@ AC_MSG_CHECKING([compiler flags]) if test "$optimize" = "yes" ; then -CFLAGS=`echo $CFLAGS | sed 's/-g//g'` +CFLAGS=`echo $CFLAGS | sed -E 's/(-g?[0-9]|-g)//g'` case $CFLAGS in *"-O"*) ;; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206150012.g5F0CvAo099983>