Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42859 - unpacking of kbd-1.12 fails
Summary: unpacking of kbd-1.12 fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 45942 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-25 02:50 UTC by Federico Fenara
Modified: 2004-06-16 15:08 UTC (History)
1 user (show)

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


Attachments
Repackaged kbd-1.12.tar.gz so that it correctly extracts on JFS filesystems. (kbd-1.12.tar.gz,841.53 KB, application/octet-stream)
2004-02-27 05:27 UTC, Heiko Wundram
Details
Changed digest file (digest-kbd-1.12-r2,60 bytes, text/plain)
2004-02-27 05:31 UTC, Heiko Wundram
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Federico Fenara 2004-02-25 02:50:22 UTC
Triyng to emerge kbd I get this error about unpacking.

servizievole root # emerge kbd
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/kbd-1.12-r2 to /
>>> md5 src_uri ;-) kbd-1.12.tar.gz
>>> Unpacking source...
>>> Unpacking kbd-1.12.tar.gz to /var/tmp/portage/kbd-1.12-r2/work
tar: ./kbd-1.12/doc/utf/\342\231\252\342\231\254: Cannot open: Invalid argument
tar: Error exit delayed from previous errors
 
!!! ERROR: sys-apps/kbd-1.12-r2 failed.
!!! Function unpack, Line 332, Exitcode 2
!!! failure unpacking kbd-1.12.tar.gz


Reproducible: Always
Steps to Reproduce:
1. emerge kbd

Actual Results:  
Unpacking fails.

Expected Results:  
Install kbd.

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.4.24)
=================================================================
System uname: 2.4.24 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.13
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /etc/tomcat /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apm arts avi berkdb crypt cups encode foomaticdb gdbm gif gpm gtk2 imlib
java jpeg libg++ libwww mad mikmod mmx motif mpeg mysql ncurses nls oggvorbis
oss pam pdflib perl png python quicktime readline sdl slang spell ssl svga tcpd
threads x86 xml2 xmms xv zlib"
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2004-02-26 11:15:33 UTC
please delete the file and reemerge again
Comment 2 Federico Fenara 2004-02-26 23:58:27 UTC
I've already done it with the same result.

servizievole root # rm /usr/portage/distfiles/kbd-1.12.tar.gz
servizievole root # emerge kbd
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/kbd-1.12-r2 to /
>>> Downloading http://gentoo.oregonstate.edu/distfiles/kbd-1.12.tar.gz
--08:51:23--  http://gentoo.oregonstate.edu/distfiles/kbd-1.12.tar.gz
           => `/usr/portage/distfiles/kbd-1.12.tar.gz'
Resolving gentoo.oregonstate.edu... 128.193.0.3
Connecting to gentoo.oregonstate.edu[128.193.0.3]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 884,827 [application/x-gzip]
                                                                                
100%[====================================>] 884,827      117.37K/s    ETA 00:00
                                                                                
08:51:30 (132.32 KB/s) - `/usr/portage/distfiles/kbd-1.12.tar.gz' saved [884827/884827]
                                                                                
>>> md5 src_uri ;-) kbd-1.12.tar.gz
>>> Unpacking source...
>>> Unpacking kbd-1.12.tar.gz to /var/tmp/portage/kbd-1.12-r2/work
tar: ./kbd-1.12/doc/utf/\342\231\252\342\231\254: Cannot open: Invalid argument
tar: Error exit delayed from previous errors
                                                                                
!!! ERROR: sys-apps/kbd-1.12-r2 failed.
!!! Function unpack, Line 332, Exitcode 2
!!! failure unpacking kbd-1.12.tar.gz
 
servizievole root #
Comment 3 Heiko Wundram 2004-02-27 05:19:45 UTC
This bug comes from the UTF-8 in the tar.gz file being unusable in conjunction with the JFS drivers from Knoppix or the 1.4 release LiveCD.

Workaround:
1. Unpack kbd-1.12.tar.gz, ignoring the error.
2. Repack kbd-1.12.tar.gz, moving this file to /usr/portage/distfiles
3. Recompute MD5-sums for ebuild

Real patch: Make kbd-1.12-r2 unpack itself with ignoring errors caused by wrong UTF-8 characters in filenames.

I've seen this error occur only when the filesystem where the files are being unpacked on is JFS, and with kernels = 2.4.x
Comment 4 Heiko Wundram 2004-02-27 05:27:20 UTC
Created attachment 26463 [details]
Repackaged kbd-1.12.tar.gz so that it correctly extracts on JFS filesystems.
Comment 5 Heiko Wundram 2004-02-27 05:31:29 UTC
Created attachment 26466 [details]
Changed digest file

Changed digest file, replace the one in /usr/portage/sys-apps/kbd/files with
this one before trying to emerge it, and you should be fine without recomputing
the MD5-sum of the ebuild. In case you don't replace it, and don't recalculate
the MD5-sum, you're in for trouble, as it will try to download the original
file, padding this one with the extra data. (seems the original was very badly
compressed)
Comment 6 Federico Fenara 2004-02-27 05:46:57 UTC
I've just found the way to make it work upgrading to kernel 2.6.3-rc2. Thanks for the support. :) 
Comment 7 Seemant Kulleen (RETIRED) gentoo-dev 2004-03-27 19:11:56 UTC
*** Bug 45942 has been marked as a duplicate of this bug. ***
Comment 8 Michael K 2004-03-30 14:19:14 UTC
How is this a duplicate for kdb-1.08?

1.12 doesn't help those of us installing a new system.

Some of us don't know the ebuild system well enough to use this as a work-around, can more detailed steps be given, if there's a way to do an emerge system using this version instead of 1.08-r5?

OR can a re-packaged 1.08 tar.gz be posted as well?
Comment 9 Michael K 2004-03-30 14:39:52 UTC
I created my own work around/kludge:

First, untar the distfile (kbd-1.08.tar.gz) somewhere sane (/tmp is a good place to start), and it will ignore the UTF-8 filename.  

Then re-package:

tar -cvzf kbd-1.08.tar.gz ./kbd-1.08

back up the digest file and the original distfile

copy the new package to the distfiles directory in /usr/portage

md5sum kdb-1.08.tar.gz

Edit the digest file with the appropriate md5 checksum and file size difference.

emerge kdb-1.08-r5.ebuild

And then retry your emerge system / whatever you were doing.

This really doesn't *fix* anything, all it does is remove a doc file from the package.
Comment 10 Michael Engelhardt 2004-04-19 02:22:26 UTC
I solved this problem by remounting the filesystem with "iocharset=utf8" . After that I was able to continue and finish the installation. 
Comment 11 Aron Griffis (RETIRED) gentoo-dev 2004-06-16 15:08:40 UTC
ok, I think I've fixed this by manually unpacking in the ebuild instead of using the portage unpack function.  Please re-open if it's still broken for you.