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: Peter Volkov <pva@g.o>
Subject: Re: RFC: auto-detection of unpack dependencies
Date: Sun, 20 Jul 2008 17:41:58 +0400

 1.1

В Чтв, 17/07/2008 в 04:51 +0200, Marius Mauch пишет: 
> At dev.gentoo.org/~genone/unpack.eclass is the draft for an eclass
> to implement this feature. 

Marius, although it's possible to do this things in eclass why is eclass
better? As I see portage's unpack() already has extension <-> "program
to unpack" relation. Basically unpack() in ebuild.sh has the following
code:

unpack() {
[snip]
        case "${x##*.}" in
            tar)
                tar xof "${srcdir}${x}" ${tar_opts} || die "$myfail"
                ;;
            tgz)
                tar xozf "${srcdir}${x}" ${tar_opts} || die "$myfail"
[snip and so on...]

This means that every ebuild which uses 'unpack ${A}' should have in
DEPEND a program which is selected by filename extension of sources. So
as I understood your initial suggestion was to make this happen
automatically. And this is very logical as makes ebuilds cleaner and
more terse. So why did you changed your mind and try to write another
eclass (which then should sit in the tree forever), to create duplicate
unpack function instead of just making step you suggested initially? Is
there any intension to remove unpack logic from package manager? And if
yes, why?

-- 
Peter.



Replies:
Re: RFC: auto-detection of unpack dependencies
-- Joe Peterson
Re: RFC: auto-detection of unpack dependencies
-- Marius Mauch
References:
RFC: auto-detection of unpack dependencies
-- Marius Mauch
Re: RFC: auto-detection of unpack dependencies
-- Marius Mauch
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: Council meeting summary for 10 July 2008
Next by date:
Re: Council meeting summary for 10 July 2008


Oct 10, 2008

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.