Re: improve INSTALL contents (was: Core-utils 7.2; building only 'su')

2009-05-14 Thread Alfred M. Szmidt
How about this? I took into account Ralf's comments as well. In addition, if you use an unusual directory layout you can give options like @option{--bind...@var{dir}} to specify different values for particular kinds of files. Run @samp{configure --help} for a list of the directories

Re: improve INSTALL contents (was: Core-utils 7.2; building only 'su')

2009-05-13 Thread Ralf Wildenhues
Hi Eric, thanks for pursuing this. * Eric Blake wrote on Wed, May 13, 2009 at 02:51:34PM CEST: > @@ -156,7 +158,25 @@ Installation Names > In addition, if you use an unusual directory layout you can give options > like @option{--bind...@var{dir}} to specify different values for > particular ki

Re: improve INSTALL contents (was: Core-utils 7.2; building only 'su')

2009-05-13 Thread Alfred M. Szmidt
+Depending on the package, the default directory layout chosen during +...@command{configure} can be altered during subsequent execution of +...@command{make}. A `make install FOO=VAL' should never alter anything in the build directory. The problem is if you pass --bindir=/foo to confi

improve INSTALL contents (was: Core-utils 7.2; building only 'su')

2009-05-13 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Eric Blake on 4/15/2009 5:51 AM: >> Maybe the generic INSTALL file should provide pointers to more >> comprehensive documentation? > > I tend to agree that INSTALL should either mention DESTDIR (and probably > also V, which now plays a ro

DESTDIR vs `make install exec_prefix=' (was: Core-utils 7.2; building only 'su')

2009-04-18 Thread Ralf Wildenhues
[ dropping bug-coreutils ] Hello Alfred, * Alfred M. Szmidt wrote on Wed, Apr 15, 2009 at 07:17:42PM CEST: >> So for maximum portability you should support this in your >> package, too. BTW, why do you state that overriding just $prefix >> would be "almost always wrong"? > >In t

Re: Core-utils 7.2; building only 'su'

2009-04-15 Thread Douglas Held
Well, you would just change autoconf so that it fails fast when its configuration is not "well formed"... On Wed, Apr 15, 2009 at 7:54 PM, Bob Friesenhahn wrote: > On Wed, 15 Apr 2009, Alfred M. Szmidt wrote: >> >>  The problem is that DESTDIR is not a mandatory standard and >>  packages may not

Re: Core-utils 7.2; building only 'su'

2009-04-15 Thread Keith Marshall
On Wednesday 15 April 2009 07:06:09 Ralf Wildenhues wrote: > > > Not all packages follow GNU Coding Standards, therefore, > > > DESTDIR is not properly supported in a surprisingly large > > > number of packages. > > > > We already enforce a level of GNUism on packages that use > > autoconf/automake

Re: Core-utils 7.2; building only 'su'

2009-04-15 Thread Bob Friesenhahn
On Wed, 15 Apr 2009, Douglas Held wrote: Well, you would just change autoconf so that it fails fast when its configuration is not "well formed"... How would autoconf know that? Currently we have 'make distcheck' which tests a distribution tarball and entrusts that the maintainer won't distri

Re: Core-utils 7.2; building only 'su'

2009-04-15 Thread Bob Friesenhahn
On Wed, 15 Apr 2009, Alfred M. Szmidt wrote: The problem is that DESTDIR is not a mandatory standard and packages may not adequately implement it even if Automake itself does the right thing. If INSTALL says that DESTDIR is supported and a package blindly includes the INSTALL file, then

Re: Core-utils 7.2; building only 'su'

2009-04-15 Thread Alfred M. Szmidt
> So for maximum portability you should support this in your > package, too. BTW, why do you state that overriding just $prefix > would be "almost always wrong"? In the w32 arena, overriding $prefix at `make install' time is unilaterally *correct*. Why can your staging area not mi

Re: Core-utils 7.2; building only 'su'

2009-04-15 Thread Alfred M. Szmidt
>>Hmmm. Would it be worth changing autoconf to make './configure >>--help' state something like the following: >> >>| Some influential environment variables: >>| ... >>| DESTDIRleave unset during configure; allows installation

Re: Core-utils 7.2; building only 'su'

2009-04-15 Thread Alfred M. Szmidt
> I tend to agree that INSTALL should either mention DESTDIR (and > probably also V, which now plays a role with new enough > automake), or at least point to the GNU Coding Standards and the > Automake manual overview of the GNU build system. Does anyone > want to beat me to a patch

Re: Core-utils 7.2; building only 'su'

2009-04-15 Thread Bob Friesenhahn
On Wed, 15 Apr 2009, Eric Blake wrote: I tend to agree that INSTALL should either mention DESTDIR (and probably also V, which now plays a role with new enough automake), or at least point to the GNU Coding Standards and the Automake manual overview of the GNU build system. Does anyone want to b

Re: Core-utils 7.2; building only 'su'

2009-04-15 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Ralf Wildenhues on 4/15/2009 12:06 AM: > Please, let's not bloat `configure --help' output even more. It is > already very long for a simple help text, it should not document things > that are not, in fact, settings for configure but for

Re: Core-utils 7.2; building only 'su'

2009-04-14 Thread Ralf Wildenhues
Hello Alfred, Eric, * Alfred M. Szmidt wrote on Tue, Apr 14, 2009 at 02:49:30PM CEST: >>Hmmm. Would it be worth changing autoconf to make './configure >>--help' state something like the following: >> >>| Some influential environment variables: >>| ... >>

Re: Core-utils 7.2; building only 'su'

2009-04-14 Thread Alfred M. Szmidt
>packages where DESTDIR doesn't work properly. But automake >already does such a good job at providing DESTDIR support >(especially if the user remembered to run 'make distcheck'), >that I think it would be nice if using AM_INIT_AUTOMAKE did >make the ./configure

Re: Core-utils 7.2; building only 'su'

2009-04-14 Thread Alfred M. Szmidt
>Hmmm. Would it be worth changing autoconf to make './configure >--help' state something like the following: > >| Some influential environment variables: >| ... >| DESTDIRleave unset during configure; allows installation to >| spec

Re: Core-utils 7.2; building only 'su'

2009-04-14 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Alfred M. Szmidt on 4/14/2009 6:49 AM: >`To install FOO in a staging directory, use `make install DESTDIR=...'' > > I like that. > >packages where DESTDIR doesn't work properly. But automake already >does such a good job at

Re: Core-utils 7.2; building only 'su'

2009-04-14 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [really adding autoconf and automake lists this time] According to Alfred M. Szmidt on 4/14/2009 6:22 AM: >Hmmm. Would it be worth changing autoconf to make './configure >--help' state something like the following: > >| Some influential