genode/repos/ports/src/noux-pkg/bash/build.patch
Norman Feske ca971bbfd8 Move repositories to 'repos/' subdirectory
This patch changes the top-level directory layout as a preparatory
step for improving the tools for managing 3rd-party source codes.
The rationale is described in the issue referenced below.

Issue #1082
2014-05-14 16:08:00 +02:00

72 lines
2.3 KiB
Diff

diff --git a/Makefile.in b/Makefile.in
index f01d49c..4f20534 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -753,7 +753,7 @@ install: .made installdirs
-( cd $(PO_DIR) ; $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) $@ )
install-strip:
- $(MAKE) $(MFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' \
+ $(MAKE) $(MFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s --strip-program=$(STRIP)' \
prefix=${prefix} exec_prefix=${exec_prefix} \
DESTDIR=$(DESTDIR) install
diff --git a/builtins/Makefile.in b/builtins/Makefile.in
index 42f8cb8..ba7d855 100644
--- a/builtins/Makefile.in
+++ b/builtins/Makefile.in
@@ -68,7 +68,7 @@ LDFLAGS = @LDFLAGS@ $(LOCAL_LDFLAGS) $(CFLAGS)
LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@ $(LOCAL_LDFLAGS) $(CFLAGS_FOR_BUILD)
LOCAL_LDFLAGS = @LOCAL_LDFLAGS@
#LIBS_FOR_BUILD = @LIBS_FOR_BUILD@
-LIBS_FOR_BUILD = $(LIBS)
+#LIBS_FOR_BUILD = $(LIBS)
BASHINCDIR = ${topdir}/include
diff --git a/configure b/configure
index 875bbbf..19ce633 100755
--- a/configure
+++ b/configure
@@ -28398,8 +28398,8 @@ if test "${bash_cv_getcwd_malloc+set}" = set; then
else
if test "$cross_compiling" = yes; then
{ $as_echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
-$as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
- bash_cv_getcwd_malloc=no
+$as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to yes" >&2;}
+ bash_cv_getcwd_malloc=yes
else
cat >conftest.$ac_ext <<_ACEOF
diff --git a/lib/intl/l10nflist.c b/lib/intl/l10nflist.c
index 9f02487..8b0e94e 100644
--- a/lib/intl/l10nflist.c
+++ b/lib/intl/l10nflist.c
@@ -33,7 +33,7 @@
#include <string.h>
#if defined _LIBC || defined HAVE_ARGZ_H
-# include <argz.h>
+//# include <argz.h>
#endif
#include <ctype.h>
#include <sys/types.h>
diff --git a/shell.c b/shell.c
index 8dadb0b..1cadd61 100644
--- a/shell.c
+++ b/shell.c
@@ -364,6 +364,12 @@ main (argc, argv, env)
env = environ;
#endif /* __OPENNT */
+ /*
+ * Noux: Overcome missing declaration of 'env' that gets tiggered by the
+ * 'NO_MAIN_ENV_ARG' definition.
+ */
+ char **env = environ;
+
USE_VAR(argc);
USE_VAR(argv);
USE_VAR(env);