<?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>65729</bug_id>
          
          <creation_ts>2004-09-28 14:42 0000</creation_ts>
          <short_desc>pingus doesn&apos;t merge properly with bash-3.0-r6 [with fix]</short_desc>
          <delta_ts>2004-09-30 04:38:29 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>2004.2</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>cbm@m.fsf.org</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          <cc>polynomial-c@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>cbm@m.fsf.org</who>
            <bug_when>2004-09-28 14:42:18 0000</bug_when>
            <thetext>After building, emerge pingus dies with the following error:
make[1]: Leaving directory `/var/tmp/portage/pingus-0.6.0-r1/work/pingus-0.6.0&apos;
mv: missing file argument
Try `mv --help&apos; for more information.
nls
man:
gzipping man page: pingus.6
.
.
.
(but processes finishes &quot;successfully&quot;)

An I ended up with a &quot;/usr/games/games&quot; dir with the pingus executable in their instead of in &quot;/usr/games/bin&quot; with some other games I have installed.

This is related to the &quot;POS install process&quot; :)

src_install() {
        make install DESTDIR=${D} || die &quot;make install failed&quot;
        # pos install process ... FIXME
        mv &quot;${D}/usr/games/&quot;{games,bin}
        cd &quot;${D}/usr/share/games&quot;
        use nls &amp;&amp; mv locale ../
        mv games/pingus .
        rm -rf games
        # end pos install process
        prepgamesdirs
}

The mv line expands correctly on my desktop system but not on my desktop:

LAPTOP:
nilok@belladonna ~ $ echo &quot;${D}/usr/games/&quot;{games,bin}
temp/usr/games/{games,bin}
nilok@belladonna ~ $ bash --version
GNU bash, version 3.00.13(1)-release (i686-pc-linux-gnu)
Copyright (C) 2004 Free Software Foundation, Inc.

DESKTOP:
nilok@aconite ~ $ echo &quot;${D}/usr/games/&quot;{games,bin}
temp/usr/games/games temp/usr/games/bin
nilok@aconite ~ $ bash --version
GNU bash, version 3.00.0(1)-release (i686-pc-linux-gnu)
Copyright (C) 2004 Free Software Foundation, Inc.
nilok@aconite ~ $

So I guess its a bash version thing.  Anyway, long story short, change the mv line from:
mv &quot;${D}/usr/games/&quot;{games,bin}
to
mv ${D}/usr/games/games ${D}/usr/games/bin
and stop trying to use fancy bash script that I don&apos;t understand ;-)

Also, should mv commands and stuff like that have a &quot;| die&quot; after them.  This bug wouldn&apos;t been a lot more obivious if they did...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>polynomial-c@gentoo.org</who>
            <bug_when>2004-09-29 18:49:47 0000</bug_when>
            <thetext>Created an attachment (id=40743)
bash-3.0-braceexpansion-fix.patch

Hi,

Aron Griffis already reported this bug to Chet Ramey (bash maintainer). And
Chet already provided a fix for this. It&apos;s short but not yet reported here, so
I do this :)

Poly</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2004-09-30 04:38:29 0000</bug_when>
            <thetext>straight-forward is better.  I just changed it to bash code that&apos;ll work with both versions.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>40743</attachid>
            <date>2004-09-29 18:49 0000</date>
            <desc>bash-3.0-braceexpansion-fix.patch</desc>
            <filename>bash-3.0-braceexpansion-fix.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">KioqIC4uL2Jhc2gtMy4wLXBhdGNoZWQvYnJhY2VzLmMJV2VkIFNlcCAgOCAxMTowNzo1MyAyMDA0
Ci0tLSBicmFjZXMuYwlGcmkgU2VwIDE3IDE4OjQyOjM2IDIwMDQKKioqKioqKioqKioqKioqCioq
KiA0MDMsNDA3ICoqKioKICAJICBwYXNzX25leHQgPSAxOwogIAkgIGkrKzsKISAJICBsZXZlbCsr
OwogIAkgIGNvbnRpbnVlOwogIAl9Ci0tLSA0MDMsNDA4IC0tLS0KICAJICBwYXNzX25leHQgPSAx
OwogIAkgIGkrKzsKISAJICBpZiAocXVvdGVkID09IDApCiEgCSAgICBsZXZlbCsrOwogIAkgIGNv
bnRpbnVlOwogIAl9Cg==
</data>        

          </attachment>
    </bug>

</bugzilla>