Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EE0B02004A1 for ; Thu, 24 Aug 2017 20:33:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EC55716B5EA; Thu, 24 Aug 2017 18:33:24 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3DED716B5E9 for ; Thu, 24 Aug 2017 20:33:24 +0200 (CEST) Received: (qmail 59048 invoked by uid 500); 24 Aug 2017 18:33:22 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 59038 invoked by uid 99); 24 Aug 2017 18:33:22 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Aug 2017 18:33:22 +0000 Received: from [192.168.23.12] (host217-44-155-55.range217-44.btcentralplus.com [217.44.155.55]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 7D7361A002B for ; Thu, 24 Aug 2017 18:33:21 +0000 (UTC) Subject: Re: svn commit: r1805960 - in /tomcat/native/trunk: native/Makefile.in native/configure.in xdocs/miscellaneous/changelog.xml To: Tomcat Developers List References: <20170823211217.9D30C3A002A@svn01-us-west.apache.org> From: Mark Thomas Message-ID: Date: Thu, 24 Aug 2017 19:33:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit archived-at: Thu, 24 Aug 2017 18:33:25 -0000 On 24/08/17 11:19, Konstantin Kolinko wrote: > A naive review below. I do not have a working tc-native build to check. > > I think your patch is an adaptation of r1805943 (BZ 60290). As such, > it looks good. > > Several thoughts: > 1) A typo in commit message and in changelog.xml> > I think it was meant to be s/but setting/by setting/. Thanks. Fixed. I think Rainer has answered the libtool questions. Mark > > 2) There exists @TCNATIVE_LIBTOOL_VERSION@ What is its value? > > Looking into configure.in, I think it is evaluated rather early, > before $LIBTOOL is set. > > > 3) >>> APR_SETIFNULL(LIBTOOL, `$apr_config --apr-libtool`) > > I wonder whether that --apr-libtool flag should be simply --libtool, > like with --cc and -cpp a few lines above. > > 4) > There exists $APR_LIBTOOL_LIBS. > I wonder what is its value and whether it needs some update as well. > > > 2017-08-24 0:12 GMT+03:00 : >> Author: markt >> Date: Wed Aug 23 21:12:17 2017 >> New Revision: 1805960 >> >> URL: http://svn.apache.org/viewvc?rev=1805960&view=rev >> Log: >> Fix https://bz.apache.org/bugzilla/show_bug.cgi?id=60301 >> When building Tomcat Native, allow the user to override the libtool specified by APR but setting the LIBTOOL environment variable. >> >> Modified: >> tomcat/native/trunk/native/Makefile.in >> tomcat/native/trunk/native/configure.in >> tomcat/native/trunk/xdocs/miscellaneous/changelog.xml >> >> Modified: tomcat/native/trunk/native/Makefile.in >> URL: http://svn.apache.org/viewvc/tomcat/native/trunk/native/Makefile.in?rev=1805960&r1=1805959&r2=1805960&view=diff >> ============================================================================== >> --- tomcat/native/trunk/native/Makefile.in (original) >> +++ tomcat/native/trunk/native/Makefile.in Wed Aug 23 21:12:17 2017 >> @@ -22,6 +22,7 @@ >> CFLAGS = @CFLAGS@ >> CPPFLAGS = @CPPFLAGS@ >> CC_OLD = @CC@ >> +LIBTOOL_OLD = @LIBTOOL@ >> >> # gets substituted into some targets >> TCNATIVE_MAJOR_VERSION=@TCNATIVE_MAJOR_VERSION@ >> @@ -52,6 +53,10 @@ ifneq ($(CC_OLD),$(CC)) >> CC=$(CC_OLD) >> endif >> >> +ifneq ($(LIBTOOL_OLD),$(LIBTOOL)) >> + LIBTOOL=$(LIBTOOL_OLD) >> +endif >> + >> LINK = $(LIBTOOL) $(LTFLAGS) --mode=link $(LT_LDFLAGS) $(COMPILE) -version-info $(TCNATIVE_LIBTOOL_VERSION) $(ALL_LDFLAGS) -o $@ >> CLEAN_SUBDIRS = test >> >> >> Modified: tomcat/native/trunk/native/configure.in >> URL: http://svn.apache.org/viewvc/tomcat/native/trunk/native/configure.in?rev=1805960&r1=1805959&r2=1805960&view=diff >> ============================================================================== >> --- tomcat/native/trunk/native/configure.in (original) >> +++ tomcat/native/trunk/native/configure.in Wed Aug 23 21:12:17 2017 >> @@ -101,6 +101,11 @@ dnl >> APR_SETIFNULL(CC, `$apr_config --cc`) >> APR_SETIFNULL(CPP, `$apr_config --cpp`) >> >> +dnl >> +dnl Default to the APR provided libtool but allow the user to override it >> +dnl >> +APR_SETIFNULL(LIBTOOL, `$apr_config --apr-libtool`) >> + >> AC_PROG_INSTALL >> >> dnl >> @@ -234,6 +239,7 @@ AC_SUBST(TCNATIVE_LDFLAGS) >> AC_SUBST(TCNATIVE_LIBS) >> AC_SUBST(CFLAGS) >> AC_SUBST(CPPFLAGS) >> +AC_SUBST(LIBTOOL) >> >> dnl copy apr's rules.mk into our build directory. >> if test ! -d ./build; then >> >> Modified: tomcat/native/trunk/xdocs/miscellaneous/changelog.xml >> URL: http://svn.apache.org/viewvc/tomcat/native/trunk/xdocs/miscellaneous/changelog.xml?rev=1805960&r1=1805959&r2=1805960&view=diff >> ============================================================================== >> --- tomcat/native/trunk/xdocs/miscellaneous/changelog.xml (original) >> +++ tomcat/native/trunk/xdocs/miscellaneous/changelog.xml Wed Aug 23 21:12:17 2017 >> @@ -66,6 +66,11 @@ >> CC if explicitly set. Patch provided by Michael Osipov. >> (markt) >> >> + >> + 60301: When building Tomcat Native, allow the user to override >> + the libtool specified by APR but setting the LIBTOOL >> + environment variable. (markt) >> + >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org > For additional commands, e-mail: dev-help@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org