Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 820176 - sys-devel/crossdev: add command-line options to override package category/name
Summary: sys-devel/crossdev: add command-line options to override package category/name
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Crossdev team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-10-25 10:11 UTC by Dan Callaghan
Modified: 2021-10-27 08:56 UTC (History)
3 users (show)

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


Attachments
patch to add package category and name options (0001-crossdev-add-command-line-options-to-override-toolch.patch,2.89 KB, patch)
2021-10-25 10:11 UTC, Dan Callaghan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Callaghan 2021-10-25 10:11:46 UTC
Created attachment 746601 [details, diff]
patch to add package category and name options

For a project I'm working on in Chrome OS, it would be useful if crossdev could be told to use a different copy of binutils and gcc than the usual sys-devel/binutils and sys-devel/gcc.

I can ask crossdev to use custom package *versions* with the --binutils, --gcc, etc options. The attached patch lets me also request custom package *names* for the toolchain packages.
Comment 1 Larry the Git Cow gentoo-dev 2021-10-27 08:56:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=47ee5ddb13ec874d6f776fe720a3ece604b27f09

commit 47ee5ddb13ec874d6f776fe720a3ece604b27f09
Author:     Dan Callaghan <dcallagh@google.com>
AuthorDate: 2021-10-25 09:42:09 +0000
Commit:     Mike Frysinger <vapier@gentoo.org>
CommitDate: 2021-10-27 08:56:33 +0000

    crossdev: add command-line options to override toolchain packages
    
    For some unusual targets, it may be desirable to use a different package
    name than the default. For example, a target might use picolibc instead
    of newlib for its libc package, or it might use a different copy of the
    gcc package than the usual sys-devel/gcc.
    
    Closes: https://bugs.gentoo.org/820176
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>

 crossdev | 13 +++++++++++++
 1 file changed, 13 insertions(+)