From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E5D5513888F for ; Thu, 22 Oct 2015 02:29:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 158D2E07E8; Thu, 22 Oct 2015 02:29:34 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5F97CE07DB for ; Thu, 22 Oct 2015 02:29:33 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Zp5dB-0007ve-DN for gentoo-portage-dev@lists.gentoo.org; Thu, 22 Oct 2015 04:29:29 +0200 Received: from ip98-167-165-199.ph.ph.cox.net ([98.167.165.199]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Oct 2015 04:29:29 +0200 Received: from 1i5t5.duncan by ip98-167-165-199.ph.ph.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Oct 2015 04:29:29 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-portage-dev@lists.gentoo.org From: Duncan <1i5t5.duncan@cox.net> Subject: [gentoo-portage-dev] Re: How to have several gentoo repos on one machine? Date: Thu, 22 Oct 2015 02:29:17 +0000 (UTC) Message-ID: References: <1445425682.5222.12.camel@transmode.se> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ip98-167-165-199.ph.ph.cox.net User-Agent: Pan/0.140 (Chocolate Salty Balls; GIT c9c83f3) X-Archives-Salt: c12d6d56-9ffc-442d-bb68-dcc914ae2bc5 X-Archives-Hash: ce2fe8aebe20990bdf3d09d62a39ac0b 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. 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. =:^) 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. 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. 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. =:^) -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman