Bug 188930 - app-shells/zsh-4.3.4 builds incorrectly with USE=pcre
Bug#: 188930 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: FreeBSD Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: usata@gentoo.org Reported By: angelos@gentoo.org
Component: Applications
URL: 
Summary: app-shells/zsh-4.3.4 builds incorrectly with USE=pcre
Keywords:  
Status Whiteboard: 
Opened: 2007-08-14 23:59 0000
Description:   Opened: 2007-08-14 23:59 0000
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 "libzsh-4.3.4.so" not found, required by
"zsh"
this does not happen on linux (libzsh-4.3.4.so doesn't exist either, but zsh is
not linked against it)

------- Comment #1 From Roy Marples (RETIRED) 2007-08-15 14:31:41 0000 -------
This only happens with USE=pcre

------- Comment #2 From Roy Marples (RETIRED) 2007-08-15 15:26:39 0000 -------
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 :/

------- Comment #3 From Roy Marples (RETIRED) 2007-08-15 15:28:21 0000 -------
CC'ing toolchain to see if they have a clue

------- Comment #4 From Roy Marples (RETIRED) 2007-08-15 16:07:45 0000 -------
Created an attachment (id=128188) [details]
Append -rdynamic to EXTRA_LDFLAGS

Until toolchain or autotools or zsh upstream fixes, here's a patch to the
ebuild to get around this issue.

------- Comment #5 From SpanKY 2007-08-16 05:24:04 0000 -------
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

------- Comment #6 From Roy Marples (RETIRED) 2007-08-16 09:53:38 0000 -------
OK, I've added a fix to the tree and I'll send it upstream.

usata, I've also changed the ebuild a touch as ncurses isn't optional.