public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Zac Medico <zmedico@gentoo.org>
To: gentoo-portage-dev@lists.gentoo.org
Cc: pms-bugs@gentoo.org
Subject: Re: [gentoo-portage-dev] [PATCH 1/2] bin/phase-helpers.shL Fix unpack() for deb2targz .xz types
Date: Sat, 06 Dec 2014 17:37:52 -0800	[thread overview]
Message-ID: <5483AF70.5010203@gentoo.org> (raw)
In-Reply-To: <20141206165201.0dc3ea1c.dolsen@gentoo.org>

On 12/06/2014 04:52 PM, Brian Dolbec wrote:
> 
> From 4cb661d994cf8503c4459b8f7da7ee0f739a9826 Mon Sep 17 00:00:00 2001
> From: Brian Dolbec <dolsen@gentoo.org>
> Date: Sat, 6 Dec 2014 14:51:13 -0800
> Subject: [PATCH 1/2] bin/phase-helpers.shL Fix unpack() for deb2targz .xz types
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
> 
> Issue reported by: mva in irc
> 
>>>> Unpacking source...
>>>> Unpacking 2gis_4.14.11-0trusty1+shv139+r191_amd64.deb to /var/tmp/portage/app-misc/2gis-4.14.11.139.191/work
> deb2targz: converting '2gis_4.14.11-0trusty1+shv139+r191_amd64.deb' ...
> deb2targz: skipping section 'debian-binary'
> deb2targz: skipping section 'control.tar.gz'
> deb2targz: wrote '2gis_4.14.11-0trusty1+shv139+r191_amd64.tar.xz'
> mv: cannot stat ‘2gis_4.14.11-0trusty1+shv139+r191_amd64.tar.gz’: No such file or directory
> ---
>  bin/phase-helpers.sh | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh
> index 6e437da..91f80c9 100644
> --- a/bin/phase-helpers.sh
> +++ b/bin/phase-helpers.sh
> @@ -475,8 +475,9 @@ unpack() {
>  						rm -f "$y"
>  					fi
>  					if ! mv -f "${y%.deb}".tar.gz data.tar.gz; then
> -						__helpers_die "$myfail"
> -						return 1
> +						if ! mv -f "${y%.deb}".tar.xz data.tar.xz; then
> +							__helpers_die "$myfail"
> +							return 1
>  					fi
>  				else
>  					if ! ar x "$srcdir$x"; then
> 

The PMS people should be *very* interested in any changes to unpack
behavior like this. It supports behavior that will lead to failures for
older versions of portage and other package managers.
-- 
Thanks,
Zac


  reply	other threads:[~2014-12-07  1:37 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-07  0:52 [gentoo-portage-dev] [PATCH 1/2] bin/phase-helpers.shL Fix unpack() for deb2targz .xz types Brian Dolbec
2014-12-07  1:37 ` Zac Medico [this message]
2014-12-07 11:04   ` Ulrich Mueller
2014-12-07 17:51     ` Zac Medico
2014-12-07 18:05       ` Ulrich Mueller
2014-12-07 18:23         ` Zac Medico
2014-12-07 18:37           ` Ulrich Mueller
2014-12-07 18:44             ` Zac Medico
2014-12-07 18:47               ` Ulrich Mueller
2014-12-07 18:49                 ` Zac Medico
2014-12-07 19:23                   ` Fabian Groffen
2014-12-07 19:30                     ` [gentoo-alt] " Zac Medico
2014-12-07 19:41                       ` Ulrich Mueller
2014-12-07 19:46                         ` Zac Medico
     [not found]                           ` <CANgp9kzeR-zt5z0DdxRL+W9pp2NqMcY7Eb72HuwYyezCiKRi_g@mail.gmail.com>
2014-12-08  3:50                             ` Zac Medico
2014-12-08  8:45                               ` Ulrich Mueller
2014-12-08 15:28                                 ` Zac Medico
2014-12-08  8:58                               ` Michał Górny
2014-12-07 23:24                 ` Brian Dolbec
2014-12-07 17:54 ` Zac Medico
2014-12-07 18:26   ` Zac Medico

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=5483AF70.5010203@gentoo.org \
    --to=zmedico@gentoo.org \
    --cc=gentoo-portage-dev@lists.gentoo.org \
    --cc=pms-bugs@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