Subject: Re: pkg/33220: bash builtins cannot access bash symbols
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <joerg@britannica.bec.de>
List: pkgsrc-bugs
Date: 04/08/2006 19:15:04
The following reply was made to PR pkg/33220; it has been noted by GNATS.
From: joerg@britannica.bec.de
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/33220: bash builtins cannot access bash symbols
Date: Sat, 8 Apr 2006 21:13:34 +0200
--FL5UXtIhxfXey3p5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Sat, Apr 08, 2006 at 06:30:00PM +0000, taviso@sdf.lonestar.org wrote:
> >Description:
> The bash shell allows you to write builtins and store them in a shared
> object, which are then loaded using the enable command. On NetBSD, this
> doesnt work as symbols that bash exports, such as make_builtin_argv()
> and last_pid_created are not available. This works on three linux systems
> I tested.
I don't know what the Linux systems do, but bash on NetBSD gives exactly
the results the default build systems create. It does *not* export the
symbols at all.
Try the attached patch.
Joerg
--FL5UXtIhxfXey3p5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="bash-export.diff"
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/shells/bash/Makefile,v
retrieving revision 1.20
diff -u -r1.20 Makefile
--- Makefile 5 Mar 2006 16:27:28 -0000 1.20
+++ Makefile 8 Apr 2006 19:13:22 -0000
@@ -22,6 +22,7 @@
USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
MAKE_ENV+= INSTALL_SCRIPT=${INSTALL_SCRIPT:Q}
+MAKE_ENV+= LOCAL_LDFLAGS=-Wl,-export-dynamic
CPPFLAGS+= -DDEFAULT_PATH_VALUE="\"/usr/bin:/bin:/usr/pkg/bin:/usr/local/bin\""
TEST_TARGET= test
--FL5UXtIhxfXey3p5--