Hello, Can you please consider updating /usr/share/config.site so that it will attempt to include from TOPDIR and some other location in /etc, eg /etc/crossdev? It would be handy if you don't want to make /usr/share/crossdev dirty with local changes, and allow people to add their specific configuration. Exampe: Openmoko overlay has its own settings, installation of the overlay includes creating /usr/share/crossdev/include/site/arm-linux-gnueabi symlink, it would be nice if it can be created outside of portage managed locations. Thanks!
(8 years later) sounds reasonable. Should /etc/ behaviour be "hiding" (or mask) /usr/share files or "append"? Basically, given /usr/share/crossdev/include/site/arm-linux-gnueabi /etc/crossdev/sitearm-linux-gnueabi should it be a) source /usr/share/crossdev/include/site/arm-linux-gnueabi source /etc/crossdev/site/arm-linux-gnueabi or b) source /etc/crossdev/site/arm-linux-gnueabi Both look reasonable and a) might be slightly easier to maintain as an override.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=4d6557b3898af143993e46314cd02e0b28e1ca5a commit 4d6557b3898af143993e46314cd02e0b28e1ca5a Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2018-10-20 20:04:36 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2018-10-20 20:04:36 +0000 config.site add support for /etc/ overrides Now crossdev imports cache variables from /etc/crossdev/include/site The file format is the same as /usr/share/crossdev/include/site it is useful to drop local overrides. Reported-by: Alon Bar-Lev Bug: https://bugs.gentoo.org/264074 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> settings.mk | 1 + wrappers/Makefile | 6 +++++- wrappers/README | 2 ++ wrappers/site/config.site | 5 +++++ 4 files changed, 13 insertions(+), 1 deletion(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=104a51fba35825208a060e0ac46cfdf382d8b3bf commit 104a51fba35825208a060e0ac46cfdf382d8b3bf Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2018-10-20 20:27:03 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2018-10-20 20:27:17 +0000 sys-devel/crossdev: bump up to 20181020 Bug: https://bugs.gentoo.org/264074 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 sys-devel/crossdev/Manifest | 1 + sys-devel/crossdev/crossdev-20181020.ebuild | 39 +++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+)