Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 486422

Summary: sys-devel/crossdev - compatible with repos.conf
Product: Gentoo Linux Reporter: Alon Bar-Lev (RETIRED) <alonbl>
Component: [OLD] DevelopmentAssignee: Embedded Gentoo Team <embedded>
Status: RESOLVED FIXED    
Severity: normal CC: alonbl
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=347391
Whiteboard:
Package list:
Runtime testing required: ---

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]