<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>115428</bug_id>
          
          <creation_ts>2005-12-13 09:21 0000</creation_ts>
          <short_desc>Can&apos;t emerge ieee80211-1.1.6, when using dash shell, due to dependency on bash</short_desc>
          <delta_ts>2006-01-06 04:26:49 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>2005.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>rodas@rocketmail.com</reporter>
          <assigned_to>mobile@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>rodas@rocketmail.com</who>
            <bug_when>2005-12-13 09:21:41 0000</bug_when>
            <thetext>When using dash as a &quot;sh&quot;, instead of bash, emerging ieee80211-1.1.6 doesn&apos;t
work due to a syntax miss interpretation of this code block in ieee80211-1.1.6
Makefile:

check_old:
        @. remove-old $(KSRC) || \
                (echo -e \
&quot;\n Old ieee80211 references found.  In order to build the ieee80211\n&quot;\
&quot;subsystem, prior versions must first be removed.  You can perform\n&quot;\
&quot;this task by running this makefile as root via:\n\n&quot;\
&quot;\t% sudo make check_old\n\n&quot;\
&quot;and answering Y to remove the file references.\n\n Aborting make.\n&quot; &amp;&amp; \
                        exit 1)

*** Output of make outside the emerge ***
lap ieee80211-1.1.6 # rm /bin/sh
lap ieee80211-1.1.6 # ln -sf /bin/dash /bin/sh
lap ieee80211-1.1.6 # make
.: 1: remove-old: not found
make: *** [check_old] Error 2
lap ieee80211-1.1.6 #
lap ieee80211-1.1.6 # ls -l remove-old
-rw-r--r--  1 xxxx users 1509 Oct 21 18:29 remove-old
lap ieee80211-1.1.6 # 

*** Output of emerge: ***
# emerge -av ieee80211

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] net-wireless/ieee80211-1.1.6  -debug 0 kB

Total size of downloads: 0 kB

Do you want me to merge these packages? [Yes/No] Yes
&gt;&gt;&gt; emerge (1 of 1) net-wireless/ieee80211-1.1.6 to /
&gt;&gt;&gt; md5 files   ;-) ieee80211-1.0.3.ebuild
&gt;&gt;&gt; md5 files   ;-) ieee80211-1.0.3-r1.ebuild
&gt;&gt;&gt; md5 files   ;-) ieee80211-1.1.6.ebuild
&gt;&gt;&gt; md5 files   ;-) ieee80211-1.0.2.ebuild
&gt;&gt;&gt; md5 files   ;-) ieee80211-1.1.5.ebuild
&gt;&gt;&gt; md5 files   ;-) ieee80211-1.0.3-r2.ebuild
&gt;&gt;&gt; md5 files   ;-) ieee80211-1.1.5-r1.ebuild
&gt;&gt;&gt; md5 files   ;-) ieee80211-1.0.1.ebuild
&gt;&gt;&gt; md5 files   ;-) files/ieee80211-1.0.3-broadcast.patch
&gt;&gt;&gt; md5 files   ;-) files/ieee80211-1.1.5-broadcast.patch
&gt;&gt;&gt; md5 files   ;-) files/digest-ieee80211-1.0.1
&gt;&gt;&gt; md5 files   ;-) files/digest-ieee80211-1.0.2
&gt;&gt;&gt; md5 files   ;-) files/digest-ieee80211-1.0.3
&gt;&gt;&gt; md5 files   ;-) files/digest-ieee80211-1.1.5
&gt;&gt;&gt; md5 files   ;-) files/digest-ieee80211-1.1.6
&gt;&gt;&gt; md5 files   ;-) files/ieee80211-1.1.5-we18.patch
&gt;&gt;&gt; md5 files   ;-) files/remove-old
&gt;&gt;&gt; md5 files   ;-) files/digest-ieee80211-1.0.3-r1
&gt;&gt;&gt; md5 files   ;-) files/digest-ieee80211-1.0.3-r2
&gt;&gt;&gt; md5 files   ;-) files/digest-ieee80211-1.1.5-r1
&gt;&gt;&gt; md5 files   ;-) files/ieee80211-1.0.3-keep_restricted_bit.patch
&gt;&gt;&gt; md5 files   ;-) files/ieee80211-1.0.3-open_frag.patch
&gt;&gt;&gt; md5 src_uri ;-) ieee80211-1.1.6.tgz
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.14-gentoo-r4
 * Checking for suitable kernel configuration options:
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; Unpacking ieee80211-1.1.6.tgz to /var/tmp/portage/ieee80211-1.1.6/work
&gt;&gt;&gt; Source unpacked.
 * Preparing ieee80211 module
.: 1: remove-old: not found
make: *** [check_old] Error 2

!!! ERROR: net-wireless/ieee80211-1.1.6 failed.
!!! Function linux-mod_src_compile, Line 505, Exitcode 2
!!! Unable to make                                  KSRC=/usr/src/linux
KSRC_OUTPUT=/usr/src/linux all.
!!! If you need support, post the topmost build error, NOT this status message.

#

Workaround:

Reverting to bash fixes the problem. Looking at remove-old code we can see it
forcing the use of: #!/bin/bash -x.
So maybe the ebuild could force the use of /bin/bash, during make, instead of
relying in /bin/sh.

Didn&apos;t check if this issue occurs with other shells cause I only use bash &amp; dash.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>henrik@brixandersen.dk</who>
            <bug_when>2005-12-21 03:37:31 0000</bug_when>
            <thetext>I&apos;ve fixed this in net-wireless/ieee80211-1.1.7_pre2 which is available from my overlay at http://dev.gentoo.org/~brix/files/overlay/

I&apos;m currently waiting for upstream to accept my patch.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>henrik@brixandersen.dk</who>
            <bug_when>2005-12-21 03:58:17 0000</bug_when>
            <thetext>Upstream bug report: http://www.bughost.org/bugzilla/show_bug.cgi?id=872</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>henrik@brixandersen.dk</who>
            <bug_when>2005-12-28 02:49:33 0000</bug_when>
            <thetext>Upstream has accepted my patch. This will be fixed in the next release.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>henrik@brixandersen.dk</who>
            <bug_when>2006-01-06 04:26:49 0000</bug_when>
            <thetext>Fixed in net-wireless/ieee80211-1.1.7, thank you for reporting this.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>