From: Joakim Tjernlund <joakim.tjernlund@transmode.se>
To: "gentoo-portage-dev@lists.gentoo.org"
<gentoo-portage-dev@lists.gentoo.org>
Subject: Re: [gentoo-portage-dev] Re: How to have several gentoo repos on one machine?
Date: Thu, 22 Oct 2015 06:48:06 +0000 [thread overview]
Message-ID: <1445496485.31293.42.camel@transmode.se> (raw)
In-Reply-To: <pan$d3cee$d2c9ae95$916030c7$c19082ee@cox.net>
On Thu, 2015-10-22 at 02:29 +0000, Duncan wrote:
> Joakim Tjernlund posted on Wed, 21 Oct 2015 11:08:02 +0000 as excerpted:
>
> > I need to more than one gentoo repo in my computer.
> >
> > So I add to repos.conf:
> > [tm-cusfpv3]
> > auto-sync = yes
> > sync-type = rsync
> > sync-uri = rsync://devsrv.transmode.se/tm-cusfpv3
> > location = /usr/local/portage/tm-cusfpv3
> >
> > this did not work as "portageq repositories_configuration /" complains:
> > !!! Section 'tm-cusfpv3' in repos.conf has name different from
> > repository name 'gentoo' set inside repository
> >
> > I figured the name in repos.conf would just override
> > /usr/local/portage/tm-cusfpv3/profiles/repo_name ?
>
> While it's not quite clear to me either why you'd need two identical
> gentoo repos (and if they're not identical, why is the non-gentoo-
> official mirror still using the gentoo name?) or exactly what this config-
> line does, the aliases= attribute, along with force=aliases, in
> repos.conf, may be what you're looking for.
I use one for my host and the other for cross building our products root FS
and they are not in sync. That rules out the aliases I guess?
>
> See the portage (5) manpage, repos.conf section, attributes supported in
> sections of repositories subsection, under aliases and force.
> Unfortunately, the description for aliases is anything but clear, tho the
> usage (including comment) further down in the example subsection does
> help some.
>
> If that doesn't help, then while the portage devs may have some other
> suggestions, the workaround that occurs to me is to use rsync's exclude/
> filter options, so rsync ignores that file and doesn't sync it. I do[1]
> that with a few custom files/dirs that I don't want synced, and rsync
> ignores them just as I told it to. =:^)
Right, I will test this but I consider it an workaround and it will only
work with rsync.
>
> See the rsync (1) manpage, --exclude, --exclude-from, --include, --
> include-from and --filter=RULE options, as well as the filter rules,
> include/exclude pattern rules, and anchoring include/exclude patterns
> sections. However, be prepared to spend a bit of time studying, as these
> options are very powerful/flexible/configurable and thus take some time
> to figure out.
>
> Once you have rsync ignoring the repo_name file, you can rename it as you
> like.
I don't plan on renaming anything in the repo_name file, it should just
be ignored and the name I have select in repos.conf should used.
I don't see any value in repo_name file now that we have the new repos.conf,
possibly it could be a fallback only for PORTDIR users.
>
> However, do be aware that (as the repos.conf force option docs mention)
> messing with this is very likely to invalidate the pre-generated metadata
> cache, and if you don't regenerate it (egencache), portage will take a
> *VERY* long time figuring stuff out, *MUCH* longer than usual, as it
> won't have the benefit of the metadata cache for that repo.
OK, will have to look into that. Our main use will be binary pks only and
even this is slow. emerge is usling a lot of time to figure out what to
update even when using binary packets only(even when PKGDIR is empty or almost empty)
>
> Which again has me asking why you need two separate gentoo repos. Either
> they're identical and the one should suffice, or the unofficial one
> should be named something other than gentoo. In fact, at least in
> theory, in addition to all the headaches not using a different name is
> forcing on users, that's potentially trademark violation if it's publicly
> available, different from the official gentoo mirror, and yet still
> calling itself gentoo.
>
> ---
> [1] rsync exclude options: I actually use gentoo's git-based usersync repo
> on github, now, and thus don't rsync any repos all any more, here, and
> git of course has its git-ignore feature/files, which I use now. But I
> used rsync's exclude as suggested above, for years. Worked fine. =:^)
Nice, I am heading the same was, using git all the way but I not there yet.
One problem is that using git is disk space I think. Files are just
ignored but still present in the repo so syncing to our embedded target
will take a lot more space.
Any thoughts on that?
Jocke
next prev parent reply other threads:[~2015-10-22 6:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-21 11:08 [gentoo-portage-dev] How to have several gentoo repos on one machine? Joakim Tjernlund
2015-10-22 2:29 ` [gentoo-portage-dev] " Duncan
2015-10-22 6:48 ` Joakim Tjernlund [this message]
2015-10-22 11:26 ` Duncan
2015-10-22 11:59 ` Joakim Tjernlund
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1445496485.31293.42.camel@transmode.se \
--to=joakim.tjernlund@transmode.se \
--cc=gentoo-portage-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox