From: Yixun Lan <dlan@gentoo.org>
To: gentoo-devhelp@lists.gentoo.org
Subject: Re: [gentoo-devhelp] multiple GIT repositories - how?
Date: Thu, 5 Mar 2015 05:06:55 +0800 [thread overview]
Message-ID: <20150304210655.GA3034@ofire> (raw)
In-Reply-To: <20150304190340.3a67c8c1fd2fccc80f15ef12@gentoo.org>
On 19:03 Wed 04 Mar , Andrew Savchenko wrote:
> On Wed, 04 Mar 2015 15:16:55 +0100 Helmut Jarausch wrote:
> > On 03/04/2015 02:41:55 PM, Andrew Savchenko wrote:
> > > On Wed, 04 Mar 2015 13:41:32 +0100 Helmut Jarausch wrote:
> > > > Hi,
> > > >
> > > > I'd like to write an ebuild www-client/qupzilla-9999.
> > > > For this I need to fetch from several repositories like
> > > >
> > > > EGIT_REPO_URI="https://github.com/QupZilla/qupzilla.git"
> > > > EGIT_SECONDARY=("https://github.com/QupZilla/qupzilla-plugins/tree/master/plugins/Videoner.git"
> > > > "https://github.com/QupZilla/qupzilla-plugins/tree/master/plugins/CopyTitle.git"
> > > > "https://github.com/QupZilla/qupzilla-plugins/tree/master/plugins/MailHandle.git")
> > > >
> > > > How can this be achieved?
> > >
> > > Provide them as a list (or array) in EGIT_REPO_URI,
> > > from git-r3.eclass manual page:
> > >
> > > EGIT_REPO_URI (REQUIRED)
> > > URIs to the repository, e.g. git://foo, https://foo. If
> > > multiple URIs are provided, the eclass will consider them
> > > as fallback URIs to try if the first URI does not work.
> > >
> > > It can be overriden via env using ${PN}_LIVE_REPO
> > > variable.
> > >
> > > Can be a whitespace-separated list or an array.
> > >
> > > Example:
> > > EGIT_REPO_URI="git://a/b.git https://c/d.git"
> > >
> > >
> >
> > I don't understand this. I've tried to add
> > qupzilla_LIVE_PRO=("https://github.com/QupZilla/qupzilla-plugins/tree/master/plugins/Videoner.git"
> > "https://github.com/QupZilla/qupzilla-plugins/tree/master/plugins/CopyTitle.git"
> > "https://github.com/QupZilla/qupzilla-plugins/tree/master/plugins/MailHandle.git")
> > to /etc/portage/env/www-client/qupzilla
> >
> > In addition, I've tried
> > EGIT_REPO_URI=("https://github.com/QupZilla/qupzilla.git"
> > "https://github.com/QupZilla/qupzilla-plugins/tree/master/plugins/Videoner.git"
> > "https://github.com/QupZilla/qupzilla-plugins/tree/master/plugins/CopyTitle.git"
> > "https://github.com/QupZilla/qupzilla-plugins/tree/master/plugins/MailHandle.git")
> >
> > within the ebuild, but nothing helps.
> > What am I missing?
>
> Sorry, as Justin pointed in another mail, I misunderstood meaning
> of additionals URIs: they are fallback links to the same
> project.
>
> Another idea: maybe you should separate plugins to their own
> ebuilds? This will solve URI issue and will follow Gentoo
> unbundling policy nicely.
>
Hi Helmut
technically you can still do that, although we don't encourage to ..
all you need is call git-2_src_unpack several times in src_unpack phase
( in my example, I use git-2.eclass, you should use git-r3 now )
[1] http://gitweb.gentoo.org/proj/virtualization.git/tree/app-emulation/xen-tools/xen-tools-9999.ebuild
--
Yixun Lan (dlan)
Gentoo Linux Developer
GPG Key ID AABEFD55
next prev parent reply other threads:[~2015-03-05 5:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-04 12:41 [gentoo-devhelp] multiple GIT repositories - how? Helmut Jarausch
2015-03-04 13:41 ` Andrew Savchenko
2015-03-04 14:16 ` Helmut Jarausch
2015-03-04 16:03 ` Andrew Savchenko
2015-03-04 21:06 ` Yixun Lan [this message]
2015-03-04 14:18 ` Justin (jlec)
2015-03-19 23:35 ` [gentoo-devhelp] " NP-Hardass
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=20150304210655.GA3034@ofire \
--to=dlan@gentoo.org \
--cc=gentoo-devhelp@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