Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Marius Mauch <genone@g.o>
Subject: Re: RFC: auto-detection of unpack dependencies
Date: Wed, 16 Jul 2008 00:43:28 +0200
On Tue, 15 Jul 2008 22:34:33 +0100
Ciaran McCreesh <ciaran.mccreesh@...> wrote:

> On Tue, 15 Jul 2008 23:23:26 +0200
> Marius Mauch <genone@g.o> wrote:
> > Right, just I'd expect the parsing of SRC_URI (with conditionals) to
> > be a bit tricky in bash, not something I'm going to work on. An
> > eclass-based solution would have a few benefits though wrt the
> > metadata cache.
> 
> Well... You don't really have to parse it.
> 
> for p in $SRC_URI ; do
>     if [[ "${p}" == "(" ]] || [[ "${p}" == ")" ]] || \
>         [[ "${p%\?}" != "${p}" ]] ; then
>         UNPACK_DEPENDS="${UNPACK_DEPENDS} $p "
>     elif [[ "${p%.zip}" != "${p}" ]] ; then
>         UNPACK_DEPENDS="${UNPACK_DEPENDS} app-arch/unzip "
>     elif [[ "${p%.bz2}" != "${p}" ]] ; then
>         UNPACK_DEPENDS="${UNPACK_DEPENDS} app-arch/bzip2 "
>     fi
> done
> 
> Granted, it'll generate invalid output if SRC_URI is invalid (for
> example, if SRC_URI has mismatched parens, the output will too), but I
> can't think of any situation where breaking DEPEND if SRC_URI is
> already broken is a problem.

Interesting idea. Unfortunately our depstring parser doesn't like empty
parentheses (as they are usually problem indicators), so it doesn't
work out.

Marius
-- 
gentoo-dev@g.o mailing list


Replies:
Re: RFC: auto-detection of unpack dependencies
-- Ciaran McCreesh
References:
RFC: auto-detection of unpack dependencies
-- Marius Mauch
Re: RFC: auto-detection of unpack dependencies
-- Ciaran McCreesh
Re: RFC: auto-detection of unpack dependencies
-- Marius Mauch
Re: RFC: auto-detection of unpack dependencies
-- Ciaran McCreesh
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: RFC: auto-detection of unpack dependencies
Next by thread:
Re: RFC: auto-detection of unpack dependencies
Previous by date:
Re: Re: RFC: auto-detection of unpack dependencies
Next by date:
Re: RFC: auto-detection of unpack dependencies


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.