Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 279883 - media-video/mplayer-1.0_rc2_p20090731 unpack fails with USE=svga because svga_helper... is corrupted
Summary: media-video/mplayer-1.0_rc2_p20090731 unpack fails with USE=svga because svga...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
: 279918 280188 317499 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-08-01 10:38 UTC by Jiří Moravec
Modified: 2010-04-28 17:45 UTC (History)
4 users (show)

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 Jiří Moravec 2009-08-01 10:38:55 UTC
>>> Emerging (1 of 1) media-video/mplayer-1.0_rc2_p20090731
 * mplayer-1.0_rc2_p20090731.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                 [ ok ]
>>> Downloading 'http://distfiles.gentoo.org/distfiles/svgalib_helper-1.9.17-mplayer.tar.bz2'
.
.
.
 * svgalib_helper-1.9.17-mplayer.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                             [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                 [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                               [ ok ]
 * QA Notice: ECLASS 'hardened-funcs' inherited illegally in media-video/mplayer-1.0_rc2_p20090731 setup
 *
 * You've enabled the cpudetection flag.  This feature is
 * included mainly for people who want to use the same
 * binary on another system with a different CPU architecture.
 * MPlayer will already detect your CPU settings by default at
 * buildtime; this flag is used for runtime detection.
 * You won't need this turned on if you are only building
 * mplayer for this system.  Also, if your compile fails, try
 * disabling this use flag.
>>> Unpacking source...
>>> Unpacking mplayer-1.0_rc2_p20090731.tar.bz2 to /usr/vartmp/portage/media-video/mplayer-1.0_rc2_p20090731/work
>>> Unpacking svgalib_helper-1.9.17-mplayer.tar.bz2 to /usr/vartmp/portage/media-video/mplayer-1.0_rc2_p20090731/work
bzip2: /usr/vartmp/portage/media-video/mplayer-1.0_rc2_p20090731/distdir/svgalib_helper-1.9.17-mplayer.tar.bz2 is not a bzip2 file.


svgalib_helper-1.9.17-mplayer.tar.bz2 file is corrupted. In reality it is html file, because url from ebuild is no longer valid. Correct svgalib_helper... line in Manifest is "DIST svgalib_helper-1.9.17-mplayer.tar.bz2 7234 RMD160 e0c4ae039478732404dd743e250e1061cc9cf0a4 SHA1 d2d596f1ddd283188b2990417d22903c0b466d25 SHA256 016edd27d74b5c66481ddb4563c961fbb579e3a95dd846cc857a639df09999e5"


Reproducible: Always

Steps to Reproduce:
1. USE="svga" emerge -v1 =media-video/mplayer-1.0_rc2_p20090731
2.
3.

Actual Results:  
 * ERROR: media-video/mplayer-1.0_rc2_p20090731 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_unpack
 *             environment, line 3322:  Called unpack 'mplayer-1.0_rc2_p20090731.tar.bz2' 'svgalib_helper-1.9.17-mplayer.tar.bz2'
 *               ebuild.sh, line  386:  Called _unpack_tar 'bzip2'
 *               ebuild.sh, line  361:  Called die
 * The specific snippet of code:
 *                              assert "$myfail"
 *  The die message:
 *   failure unpacking svgalib_helper-1.9.17-mplayer.tar.bz2
Comment 1 Jiří Moravec 2009-08-01 14:04:29 UTC
You need manually download correct svgalib_helper-1.9.17-mplayer.tar.bz2 file from inet and place it in distfiles. I did it from http://ftp.uni-kl.de/pub/mplayer/contrib/svgalib/svgalib_helper-1.9.17-mplayer.tar.bz2. And replace that mess in Manifest with correct length and hash values. After this ebuild run charmly.
Comment 2 leeight 2009-08-02 05:58:42 UTC
thanks a lot, resolve this problem by that
(In reply to comment #1)
> You need manually download correct svgalib_helper-1.9.17-mplayer.tar.bz2 file
> from inet and place it in distfiles. I did it from
> http://ftp.uni-kl.de/pub/mplayer/contrib/svgalib/svgalib_helper-1.9.17-mplayer.tar.bz2.
> And replace that mess in Manifest with correct length and hash values. After
> this ebuild run charmly.
> 

Comment 3 craven 2009-08-02 17:54:31 UTC
confirming this problem.

content of http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/svgalib_helper-1.9.17-mplayer.tar.bz2

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head profile="http://www.w3.org/2005/10/profile">
<title>Entering MPlayer homepage</title>
<meta http-equiv="refresh" content="0; URL=design7/news.html">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="design7/default.css">
<link rel="icon" href="design7/favicon.png" type="image/png">
</head>
<body>
<p>
If you are not automatically redirected, click
<a href="design7/news.html">this link to our news page</a>.
</p>
</body>
</html>
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2009-08-03 06:26:45 UTC
*** Bug 279918 has been marked as a duplicate of this bug. ***
Comment 5 Robert Bradbury 2009-08-03 12:57:27 UTC
Side note to Jiří and others -- most of us do not deal with ebuild and manifests on a daily basis and thus it is reasonably important to spell out the details.  What worked for me was:
a) Download and install the real .bz2 file in /usr/portage/distfiles.
b) Chdir to /usr/portage/media-video/mplayer and edit the Manifest file replacing the line for "DIST svgalib_helper-1.9.17-mplayer.tar.bz2..." with the complete line provided in the 090801 Description.

Trying to use ebuild with the most recent .ebuild file and the manifest|digest option did not work (seemed to download the corrupted svgalib_helper file from the local mirror again overwriting the updated variant).  Is there an "ebuild" option which allows the rebuilding of the Manifest without downloading any files?

Also, I was concerned about the build output:
 * Enabling vidix non-root mode.
 * (You need a proper svgalib_helper.o module for your kernel
 * to actually use this)

Is there a Gentoo option that manages this or is it entirely a "buyer beware" end-user kernel hacking adventure?
Comment 6 Ben de Groot (RETIRED) gentoo-dev 2009-08-03 13:34:12 UTC
(In reply to comment #5)
> Is there an "ebuild"
> option which allows the rebuilding of the Manifest without downloading any
> files?

You probably want `repoman manifest --force` here.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2009-08-03 13:44:23 UTC
   03 Aug 2009; Samuli Suominen <ssuominen@gentoo.org>
+  mplayer-1.0_rc2_p20090322.ebuild, mplayer-1.0_rc2_p20090530.ebuild,
+  mplayer-1.0_rc2_p20090731.ebuild:
+  Upload svgalib_helper again to mirrors wrt #279883.
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2009-08-03 16:02:59 UTC
*** Bug 280188 has been marked as a duplicate of this bug. ***
Comment 9 Vasilis Lourdas 2010-04-28 12:51:36 UTC
Same again for the latest testing version of mplayer-1.0_rc4_p20100427. The download link for svgalib_helper-1.9.17-mplayer.tar.bz2 is not valid.
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2010-04-28 13:01:00 UTC
(In reply to comment #9)
> Same again for the latest testing version of mplayer-1.0_rc4_p20100427. The
> download link for svgalib_helper-1.9.17-mplayer.tar.bz2 is not valid.
> 

It should be... The file is here 

http://www.mplayerhq.hu/MPlayer/contrib/svgalib/svgalib_helper-1.9.17-mplayer.tar.bz2

Try deleting it from your distfiles first.
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2010-04-28 13:03:08 UTC
*** Bug 317499 has been marked as a duplicate of this bug. ***
Comment 12 Vasilis Lourdas 2010-04-28 17:35:33 UTC
(In reply to comment #10)
> It should be... The file is here 
> 
> http://www.mplayerhq.hu/MPlayer/contrib/svgalib/svgalib_helper-1.9.17-mplayer.tar.bz2
> 
> Try deleting it from your distfiles first.

Yes, but it fails checksum validation and portage downloads the wrong file again. This should go in the ebuild I guess.
Comment 13 Vasilis Lourdas 2010-04-28 17:42:16 UTC
(In reply to comment #12)
> Yes, but it fails checksum validation and portage downloads the wrong file
> again. This should go in the ebuild I guess.

OK, I see that in the ebuild the link is correct. However, when I try to emerge mplayer, it downloads and saves an html page. It seems that the mirror I am downloading the file contains the wrong file.

emerge -vu mplayer

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

Calculating dependencies... done!
[ebuild     U ] media-video/mplayer-1.0_rc4_p20100427 [1.0_rc4_p20100328] USE="X a52 alsa amr%* ass cddb cdio dirac dts dv dvd dvdnav enca encode faac faad fbcon ftp gif iconv jpeg jpeg2k live mad mmx mmxext mp3 network opengl osdmenu png quicktime rar real rtc schroedinger sdl shm speex sse sse2 ssse3 svga theora toolame tremor truetype twolame unicode vorbis x264 xscreensaver xv xvid -3dnow -3dnowext -aalib (-altivec) -bidi -bindist -bl -bs2b -cdparanoia -cpudetection -custom-cpuopts -debug -dga -directfb -doc -dvb -dxr3 -esd -ggi -gmplayer -ipv6 -jack -joystick -ladspa -libcaca -lirc -lzo -md5sum -mng -nas -nut -openal -oss -pnm -pulseaudio -pvr -radio -samba -tga -v4l -v4l2 -vdpau -vidix -win32codecs -xanim -xinerama -xvmc -zoran (-aac%*) (-ffmpeg-mt%*) (-opencore-amr%)" VIDEO_CARDS="-mga -s3virge -tdfx -vesa" 1 kB [1=>0]

Total: 1 package (1 upgrade), Size of downloads: 1 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/local/portage/layman/multimedia


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) media-video/mplayer-1.0_rc4_p20100427
 * mplayer-1.0_rc4_p20100427.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                             [ ok ]
>>> Downloading 'http://distfiles.gentoo.org/distfiles/svgalib_helper-1.9.17-mplayer.tar.bz2'
--2010-04-28 20:41:14--  http://distfiles.gentoo.org/distfiles/svgalib_helper-1.9.17-mplayer.tar.bz2
Resolving distfiles.gentoo.org... 216.165.129.135, 204.152.191.39, 199.6.1.174, ...
Connecting to distfiles.gentoo.org|216.165.129.135|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 597 [application/x-tar]
Saving to: `/media/extended/distfiles/svgalib_helper-1.9.17-mplayer.tar.bz2'

100%[==============================================================================>] 597         --.-K/s   in 0,006s  

2010-04-28 20:41:14 (98,8 KB/s) - `/media/extended/distfiles/svgalib_helper-1.9.17-mplayer.tar.bz2' saved [597/597]

 * svgalib_helper-1.9.17-mplayer.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                         [ ok ]
 * checking ebuild checksums ;-) ...                                                                             [ ok ]
 * checking auxfile checksums ;-) ...                                                                            [ ok ]
 * checking miscfile checksums ;-) ...                                                                           [ ok ]
 * CPV:  media-video/mplayer-1.0_rc4_p20100427
 * REPO: gentoo
 * USE:  X a52 alsa amr ass cddb cdio dirac dts dv dvd dvdnav elibc_glibc enca encode faac faad fbcon ftp gif iconv jpeg jpeg2k kernel_linux live mad mmx mmxext mp3 network opengl osdmenu png quicktime rar real rtc schroedinger sdl shm speex sse sse2 ssse3 svga theora toolame tremor truetype twolame unicode userland_GNU vorbis x264 x86 xscreensaver xv xvid
>>> Unpacking source...
>>> Unpacking mplayer-1.0_rc4_p20100427.tar.bz2 to /var/tmp/portage/media-video/mplayer-1.0_rc4_p20100427/work
>>> Unpacking svgalib_helper-1.9.17-mplayer.tar.bz2 to /var/tmp/portage/media-video/mplayer-1.0_rc4_p20100427/work
bzip2: /var/tmp/portage/media-video/mplayer-1.0_rc4_p20100427/distdir/svgalib_helper-1.9.17-mplayer.tar.bz2 is not a bzip2 file.
tar: This does not look like a tar archive
tar: Error exit delayed from previous errors
 * ERROR: media-video/mplayer-1.0_rc4_p20100427 failed:
 *   failure unpacking svgalib_helper-1.9.17-mplayer.tar.bz2
 * 
 * Call stack:
 *               ebuild.sh, line   54:  Called src_unpack
 *             environment, line 3352:  Called unpack 'mplayer-1.0_rc4_p20100427.tar.bz2' 'svgalib_helper-1.9.17-mplayer.tar.bz2'
 *               ebuild.sh, line  391:  Called _unpack_tar 'bzip2'
 *               ebuild.sh, line  366:  Called assert 'failure unpacking svgalib_helper-1.9.17-mplayer.tar.bz2'
 *   isolated-functions.sh, line   14:  Called die
 * The specific snippet of code:
 *   		[[ $x -eq 0 ]] || die "$@"
 * 
 * If you need support, post the output of 'emerge --info =media-video/mplayer-1.0_rc4_p20100427',
 * the complete build log and the output of 'emerge -pqv =media-video/mplayer-1.0_rc4_p20100427'.
 * The complete build log is located at '/var/tmp/portage/media-video/mplayer-1.0_rc4_p20100427/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/mplayer-1.0_rc4_p20100427/temp/environment'.
 * S: '/var/tmp/portage/media-video/mplayer-1.0_rc4_p20100427/work/mplayer-1.0_rc4_p20100427'

>>> Failed to emerge media-video/mplayer-1.0_rc4_p20100427, Log file:

>>>  '/var/tmp/portage/media-video/mplayer-1.0_rc4_p20100427/temp/build.log'
Comment 14 Samuli Suominen (RETIRED) gentoo-dev 2010-04-28 17:45:55 UTC
yeah... bad mirrors

 28 Apr 2010; Samuli Suominen <ssuominen@gentoo.org>
 mplayer-1.0_rc4_p20100427.ebuild, mplayer-9999.ebuild:
 Revert SRC_URI change for svgalib_helper; mirrors still ship the broken
 copy.