Bug 201959

Summary: shells/bash: Missing -Wl,-export-dynamic breaks "enable -f"
Product: Ports & Packages Reporter: Conrad Meyer <cem>
Component: Individual Port(s)Assignee: Emanuel Haupt <ehaupt>
Status: Closed FIXED    
Severity: Affects Some People CC: cem
Priority: --- Flags: bugzilla: maintainer-feedback? (ehaupt)
Version: Latest   
Hardware: Any   
OS: Any   

Description Conrad Meyer freebsd_committer 2015-07-29 05:19:26 UTC
bash is missing -Wl,-export-dynamic. Without it, bash extensions can't use symbols provided by the program ("enable -f").

Here's a patch:

--- a/shells/bash/Makefile
+++ b/shells/bash/Makefile
@@ -55,6 +55,7 @@ CONFIGURE_ARGS+=      --without-bash-malloc \
                        --enable-disabled-builtins

 CFLAGS+=               -DUSE_MKTEMP=1 -DUSE_MKSTEMP=1
+CFLAGS+=               -Wl,-export-dynamic

 .if empty(PKGNAMESUFFIX)
 CONFLICTS+=            bash-static-[0-9]*
Comment 1 Conrad Meyer freebsd_committer 2015-07-29 05:23:20 UTC
https://reviews.freebsd.org/D3231
Comment 2 commit-hook freebsd_committer 2015-07-30 18:51:15 UTC
A commit references this bug:

Author: cem
Date: Thu Jul 30 18:50:19 UTC 2015
New revision: 393258
URL: https://svnweb.freebsd.org/changeset/ports/393258

Log:
  bash: Export symbols for "enable -f"

  PR:		201959
  Reviewed by:	ehaupt
  Approved by:	markj (mentor)
  Sponsored by:	EMC / Isilon Storage Division
  Differential Revision:	https://reviews.freebsd.org/D3231

Changes:
  head/shells/bash/Makefile