Re: [gentoo-user] repos.conf

2015-06-24 Thread Jc García
2015-06-23 21:12 GMT-06:00 James :
> Take java:
>
> * Warnings:
>  * --
>  * The source of the overlay "java" seems to have changed.
>  * You currently sync from
>  *
>  *   git://git.overlays.gentoo.org/proj/java.git
>  *
>  * while the remote lists report
>  *
>  *   1. git://anongit.gentoo.org/proj/java.git
>  *   2. git+ssh://g...@git.gentoo.org/proj/java.git
>  *   3. https://anongit.gentoo.org/git/proj/java.git
>  *
>  * as correct locations.
>  * Please consider removing and re-adding the overlay.
>
This is because recent changes of the infrastructure providing
overlays, explanation it's on the frontpage(gentoo.org)

>
> Maybe a few examples of /etc/portage/repos.conf to look at?
>
Maybe this is useful, what I have been doing, is use layman as always
for external repos from gentoo overlays( layman -a ...), As far as I
know the repos.conf still doesn't handle svn, so I think devs are
keeping layman the way it is to not break this, but if I want to
change something in a particular external overlay say java, what i do
is this

A new conf /etc/repos.conf/java.conf
[java]
priority = 100
location =  /home/$MY_USER/$MY_OVERLAYS_DIR/java
layman-type = git
auto-sync = no

And of course clone the repo to that dir and make my changes.


> Note the gentoo and local is fine. I keep /usr/local/portage
> for my stuff alone, so I guess I can just use the old layman
> dir stucture (/var/lib/layman) for my collection of exteranal
> repos?
>
I find the use of /usr/local/portage less useful than making your own
overlay, I have my own overlay in repos.conf pretty much the same as
the example before
/etc/repos.conf/j-overlay.conf:(This is my box used for development)
[j-overlay]
priority = 100
location =  /home/$MY_USER/$MY_OVERLAYS_DIR/j-overlay
layman-type = git
auto-sync = no

But I distribute it to some containers and some other  gentoo
installations by a little different config file:

[j-overlay]
location = /var/lib/portage/repos/j-overlay
sync-type = git
priority = 100
sync-uri = https://github.com/j-g-/j-overlay.git
auto-sync = true

And as expected, emerge --sync syncs the portage three(also via git)
and changes I commit to my own overlay.

I hope you find this useful.



Re: [gentoo-user] repos.conf

2015-06-25 Thread Florian Gamböck

Hi James,

Am 24.06.2015 um 05:12 schrieb James:

So is there a tool/interface where I type something like
'layman -a java' and it writes out the file to
/etc/portage/repos.conf/


You should take a look at 
https://wiki.gentoo.org/wiki/Project:Portage/Sync#layman-updater_Method.


TLDR: Install (as in "accept keyword") a newer version of Layman (at 
least 2.2.16), add the "sync-plugin-portage" USE-Flag, and maybe double 
check your /etc/layman/layman.cfg so it uses repos.conf.


What layman then does, is creating a dedicated 
/etc/portage/repos.conf/layman.conf, in which it automatically adds and 
removes overlays you add/remove via the usual layman commands. So in 
fact quite similar as the behavior with layman's make.conf, just with 
the new repos.conf.


HTH and best wishes,
--Flo



Re: [gentoo-user] repos.conf migration lost overlay priority

2015-02-13 Thread Andrew Savchenko
On Fri, 13 Feb 2015 20:29:07 +0200 Nikos Chantziaras wrote:
> I migrated my portage config to the new repos.conf system. I now have a 
> file /etc/portage/repos.conf/local.conf:
> 
>[Local]
>location = /usr/local/portage
>auto-sync = no
 
> And removed the path from make.conf.
> 
> However, now layman overlays override my local repo. If I copy an ebuild 
> to /usr/local/portage (for modifications) and try to emerge it, it is 
> not emerged. Instead, the ebuild from the other overlay is emerged.
> 
> How do I make my local overlay have the highest priority so that it 
> overrides *everything*?

Try to add
priority = 100
to local.conf

Best regards,
Andrew Savchenko


pgpLSYv7zqRwe.pgp
Description: PGP signature