Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264074 - sys-devel/crossdev-wrappers - allow specifying extra location for config.site configuration at /etc
Summary: sys-devel/crossdev-wrappers - allow specifying extra location for config.site...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Crossdev team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: crossdev-bugs
  Show dependency tree
 
Reported: 2009-03-28 14:17 UTC by Alon Bar-Lev
Modified: 2018-10-20 20:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alon Bar-Lev 2009-03-28 14:17:34 UTC
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!
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2017-12-28 18:46:55 UTC
(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.
Comment 2 Larry the Git Cow gentoo-dev 2018-10-20 20:08:28 UTC
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(-)
Comment 3 Larry the Git Cow gentoo-dev 2018-10-20 20:27:25 UTC
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(+)