Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2534 - dev-libs/libusb downloads an HTML page instead of a gzipped file
Summary: dev-libs/libusb downloads an HTML page instead of a gzipped file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Chad Huneycutt (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-07 12:14 UTC by Michael Thompson
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

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


Attachments
Sorry, patch didn't paste over correctly. Here it is. (libusb-0.1.5.ebuild.patch,387 bytes, patch)
2002-05-07 12:20 UTC, Michael Thompson
Details | Diff
New digest if you're interested. (digest-libusb-0.1.5,64 bytes, application/octet-stream)
2002-05-07 12:23 UTC, Michael Thompson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Thompson 2002-05-07 12:14:26 UTC
The line:

SRC_URI="http://prdownloads.sourceforge.net/libusb/${P}.tar.gz"

in 
/usr/portage/dev-libs/libusb/libusb-0.1.5.ebuild is incorrect.  This link takes one to a list 
of mirrors, despite the ".gz" extension.  Portage is downloading an HTML page and choking when 
attempting to use it:

# emerge libusb
Calculating dependencies ...done!
>>> emerge dev-
libs/libusb-0.1.5 to /

>>> Downloading 
http://www.ibiblio.org/gentoo/distfiles/libusb-0.1.5.tar.gz
--11:50:53--  
http://www.ibiblio.org/gentoo/distfiles/libusb-0.1.5.tar.gz
           => 
`/usr/portage/distfiles/libusb-0.1.5.tar.gz'
Resolving www.ibiblio.org... 
done.
Connecting to www.ibiblio.org[152.2.210.81]:80... connected.
HTTP request sent, 
awaiting response... 200 OK
Length: 8,487 [application/x-
tar]

100%[====================================>] 8,487         60.50K/s    ETA 
00:00

11:50:53 (60.50 KB/s) - `/usr/portage/distfiles/libusb-0.1.5.tar.gz' saved 
[8487/8487]


>>> Downloading http://prdownloads.sourceforge.net/libusb/libusb-
0.1.5.tar.gz
--11:50:53--  http://prdownloads.sourceforge.net/libusb/libusb-
0.1.5.tar.gz
           => `/usr/portage/distfiles/libusb-0.1.5.tar.gz.1'
Resolving 
prdownloads.sourceforge.net... done.
Connecting to 
prdownloads.sourceforge.net[216.136.171.200]:80... connected.
HTTP request sent, 
awaiting response... 200 OK
Length: unspecified [text/html]

    [ <=>                                 ] 8,487         
96.37K/s

11:50:53 (96.37 KB/s) - `/usr/portage/distfiles/libusb-0.1.5.tar.gz.1' saved 
[8487]

!!! Couldn't download libusb-0.1.5.tar.gz.  Aborting.
!!! emerge aborting on  
/usr/portage/dev-libs/libusb/libusb-0.1.5.ebuild .

Here is a patch to the ebuild (cut and 
paste):
-----
--- libusb-0.1.5.ebuild     Tue May  7 11:52:55 2002
+++ libusb-0.1.5.ebuild     Tue May  7 
12:03:51 2002
@@ -5,7 +5,7 @@

 S=${WORKDIR}/${P}
 DESCRIPTION="Userspace access to USB 
devices"
-
SRC_URI="http://prdownloads.sourceforge.net/libusb/${P}.tar.gz"
+SRC_URI="http://unc.dl.sourceforge.net/sourceforge/libusb/${P}.tar.gz"
 
HOMEPAGE="http://libusb.sourceforge.net"

 DEPEND="virtual/glibc"
-----

The copy of 
the file on Gentoo's ibiblio distribution site is incorrect and must be replaced with the correct 
version.
Comment 1 Michael Thompson 2002-05-07 12:20:20 UTC
Created attachment 879 [details, diff]
Sorry, patch didn't paste over correctly.  Here it is.
Comment 2 Michael Thompson 2002-05-07 12:23:28 UTC
Created attachment 880 [details]
New digest if you're interested.
Comment 3 Chad Huneycutt (RETIRED) gentoo-dev 2002-05-07 23:37:09 UTC
sourceforge recently changed their http download locations.  We are currently
working on all the bad ebuilds.  Thanks for reporting this one