Issue508

classification
Title ./configure --prefix=$prefix --infodir=$prefix/share/info broken
Type defect Module core build, core code 21.5
Severity inconvenience Platform N/A
Keywords Nosy List mike
explanation
process
These controls should only be changed by committers and tracker administrators.
Status assigned   Reason
Superseder   Submitted 2009-03-17.07:20:47
Priority normal   Assigned To

Created on 2009-03-18.08:20:04 by mike, last changed 2009-03-20.08:20:04 by scop1.

Messages
msg1151 [hidden] ([hidden]) Date: 2009-03-20.08:20:04
  Message-ID: <200903190013.54929.scop@xemacs.org>
On Tuesday 17 March 2009, Stephen J. Turnbull wrote:
> Michael Sperber writes:
>  > "Stephen J. Turnbull" <stephen at xemacs.org> writes:
>  > >  > > Examples of undocumented differences?
>  > >  >
>  > >  > --infodir's default handling;
>  > >
>  > > You'll have to get Mike to discuss that.  He insists that things be
>  > > done as they are, but I've never personally had any reason to care one
>  > > way or the other (no personal config problems, no need for the
>  > > features he added, and I don't recall ever getting user questions
>  > > either).
>  >
>  > That isn't accurate.  --infodir is a holdover from the old days.
>
> Of course the option itself is a holdover.  But my understanding is
> that by "undocumented difference from autoconf" he's referring to
> INFODIR_USER_DEFINED, and the catering to run-in-place and people who
> schlep whole installed trees around and other cases that you won't
> encounter in an RPM install.
>
> Ville?

Infodir handling has currently so many problems that I'm having a hard time 
explaining it, but I'll give it one more try off the cuff.  Just keep the 
combinations of --prefix, --datadir, --datarootdir and --infodir users may 
set in mind in the following and ignore for the moment $foo vs $foo_expanded.  
Some of the following are caused by same underlying issue(s), and may be 
issues with other *dir settings/options similarly.

1) configure --help says infodir's default is $datarootdir/info.  It is not, 
it's $datarootdir/$instvardir/info (kind of, depending on a few other --*dir 
settings).

2) configure is internally inconsistent, infodir defaults to $datarootdir/info 
in the beginning of it but the code from configure.ac uses $prefix/share/info 
to test if it is set to the default.

3) The issue mentioned in Subject of this thread (--infodir given by the user 
is sometimes ignored).

4) Defining --datadir to something that does not match $prefix/share results 
in INFODIR_USER_DEFINED being set.  This is inconsistent with *both* of the 
values in 2) above: configure --help (it says $datarootdir/info, not 
$datadir/info) and the logic when checking whether infodir is set to the 
default (it checks $prefix/share/info, not $datadir/info).

5) The *_USER_DEFINED defines do not actually get set based on whether the 
user defined the corresponding --*dir option.  This was already discussed.

_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta at xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
msg1149 [hidden] ([hidden]) Date: 2009-03-19.11:20:04
  Message-ID: <87bps07alw.fsf@xemacs.org>
Michael Sperber writes:
 > "Stephen J. Turnbull" <stephen at xemacs.org> writes:

 > >  > > Examples of undocumented differences?
 > >  > 
 > >  > --infodir's default handling;
 > >
 > > You'll have to get Mike to discuss that.  He insists that things be
 > > done as they are, but I've never personally had any reason to care one
 > > way or the other (no personal config problems, no need for the
 > > features he added, and I don't recall ever getting user questions
 > > either).
 > 
 > That isn't accurate.  --infodir is a holdover from the old days.

Of course the option itself is a holdover.  But my understanding is
that by "undocumented difference from autoconf" he's referring to
INFODIR_USER_DEFINED, and the catering to run-in-place and people who
schlep whole installed trees around and other cases that you won't
encounter in an RPM install.

Ville?

_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta at xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
msg1148 [hidden] ([hidden]) Date: 2009-03-19.10:34:22
  Message-ID: <1237458862.66.0.330686395695.issue508@xemacs.org>
Supersedes issue504, issue505, issue506, issue507.  See those
issues for further details.
msg1106 [hidden] ([hidden]) Date: 2009-03-18.08:20:04
  Message-ID: <y9ld4cgwr74.fsf@deinprogramm.de>
"Stephen J. Turnbull" <stephen at xemacs.org> writes:

>  > > Examples of undocumented differences?
>  > 
>  > --infodir's default handling;
>
> You'll have to get Mike to discuss that.  He insists that things be
> done as they are, but I've never personally had any reason to care one
> way or the other (no personal config problems, no need for the
> features he added, and I don't recall ever getting user questions
> either).

That isn't accurate.  --infodir is a holdover from the old days.  When I
re-wrote the path-searching stuff, I didn't tackle any interface issues,
even though oddities such as --infodir certainly bothered me, and I'd
change it in a heartbeat if it was so easy.  The path-searching code has
been remarkably resistant to interface changes simply because changing
it would break people's setups.
History
Date User Action Args
2009-03-20 08:20:04scop1setmessages: + msg1151
2009-03-19 11:20:04stephensetmessages: + msg1149
2009-03-19 10:34:22stephensetstatus: assigned
assignedto: mike
severity: inconvenience
platform: + N/A
type: defect
messages: + msg1148
module: + core build, core code 21.5
priority: normal
2009-03-19 10:27:04stephenlinkissue507 superseder
2009-03-19 10:25:49stephenlinkissue506 superseder
2009-03-19 10:24:25stephenlinkissue505 superseder
2009-03-19 10:22:27stephenlinkissue504 superseder
2009-03-18 08:20:04mikecreate