Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 46453 invoked from network); 8 Feb 2006 09:41:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Feb 2006 09:41:38 -0000 Received: (qmail 2007 invoked by uid 500); 8 Feb 2006 09:41:34 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 1663 invoked by uid 500); 8 Feb 2006 09:41:33 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Delivered-To: moderator for dev@apr.apache.org Received: (qmail 10717 invoked by uid 99); 7 Feb 2006 18:38:09 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Date: Tue, 7 Feb 2006 10:38:16 -0800 From: Daniel Rall To: dev@apr.apache.org Subject: [BUG] 'install' Makefile target requires write access to source directory Message-ID: <20060207183816.GM3518@anvil.sp.corp.collab.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="A2x6GFCQWVc4i5ud" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Mail-Followups-To: Daniel Rall X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --A2x6GFCQWVc4i5ud Content-Type: text/plain; charset=us-ascii Content-Disposition: inline APR's 'install' target requires write access to the source directory (non-VPATH build). This is problematic when running the 'install' target as an user who doesn't have write permission to the source directory. Consider this example of trying to install a build of httpd (with in-tree APR/Util) as 'root' (via 'sudo'), with your source directory under your NFS-mounted home directory: httpd$ sudo make install Making install in srclib make[1]: Entering directory `/home/dlr/src/httpd/srclib' Making install in apr make[2]: Entering directory `/home/dlr/src/httpd/srclib/apr' running 'apr-config.out' rule from '/home/dlr/src/httpd/srclib/apr' sed 's,^\(location=\).*$,\1installed,' < apr-1-config > apr-config.out /bin/sh: line 1: apr-config.out: No such file or directory make[2]: *** [apr-config.out] Error 1 make[2]: Leaving directory `/home/dlr/src/httpd/srclib/apr' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/dlr/src/httpd/srclib make: *** [install-recursive] Error 1 Local 'root' cannot write to my NFS-mounted home directory, and thus can't perform the install into the OS. This is quite annoying, and was also quite puzzling (thanks to Garrett Rooney for figuring out what was going on). Work arounds: o Move your source tree to a non NFS-mounted location. o chown/chmod your destination directory so it's writable by your own UID, then perform the 'install' as yourself (and chown/chmod back). --A2x6GFCQWVc4i5ud Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFD6OkYZ9mySWdPBeARAoG4AJ9Tu1ewA792MGw0dwsacTe3EYPbBgCgi6yo 2D3CyhGO6earwq3dmdpf/MQ= =s6Gb -----END PGP SIGNATURE----- --A2x6GFCQWVc4i5ud--