<?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>188930</bug_id>
          
          <creation_ts>2007-08-14 23:59 0000</creation_ts>
          <short_desc>app-shells/zsh-4.3.4 builds incorrectly with USE=pcre</short_desc>
          <delta_ts>2007-08-16 09:53:38 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>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>FreeBSD</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>angelos@gentoo.org</reporter>
          <assigned_to>usata@gentoo.org</assigned_to>
          <cc>bsd@gentoo.org</cc>
    
    <cc>toolchain@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>angelos@gentoo.org</who>
            <bug_when>2007-08-14 23:59:05 0000</bug_when>
            <thetext>ojbdump -p /bin/zsh|grep NEEDED and ldd /bin/zsh claim that zsh was linked against libzsh-4.3.4.so on FreeBSD, that file does not exist though, so when trying to execute zsh it cries:
/libexec/ld-elf.so.1: Shared object &quot;libzsh-4.3.4.so&quot; not found, required by &quot;zsh&quot;
this does not happen on linux (libzsh-4.3.4.so doesn&apos;t exist either, but zsh is not linked against it)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2007-08-15 14:31:41 0000</bug_when>
            <thetext>This only happens with USE=pcre
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2007-08-15 15:26:39 0000</bug_when>
            <thetext>The configure in zsh has been stripped of the [ and ] symbols

For example, in configure.ac we have this

case foo
  *-freebsd[3-9]*) ;;
esac

But autotools has changed this to

case foo
  *-freebsd3-9*) ;;
esac

So something here is baaadly broken :/</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2007-08-15 15:28:21 0000</bug_when>
            <thetext>CC&apos;ing toolchain to see if they have a clue</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2007-08-15 16:07:45 0000</bug_when>
            <thetext>Created an attachment (id=128188)
Append -rdynamic to EXTRA_LDFLAGS

Until toolchain or autotools or zsh upstream fixes, here&apos;s a patch to the ebuild to get around this issue.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-08-16 05:24:04 0000</bug_when>
            <thetext>ugh, no, please dont put that kind of stuff in the ebuild

what you reported is correct -- that is how the m4 language works

if you want to use [], you either need to use changequote, or cheat and double up the [] quoting

case foo
  *-freebsd[[3-9]]*) ;;
esac</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2007-08-16 09:53:38 0000</bug_when>
            <thetext>OK, I&apos;ve added a fix to the tree and I&apos;ll send it upstream.

usata, I&apos;ve also changed the ebuild a touch as ncurses isn&apos;t optional.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>128188</attachid>
            <date>2007-08-15 16:07 0000</date>
            <desc>Append -rdynamic to EXTRA_LDFLAGS</desc>
            <filename>zsh-freebsd.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHpzaC00LjMuNC5lYnVpbGQJMjAwNy0wNS0wMSAxMjozMTowMCArMDEwMAorKysgenNoLTQu
My40LmVidWlsZAkyMDA3LTA4LTE1IDE3OjA1OjQ4ICswMTAwCkBAIC00MCw4ICs0MCwxMyBAQAog
c3JjX2NvbXBpbGUoKSB7CiAJbG9jYWwgbXljb25mCiAKLQl1c2Ugc3RhdGljICYmIG15Y29uZj0i
JHtteWNvbmZ9IC0tZGlzYWJsZS1keW5hbWljIiBcCi0JCSYmIExERkxBR1M9IiR7TERGTEFHU30g
LXN0YXRpYyIKKwlpZiB1c2Ugc3RhdGljIDsgdGhlbgorCQlteWNvbmY9IiR7bXljb25mfSAtLWRp
c2FibGUtZHluYW1pYyIKKwkJTERGTEFHUz0iJHtMREZMQUdTfSAtc3RhdGljIgorCWVsc2UKKwkJ
IyBidWcgMTg4OTMwCisJCXVzZSBlbGliY19GcmVlQlNEICYmIGV4cG9ydCBFWFRSQV9MREZMQUdT
PSItcmR5bmFtaWMiCisJZmkKIAogCWVjb25mIFwKIAkJLS1iaW5kaXI9L2JpbiBcCg==
</data>        

          </attachment>
    </bug>

</bugzilla>