Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 477942 - sys-apps/portage-2.1.12.13: a partially downloaded tarball can be used after wrong fetch
Summary: sys-apps/portage-2.1.12.13: a partially downloaded tarball can be used after ...
Status: RESOLVED DUPLICATE of bug 175612
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-23 20:16 UTC by Pacho Ramos
Modified: 2013-07-23 20:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2013-07-23 20:16:48 UTC
Usually, I need to run the following when I am editing an ebuild:
# emerge -1av --digest gnome-themes-standard

 * 
 * The --digest option can prevent corruption from being noticed. The
 * `repoman manifest` command is the preferred way to generate manifests
 * and it is capable of doing an entire repository or category at once.
 * 

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U #] x11-themes/gnome-themes-standard-3.8.2 [3.8.1] USE="gtk" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] >>> Downloading 'http://ftp.heanet.ie/pub/gentoo/distfiles/gnome-themes-standard-3.8.2.tar.xz'
--2013-07-23 22:11:35--  http://ftp.heanet.ie/pub/gentoo/distfiles/gnome-themes-standard-3.8.2.tar.xz
Resolviendo ftp.heanet.ie... 193.1.193.64
Conectando con ftp.heanet.ie[193.1.193.64]:80... conectado.
Petición HTTP enviada, esperando respuesta... 404 Not Found
2013-07-23 22:11:35 ERROR 404: Not Found.

>>> Downloading 'http://ftp.gnome.org/pub/gnome/sources/gnome-themes-standard/3.8/gnome-themes-standard-3.8.2.tar.xz'
--2013-07-23 22:11:35--  http://ftp.gnome.org/pub/gnome/sources/gnome-themes-standard/3.8/gnome-themes-standard-3.8.2.tar.xz
Resolviendo ftp.gnome.org... 130.239.18.137, 130.239.18.138, 130.239.18.163
Conectando con ftp.gnome.org[130.239.18.137]:80... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 3796600 (3,6M) [application/x-xz]
Grabando a: “/usr/distfiles/gnome-themes-standard-3.8.2.tar.xz”

83% [==========================================================================================>                  ] 3.179.223   --.-K/s   en 66s     

2013-07-23 22:12:41 (47,4 KB/s) - Error de lectura en el byte 3179223/3796600 (Expiró el tiempo de conexión). Reintentando.

--2013-07-23 22:12:42--  (intento: 2)  http://ftp.gnome.org/pub/gnome/sources/gnome-themes-standard/3.8/gnome-themes-standard-3.8.2.tar.xz
Conectando con ftp.gnome.org[130.239.18.137]:80... falló: La red es inaccesible.
Conectando con ftp.gnome.org[130.239.18.138]:80... falló: La red es inaccesible.
Conectando con ftp.gnome.org[130.239.18.163]:80... falló: La red es inaccesible.
Resolviendo ftp.gnome.org... falló: Fallo temporal en la resolución del nombre.
wget: no se pudo resolver la dirección del equipo “ftp.gnome.org”
No digest file available and download failed.

!!! Couldn't download 'gnome-themes-standard-3.8.2.tar.xz'. Aborting.
!!! Fetch failed for gnome-themes-standard-3.8.2.tar.xz, can't update Manifest
!!! Unable to generate manifest for 'x11-themes/gnome-themes-standard-3.8.2'.

As you can see, my horrible connection was lost and, then, tarball couldn't be fetched, the problem is that, if I re-run the command, I get:
# emerge -1av --digest gnome-themes-standard

 * 
 * The --digest option can prevent corruption from being noticed. The
 * `repoman manifest` command is the preferred way to generate manifests
 * and it is capable of doing an entire repository or category at once.
 * 

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U #] x11-themes/gnome-themes-standard-3.8.2 [3.8.1] USE="gtk" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] >>> Creating Manifest for /usr/portage/x11-themes/gnome-themes-standard

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) x11-themes/gnome-themes-standard-3.8.2
 * gnome-themes-standard-3.8.2.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                     [ ok ]
>>> Unpacking source...
>>> Unpacking gnome-themes-standard-3.8.2.tar.xz to /var/tmp/portage/x11-themes/gnome-themes-standard-3.8.2/work
xz: /var/tmp/portage/x11-themes/gnome-themes-standard-3.8.2/distdir/gnome-themes-standard-3.8.2.tar.xz: Unexpected end of input
tar: Fin de fichero inesperado en el archivo
tar: Fin de fichero inesperado en el archivo
tar: Error is not recoverable: exiting now
 * ERROR: x11-themes/gnome-themes-standard-3.8.2 failed (unpack phase):
 *   failure unpacking gnome-themes-standard-3.8.2.tar.xz
 * 
 * Call stack:
 *               ebuild.sh, line   93:  Called src_unpack
 *             environment, line 3156:  Called gnome2_src_unpack
 *             environment, line 2445:  Called unpack 'gnome-themes-standard-3.8.2.tar.xz'
 *        phase-helpers.sh, line  396:  Called __unpack_tar 'xz -d'
 *        phase-helpers.sh, line  315:  Called __assert_sigpipe_ok 'failure unpacking gnome-themes-standard-3.8.2.tar.xz'
 *   isolated-functions.sh, line   39:  Called die
 * The specific snippet of code:
 *   		[[ $x -ne 0 && $x -ne ${PORTAGE_SIGPIPE_STATUS:-141} ]] && die "$@"
 * 
 * If you need support, post the output of `emerge --info '=x11-themes/gnome-themes-standard-3.8.2'`,
 * the complete build log and the output of `emerge -pqv '=x11-themes/gnome-themes-standard-3.8.2'`.
 * The complete build log is located at '/var/log/portage/build/x11-themes/gnome-themes-standard-3.8.2:20130723-201337.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/x11-themes/gnome-themes-standard-3.8.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-themes/gnome-themes-standard-3.8.2/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-themes/gnome-themes-standard-3.8.2/work'
 * S: '/var/tmp/portage/x11-themes/gnome-themes-standard-3.8.2/work/gnome-themes-standard-3.8.2'

>>> Failed to emerge x11-themes/gnome-themes-standard-3.8.2, Log file:

>>>  '/var/log/portage/build/x11-themes/gnome-themes-standard-3.8.2:20130723-201337.log'

This could be solved if gnome-themes-standard-3.8.2.tar.xz wrongly fetched before was renamed to some other name

Thanks
Comment 1 Zac Medico gentoo-dev 2013-07-23 20:43:08 UTC

*** This bug has been marked as a duplicate of bug 175612 ***
Comment 2 Pacho Ramos gentoo-dev 2013-07-23 20:55:04 UTC
Looks like 6 years after the first report, network connections in spain are still awful -_-