Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18002 - fetching pcmcia-cs goes wrong for linux-wlan-ng-0.2.0.ebuild
Summary: fetching pcmcia-cs goes wrong for linux-wlan-ng-0.2.0.ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Peter Johanson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-22 11:18 UTC by Rigo
Modified: 2003-11-05 16:08 UTC (History)
2 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 Rigo 2003-03-22 11:18:43 UTC
<SNIP>
emerge linux-wlan-ng
Calculating dependencies ...done!
>>> emerge (1 of 1) net-wireless/linux-wlan-ng-0.2.0 to /

>>> Downloading
http://flow.dl.sourceforge.net/sourceforge/pcmcia-cs/pcmcia-cs-No.tar.gz
--17:02:03-- 
http://flow.dl.sourceforge.net/sourceforge/pcmcia-cs/pcmcia-cs-No.tar.gz
           => `/var/tmp/distfiles/pcmcia-cs-No.tar.gz'
Resolving flow.dl.sourceforge.net... done.
Connecting to flow.dl.sourceforge.net[202.129.95.174]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
17:02:03 ERROR 404: Not Found.
 
!!! Couldn't download pcmcia-cs-No.tar.gz. Aborting.
</SNIP>



Reproducible: Always
Steps to Reproduce:
1. emerge -f linux-wlan-ng
2. ..
3. Couldn't download pcmcia-cs-No.tar.gz. Aborting.

Actual Results:  
Guess portage doesn't like overquoting, like me :D..

Expected Results:  
Fetch some sources...

diff -ur linux-wlan-ng-0.2.0.ebuild linux-wlan-ng-0.2.0-r1.ebuild
--- linux-wlan-ng-0.2.0.ebuild  2003-03-09 00:21:14.000000000 +0100
+++ linux-wlan-ng-0.2.0-r1.ebuild       2003-03-22 17:05:08.000000000 +0100
@@ -4,7 +4,7 @@
  
 IUSE="apm build nocardbus pcmcia pnp trusted usb"
  
-PCMCIA_VERSION="`/sbin/cardmgr -V 2>&1 | /usr/bin/cut -f3 -d' '`"
+PCMCIA_VERSION=`/sbin/cardmgr -V 2>&1 | /usr/bin/cut -f3 -d' '`
 PCMCIA_CS="pcmcia-cs-${PCMCIA_VERSION}"
 PCMCIA_DIR="${WORKDIR}/${PCMCIA_CS}"


'Four' quotes less :)
Comment 1 Chase 2003-03-24 12:32:02 UTC
I believe the first fix posted still has a problem as a ${S} is used later in the script is never created. The fix that worked for me is:

diff -ur linux-wlan-ng-0.2.0.ebuild linux-wlan-ng-0.2.0-r1.ebuild
--- linux-wlan-ng-0.2.0.ebuild  2003-03-08 17:21:14.000000000 -0600
+++ linux-wlan-ng-0.2.0-r1.ebuild       2003-03-24 11:10:08.000000000 -0600
@@ -8,8 +8,11 @@
 PCMCIA_CS="pcmcia-cs-${PCMCIA_VERSION}"
 PCMCIA_DIR="${WORKDIR}/${PCMCIA_CS}"
  
+MY_P=${P/_/-}
+S=${WORKDIR}/${MY_P}
+
 DESCRIPTION="The linux-wlan Project"
-SRC_URI="ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/${P}.tar.gz
+SRC_URI="ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/${MY_P}.tar.gz
                pcmcia? ( mirror://sourceforge/pcmcia-cs/${PCMCIA_CS}.tar.gz )"
  
 HOMEPAGE="http://linux-wlan.org"
Comment 2 Peter Johanson (RETIRED) gentoo-dev 2003-03-26 18:46:53 UTC
I've changed the linux-wlan-ng-0.2.0 ebuild to no longer bother w/ the cardctl/cut stuff. Portage is fickle about bash stuff not in a section, and acts differently if emerging as opposed to doing "ebuild foo.ebuild unpack". Now uses has_version to determine which pcmcia to build with. Please test this to make sure it works for you.  As for the ${S}, this should not be necessary, as the directory created is ${PORT_TEMP}/linux-wlan-ng-0.2.0 as it should be
Comment 3 Rigo 2003-03-27 08:24:36 UTC
Tested...Didn't like it :)

<SNIP>
lappy root # emerge linux-wlan-ng
  Calculating dependencies ...done!
>>> emerge (1 of 1) net-wireless/linux-wlan-ng-0.2.0 to /
   >>> Downloading ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/distfiles/pcmcia-cs-.tar.gz
</SNIP>

# emerge -p pcmcia-cs
 
These are the packages that I would merge, in order:
 
Calculating dependencies ...done!
[ebuild   R  ] sys-apps/pcmcia-cs-3.2.4

Rogi
Comment 4 Aron Griffis (RETIRED) gentoo-dev 2003-11-05 16:08:20 UTC
Looking at the ebuilds, I can see this is no longer a problem.  Closing the
bug.  Please re-open if the problem persists for you with the current ebuilds.