Bug 1510073
Summary: | Document that config.site is intended for (and only for) /usr prefix, provide doc example for /usr/local/share/config.site | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jeffrey Walton <noloader> |
Component: | autoconf | Assignee: | Patrik Novotný <panovotn> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | kasal, praiskup |
Target Milestone: | --- | Keywords: | FutureFeature, Reopened |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-09-12 07:59:49 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jeffrey Walton
2017-11-06 16:28:58 UTC
Hi Jeffrey, (In reply to Jeffrey Walton from comment #0) > $ cat /usr/local/share/config.site > ... > if test "$prefix" = /usr \ This would be the issue, I guess. Your config.site is sourced if and only if the '$prefix = /usr/local', so the if-condition never succeeds. (In reply to Pavel Raiskup from comment #1) > Hi Jeffrey, > > (In reply to Jeffrey Walton from comment #0) > > $ cat /usr/local/share/config.site > > ... > > if test "$prefix" = /usr \ > > This would be the issue, I guess. Your config.site is sourced if and only if > the '$prefix = /usr/local', so the if-condition never succeeds. Thanks Pavel. That leads me to another question. Sorry about asking questions here. What does a well formed config.site look like? About all I know at this point is it is not the one at /usr/share/config.site; otherwise it would properly handle Fedora installation directories. > What does a well formed config.site look like?
Since that's your own config.site, you don't have to pay too much attention
to "proper format". Whatever works for you -- it can simply look like:
$ cat /usr/local/share/config.site
ARCH=`uname -m`
for i in x86_64 ppc64 s390x aarch64; do
if test $ARCH = $i; then
test "$libdir" = '${exec_prefix}/lib' && libdir='${exec_prefix}/lib64'
break
fi
done
I did not test it, though. See docs '15.8 Setting Site Defaults', there
are some examples.
For documentation purposes, we could think about adding some docs file
directly into autoconf.rpm if you had a "correct" suggestion :-). That
would sound like useful addition, we could name it e.g.
/usr/share/doc/autoconf/config.site.usr_local
(In reply to Pavel Raiskup from comment #3) > > What does a well formed config.site look like? > > Since that's your own config.site, you don't have to pay too much attention > to "proper format". Whatever works for you -- it can simply look like: OK, thanks. Just to be clear (and I hope I don't sound too argumentative), I added one at /usr/local/share/config.site because the one supplied by Fedora at /usr/share/config.site does not work as expected. > For documentation purposes, we could think about adding some docs file > directly into autoconf.rpm if you had a "correct" suggestion :-). That > would sound like useful addition, we could name it e.g. > /usr/share/doc/autoconf/config.site.usr_local Well, I think documentation is a good step. I think another good step would be to fix /usr/share/config.site so folks don't have to RTFM in the first place. There's a lot to be said about "it just works". (In reply to Jeffrey Walton from comment #4) > OK, thanks. Just to be clear (and I hope I don't sound too argumentative), I > added one at /usr/local/share/config.site because the one supplied by Fedora > at /usr/share/config.site does not work as expected. I'm glad for this discussion, thanks for it. The /usr/share/config.site is not intended to be ever sourced for /usr/local/ prefix; so it works fine for it's only purpose (/usr prefix). Indeed, providing your own /usr/local/share/config.site is expected workflow, since Fedora can not install anything under /usr/local/share directory. > Well, I think documentation is a good step. I think another good step would > be to fix /usr/share/config.site so folks don't have to RTFM in the first > place. There's a lot to be said about "it just works". Ok, let me reopen then and work better on the documentation. At least we should clearly say what the config.site file is for. Thanks! This message is a reminder that Fedora 26 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '26'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 26 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. I think this is handled or old. Let's just close it. |