Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64449 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48403 invoked from network); 27 Dec 2012 17:01:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Dec 2012 17:01:42 -0000 Authentication-Results: pb1.pair.com header.from=mamfelt@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=mamfelt@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.174 as permitted sender) X-PHP-List-Original-Sender: mamfelt@gmail.com X-Host-Fingerprint: 209.85.214.174 mail-ob0-f174.google.com Received: from [209.85.214.174] ([209.85.214.174:35031] helo=mail-ob0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D0/66-16827-5FE7CD05 for ; Thu, 27 Dec 2012 12:01:41 -0500 Received: by mail-ob0-f174.google.com with SMTP id ta14so8951179obb.5 for ; Thu, 27 Dec 2012 09:01:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Q7MW8mXHvy26LpoN+FqtW444pQwhj0TBKaKiKbwUL0k=; b=Fp7SDY6cpkXpRrVEYn3J4w1WAmT8ALfXNU/Ge5y86L9g+8GrsyIYHSYIH2Z90jroHP 5rEhxebtUFc3YX/8LTFp9suhCnW1CebHckqdBVc3MurPedoe1d5Ah/beacHX7gYHiHgM Qwyw9QzzYu/uo1QlpBZ3si5ZfMSW4x9WGvP7XzRlwG+fNmwyyS1uwJF+w8nNQkYVSTV+ 119kXa7PHmI9ACGz299BWwQZEW7RxbDDqdC/AEJr1MSXnnpAh26lpZEVQ71RO0CcyYT1 g+Aqu244M5cTrOcPvpqwdjM8vzUSv1F4DjGhe7Iiz7MDwSj0wutTxcKvUdCwBWPjozSf bG3w== MIME-Version: 1.0 Received: by 10.60.172.230 with SMTP id bf6mr13007496oec.102.1356627698923; Thu, 27 Dec 2012 09:01:38 -0800 (PST) Received: by 10.76.74.137 with HTTP; Thu, 27 Dec 2012 09:01:38 -0800 (PST) In-Reply-To: References: Date: Thu, 27 Dec 2012 18:01:38 +0100 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=bcaec54b4aa016390804d1d880ae Subject: Re: Using INSTALL_ROOT with make install not portable, other install questions From: mamfelt@gmail.com (Michael Felt) --bcaec54b4aa016390804d1d880ae Content-Type: text/plain; charset=ISO-8859-1 Back on this again. I see that there was a REQ from 2004, to not use the -a option to apxs when INSTALL_ROOT is set. That would fix my problem. I tried modifying two files: (changes below) sapi/apache2handler/config.m4 Makefile.global and then running ./configure again The changes in Makefile.global showed up in the new Makefile, but not the changes in the .m4 file. Would appreciate assistence to get this to work as expected. --- Makefile.global.distr 2012-12-19 16:13:48 +0100 +++ Makefile.global 2012-12-27 16:24:19 +0100 @@ -33,6 +33,11 @@ fi; \ done; \ fi + if [ -z $(strip $(INSTALL_ROOT)) ]; then \ + APXS_ACTIVATE="-a" ; \ + else \ + APXS_ACTIVATE="" ; \ + fi @$(INSTALL_IT) install-modules: build-modules --- sapi/apache2handler/config.m4. distr 2012-12-19 16:13:48.000000000 +0100 +++ sapi/apache2handler/config.m4 2012-12-27 16:23:10.000000000 +0100 @@ -77,7 +77,7 @@ \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \ $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ -S SYSCONFDIR='$APXS_SYSCONFDIR' \ - -i -a -n php5" + -i \$APXS_ACTIVATE -n php5" fi case $host_alias in On Sat, Sep 29, 2012 at 8:03 PM, Michael Felt wrote: > When using make INSTALL_ROOT=/var/tmp/root/php-5.3.17.0 install > I get an error about httpd.conf not being in place for apxs (if I copy it > ahead of time, apxs works fine) > > Isnt this to be expected - that httpd.conf is not avalibale, and apxs > should just "fail" gently, leaving a warning > but continuing? > > Not sure how to interpret this: what in install asking for, warning about? > > Installing PEAR environment: /var/tmp/root/php-5.3.17.0/opt/php/bin/ > [PEAR] Archive_Tar - installed: 1.3.7 > [PEAR] Console_Getopt - installed: 1.3.0 > [PEAR] Structures_Graph- installed: 1.0.4 > [PEAR] XML_Util - installed: 1.2.1 > warning: pear/PEAR requires package "pear/Archive_Tar" (version >= 1.3.7) > warning: pear/PEAR requires package "pear/Structures_Graph" (recommended > version 1.0.4) > warning: pear/PEAR requires package "pear/Console_Getopt" (recommended > version 1.2.3) > warning: pear/PEAR requires package "pear/XML_Util" (recommended version > 1.2.1) > [PEAR] PEAR - installed: 1.9.4 > Wrote PEAR system config file at: > /var/tmp/root/php-5.3.17.0//var/php/etc/pear.conf > You may want to add: /opt/php/bin to your php.ini include_path > /data/prj/php/php-5.3.17/build/shtool install -c ext/phar/phar.phar > /var/tmp/root/php-5.3.17.0/opt/bin > ln -s -f /opt/bin/phar.phar /var/tmp/root/php-5.3.17.0/opt/bin/phar > Installing PDO headers: > /var/tmp/root/php-5.3.17.0/opt/include/php/ext/pdo/ > > And, why it install already mentioning/touching (in this case /opt/* when > all should be in $INSTALL_ROOT? > > Suggestions welcome, even if it just "what to say" in a bug report. > > Michael > --bcaec54b4aa016390804d1d880ae--