public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] unpacker.eclass
Date: Wed, 1 Feb 2012 19:33:54 -0500	[thread overview]
Message-ID: <201202011933.55289.vapier@gentoo.org> (raw)
In-Reply-To: <20120202001202.060d6925@pomiocik.lan>

[-- Attachment #1: Type: Text/Plain, Size: 1965 bytes --]

On Wednesday 01 February 2012 18:12:02 Michał Górny wrote:
> On Wed, 1 Feb 2012 15:55:46 -0500 Mike Frysinger wrote:
> > On Wednesday 01 February 2012 15:51:52 Michał Górny wrote:
> > > On Wed, 1 Feb 2012 15:44:14 -0500 Mike Frysinger wrote:
> > > > > > # @USAGE: [archives that we will unpack]
> > > > > > # @RETURN: Dependencies needed to unpack all the archives
> > > > > > # @DESCRIPTION:
> > > > > > # Walk all the specified files (defaults to $SRC_URI) and
> > > > > > figure out the # dependencies that are needed to unpack
> > > > > > things. #
> > > > > > # Note: USE flags are not yet handled.
> > > > > > unpacker_src_uri_depends() {
> > > > > > 
> > > > > > 	local uri deps d
> > > > > > 	
> > > > > > 	[[ $# -eq 0 ]] && set -- ${SRC_URI}
> > > > > > 	
> > > > > > 	for uri in "$@" ; do
> > > > > > 	
> > > > > > 		case ${uri} in
> > > > > > 		*.rar|*.RAR)
> > > > > > 		
> > > > > > 			d="app-arch/unrar" ;;
> > > > > > 		
> > > > > > 		*.7z)
> > > > > > 		
> > > > > > 			d="app-arch/p7zip" ;;
> > > > > 
> > > > > Where are those file formats handled? You don't seem to
> > > > > fallback to 'unpack' anywhere too.
> > > > 
> > > > eh ?  this func doesn't do unpacking, just ${SRC_URI}<->${DEPEND}
> > > > matching.
> > > 
> > > Sooo.. it's intended to generate an useless DEPEND
> > 
> > the ebuild does:
> > 	DEPEND+=" $(unpacker_src_uri_depends)"
> > 	
> > > or you have to reset src_unpack() to default to make the archives
> > > actually extractable.
> > 
> > this func has nothing to do with extraction.  look at the rest of the
> > code to see how the default src_unpack is handled via standard
> > EXPORT_FUNC means.
> 
> Yes, and can that exported default src_unpack() extract either .rar
> or .7z?

there are no plans for that since portage handles it from EAPI=0 onwards.  i 
can have _unpacker() automatically tail off into `unpack` if it finds a file it 
doesn't recognize.
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2012-02-02  0:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-01 20:05 [gentoo-dev] unpacker.eclass Mike Frysinger
2012-02-01 20:30 ` Michał Górny
2012-02-01 20:44   ` Mike Frysinger
2012-02-01 20:51     ` Michał Górny
2012-02-01 20:55       ` Mike Frysinger
2012-02-01 23:12         ` Michał Górny
2012-02-02  0:33           ` Mike Frysinger [this message]
2012-02-02  8:06             ` Michał Górny
2012-02-02 16:18               ` Mike Frysinger
2012-02-01 21:11 ` Alexandre Rostovtsev
2012-02-02 17:24 ` Mike Frysinger
2012-02-05  5:21 ` [gentoo-dev] unpacker.eclass and base.eclass integration Mike Frysinger

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=201202011933.55289.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=gentoo-dev@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