Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 May 2002 08:17:34 -0400
From:      Garrett Rooney <rooneg@electricjellyfish.net>
To:        Dmitry Morozovsky <marck@rinet.ru>
Cc:        stable@freebsd.org
Subject:   Re: ports/devel/apr-devel broken for last 3 days
Message-ID:  <20020509121734.GA66106@electricjellyfish.net>
In-Reply-To: <20020509133414.V6600-100000@woozle.rinet.ru>
References:  <20020509133414.V6600-100000@woozle.rinet.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 09, 2002 at 02:49:27PM +0400, Dmitry Morozovsky wrote:
> Hi there colleagues,
> 
> devel/apr-devel after maintainer's requested update at Tue May 7 14:52:56
> 2002 UTC (Version 1.3 of port's Makefile) fails to build if previous
> version is installed due to incompatibility with headers and early
> inclusion of old header.
> 
> Also, this port does not pay attention to $CFLAGS, unconditionally setting
> them to '-g -O2', which is IIRC against ports policy. I have no patch for
> this handy, though.
> 
> Here is the quick fix for includes order (for -stable users, you can put
> the in files/patch-xxxx). I suppose, all other Maikefile.in's should be
> patched the same way.

hi there.  i came up with a better fix for the includes order problem
yesterday and sent it off to roberto@freebsd.org, since he's the
person who normally commits these things for me.  well, it's the same
fix, it just doesn't require all the patches.  here's the patch for
the makefile.

(btw, this has already been fixed in the upstream sources.)

thanks for letting me know about the CFLAGS problem.  i will look into
it as soon as i get the chance.

-garrett

Index: Makefile
===================================================================
--- Makefile
+++ tmp.37140.00001	Thu May  9 08:08:57 2002
@@ -25,6 +25,9 @@
 	${SH} pkg-install apr-devel PRE-INSTALL
 
 pre-configure:
+	(find ${WRKDIR}/apr-util/ -name Makefile.in -exec \
+	 ${PERL} -pi -e 's/\@APRUTIL_INCLUDES\@ \@APRUTIL_PRIV_INCLUDES\@/\@APRUTIL_PRIV_INCLUDES\@ \@APRUTIL_INCLUDES\@/g' \{\} \;)
+
 	(cd ${WRKDIR}/apr/ && ./buildconf)
 	(cd ${WRKDIR}/apr-util/ && ./buildconf)
 
-- 
garrett rooney                    Remember, any design flaw you're 
rooneg@electricjellyfish.net      sufficiently snide about becomes  
http://electricjellyfish.net/     a feature.       -- Dan Sugalski

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020509121734.GA66106>