Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 486422 - sys-devel/crossdev - compatible with repos.conf
Summary: sys-devel/crossdev - compatible with repos.conf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-29 06:45 UTC by Alon Bar-Lev (RETIRED)
Modified: 2013-10-12 20:15 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 (RETIRED) gentoo-dev 2013-09-29 06:45:20 UTC
Hi,

So far crossdev used output overlay as the first one from $(portageq envvar PORTDIR_OVERLAY).

Recent addition of repos.conf made it easy to configure overlays without touching the make.conf::PORTDIR_OVERLAY.

The order of the overlays in the PORTDIR_OVERLAY now is random (based on name), while $(portageq get_repos /) returns search order, but even from that determine which repository to use as output repository is not deterministic.

For now I use a workaround to prepend specific repository for crossdev use as first:
/etc/portage/repos.conf/crossdev-local.conf
---
[00-crossdev-local]
location = /usr/local/portage/crossdev
---

I suggest to have a specific repository name for crossdev output, let's say crossdev-local, and get its path using its name:

portageq get_repo_path / crossdev-local

If not available, then create it(?).

Thanks!
Comment 1 SpanKY gentoo-dev 2013-09-30 00:23:02 UTC
if the overlay has not been explicitly specified, then crossdev will do:
 - portageq get_repo_path / cross-${CTARGET}
 - portageq get_repo_path / crossdev
 - default PORTDIR_OVERLAY search (what it does today)

i'm not sure i want to bother with picking a default location for generating an overlay.  at least not today.

http://git.overlays.gentoo.org/gitweb/?p=proj/crossdev.git;a=commitdiff;h=1ed7a8be200dbe4575cc029212f2ee18d0bd5d74
Comment 2 Alon Bar-Lev (RETIRED) gentoo-dev 2013-09-30 08:09:05 UTC
Thanks!

I would have also modified the usage, something like:

     -oO, --ov-output path    Overlay to write crossdev package links
-                                [default: first from --overlays list]
+                                [default: by name cross-${CTARGET}, crossdev or
+                                 if not found first from --overlays list]