From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1W1I7Y-00078o-IA for ptxdist@pengutronix.de; Thu, 09 Jan 2014 17:06:12 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1W1I7Y-0002fl-Gi for ptxdist@pengutronix.de; Thu, 09 Jan 2014 17:06:12 +0100 Date: Thu, 9 Jan 2014 17:06:12 +0100 From: Michael Olbrich Message-ID: <20140109160612.GA7098@pengutronix.de> References: <201401080859.43988.jbe@pengutronix.de> <20140109090334.GI2156@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [ptxdist] git ptxdist best practices Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Thu, Jan 09, 2014 at 10:23:58AM -0500, Jon Ringle wrote: > On Thu, Jan 9, 2014 at 4:03 AM, Olbrich, Michael > wrote: > > > It really depends on how you want to work with this. If the external > > repositories are integrated often, then add them as git submodules in > > local_src and use "file://$(PTXDIST_WORKSPACE)/local_src/foo/" as URL. If > > > > I've not used git submodules before. Can I bind a git submodule to a > specific tag? git submodules are always bound to a specific commit. > > not then create a tag when integrating and use > > git://myhost.de/foo.git;tag=mytag1" as URL and foo-mytag1.tar.bz2 as > > SOURCE > > and update the tag as needed. This will clone the repository and create a > > tarball for the tag. Note: you cannot follow a branch here! It will just > > use the tarball and ignore any changes to the branch. This is only for > > projects that only provide git tags for releases but no tarballs. > > > > > One issue that I ran across with this is that I have: > PTXCONF_SETUP_PTXMIRROR_ONLY=y > PTXCONF_SETUP_PTXMIRROR="http://opensource/pool/" > > Where opensource is an internal server that keeps all tar balls used to > build. I'm paranoid that someday a upstream tar ball won't be available and > would cause a build break if someone tried to build and they didn't have > that tar ball in ${PTXCONF_SETUP_SRCDIR} > > But for my purposes, if I wanted to use the git URL in a rule file I'd want > it to use the URL as is. But it rewrites it trying to use > ${PTXCONF_SETUP_PTXMIRROR} instead in scripts/lib/ptxd_make_get.sh:295 > > Is there away to work around this? put your git repositories in the mirror: FOO_URL := http://opensource/pool/foo.git;tag=bar The mechanism whitelists any URL starting with ${PTXCONF_SETUP_PTXMIRROR} Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de