Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Alex Alexander <wired@g.o>
Subject: Re: Defining S= from ebuild phase, src_unpack() ?
Date: Mon, 3 Jan 2011 17:02:56 +0200
On Mon, Jan 03, 2011 at 04:40:57PM +0200, Samuli Suominen wrote:
> Quoting PMS, Chapter 8:
> 
> "All ebuild-defined variables discussed in this chapter must be defined
> independently of any system, profile or tree dependent data, and must
> not vary depending upon the ebuild phase."
> 
> http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=blob_plain;f=ebuild-vars.tex;hb=HEAD
> 
> This is very inconvinent rule for example, github tarballs where the
> directory changes with every release. I've used this:
> 
> src_unpack() {
> 	unpack ${A}
> 	cd *-${PN}-*
> 	S=`pwd`
> }
> 
> In $PORTDIR/sys-fs/udisks-glue/udisks-glue-1.2.0.ebuild to get S=
> defined as:
> 
> fernandotcl-udisks-glue-f9b4839
> 
> Where "f9b4839" changes...
> 
> 
> Far as I know, S= isn't used to generate metadata cache, so it's PMS
> that need fixing for it's wording:
> 
> "All ebuild-defined variables used to generate metadata cache, discussed
> in this chapter..."

Yes, please :)

I've used that method to work around some github-tarballed packages
as well, seems to work pretty well.

Thanks,
-- 
Alex Alexander | wired
+ Gentoo Linux Developer
++ www.linuxized.com
Attachment:
pgpMpGeihOcLZ.pgp (PGP signature)
Replies:
Re: Defining S= from ebuild phase, src_unpack() ?
-- Thomas Kahle
References:
Defining S= from ebuild phase, src_unpack() ?
-- Samuli Suominen
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Defining S= from ebuild phase, src_unpack() ?
Next by thread:
Re: Defining S= from ebuild phase, src_unpack() ?
Previous by date:
Re: Can a bash script source ebuild functions?
Next by date:
Re: Defining S= from ebuild phase, src_unpack() ?


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.