Repository navigation
doc: Use CONFIG_SITE variable instead of --prefix option - #17934
Conversation
|
@practicalswift
ping @ryanofsky @fanquake |
|
This change seems clearer to me and I think it's an improvement. But now the documentation doesn't seem to mention the prefix path at all, so it's not clear that binaries will be installed in |
Do you mean copy-paste from |
I'm suggesting adding a sentence like: "The default install prefix when using Without this PR, the install location is more obvious because --prefix is explicit. The install location is less clear with this PR because it stops mentioning --prefix. |
|
~0. It has annoyed me for a while that we've been inconsistent with
Is this the only system where this is an issue? I know @theuni is busy, but I'd like his thoughts here as well. |
Using
This issue is not CentOS specific as using |
IIUC, "depends build outputs" (boost, qt, zmq, ...) always are placed in What are reasons to install to
Without this PR mentioning With this PR a user who going to use |
|
Code review ACK c8e2003. Agree that referencing the config.site file specifically is a not only clearer than current prefix magic but also more flexible, as in in the centos example. I don't understand this comment at all: #17934 (comment). I like the PR. I'm an only trying to suggest adding another sentence to the documentation. But it's fine not to add it. |
|
@ryanofsky Sorry, Russel. I did not want to be rude. My native language is not English, as you know. I was confused with "depends build outputs will be installed in that location" phrase. Actually, I do not understand its meaning now. |
More details from The Autoconf Manual - 15.8:
|
|
Concept ACK. Unfortunately |
Do you mean that |
|
I believe so yes. Though hopefully there's a way to make it remember the config_site too. |
fanquake
left a comment
There was a problem hiding this comment.
Can you rebase this, and update the use of --prefix in the multiprocess documentation.
c8e2003 to
223b1ba
Compare
|
Updated c8e2003 -> 223b1ba (pr17934.01 -> pr17934.02):
|
|
Concept ACK Thanks for fixing this. I've always found our use of |
|
ACK 223b1ba: patch looks correct |
|
|
||
| Common `host-platform-triplets` for cross compilation are: | ||
| The default install prefix when using `config.site` is `--prefix=depends/<host-platform-triplet>`, | ||
| so depends build outputs will be installed in that location. |
There was a problem hiding this comment.
By "depends build outputs" I'm assuming you mean things like the fontconfig tools, which will end up installed into depends/<host-platform-triplet>. i.e:
# ls depends/x86_64-pc-linux-gnu/bin/
event_rpcgen.py fc-cache fc-cat fc-list fc-match fc-pattern fc-query fc-scan fc-validate freetype-config xmlwfIs that correct?
There was a problem hiding this comment.
All of the dependency packages are installed into depends/<host-platform-triplet>, using bin, lib and other subdirectories.
The make -C depends rightfully reports:
copying packages: native_b2 boost libevent qt expat libxcb xcb_proto libXau xproto freetype fontconfig libxkbcommon qrencode bdb sqlite miniupnpc libnatpmp zeromq
to: /home/hebasto/GitHub/bitcoin/depends/x86_64-pc-linux-gnu
Not to be confused with the default --prefix for Bitcoin Core, that is /usr/local. That means make install will install bitcoind into /usr/local/bin.
Passing should work in such cases. |
The current examples of
--prefix=...option usage to pointconfigurescript to appropriatedependsdirectory is not standard. This causes some confusion and a bit of inconvenience.Consider a CentOS 7 32 bit system. Packages
libdb4-devel,libdb4-cxx-devel,miniupnpc-develandzeromq-develare unavailable from repos. After recommended build with depends:a user is unable to
make installcompiled binaries neither locally (to~/.local) nor system-wide (to/usr/local) as--prefixis set already.Meanwhile, the standard approach with using
config.sitefiles allows both possibilities:or
Moreover, this approach is used in Gitian descriptors already.