From d29b7059e0e3dacc3e051c310eabaecabe19a8d2 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 12 Nov 2010 22:58:45 +0100 Subject: updates and build fixes for a lot of packages compiled for ibmx40 with eglibc. --- .../heimdal/patches/patch-lib_roken_Makefile_in | 41 ++++++++++++++++++++++ .../patches/patch-lib_roken_Makefile_in.orig | 27 ++++++++++++++ package/heimdal/patches/patch-lib_roken_roken_h_in | 11 ++++++ 3 files changed, 79 insertions(+) create mode 100644 package/heimdal/patches/patch-lib_roken_Makefile_in create mode 100644 package/heimdal/patches/patch-lib_roken_Makefile_in.orig create mode 100644 package/heimdal/patches/patch-lib_roken_roken_h_in (limited to 'package/heimdal/patches') diff --git a/package/heimdal/patches/patch-lib_roken_Makefile_in b/package/heimdal/patches/patch-lib_roken_Makefile_in new file mode 100644 index 000000000..a702be6b7 --- /dev/null +++ b/package/heimdal/patches/patch-lib_roken_Makefile_in @@ -0,0 +1,41 @@ +--- heimdal-1.4.orig/lib/roken/Makefile.in 2010-09-13 09:24:23.000000000 +0200 ++++ heimdal-1.4/lib/roken/Makefile.in 2010-11-10 19:56:51.764995802 +0100 +@@ -726,9 +726,6 @@ getifaddrs-test$(EXEEXT): $(getifaddrs_t + hex-test$(EXEEXT): $(hex_test_OBJECTS) $(hex_test_DEPENDENCIES) + @rm -f hex-test$(EXEEXT) + $(LINK) $(hex_test_OBJECTS) $(hex_test_LDADD) $(LIBS) +-make-roken$(EXEEXT): $(make_roken_OBJECTS) $(make_roken_DEPENDENCIES) +- @rm -f make-roken$(EXEEXT) +- $(LINK) $(make_roken_OBJECTS) $(make_roken_LDADD) $(LIBS) + parse_bytes-test$(EXEEXT): $(parse_bytes_test_OBJECTS) $(parse_bytes_test_DEPENDENCIES) + @rm -f parse_bytes-test$(EXEEXT) + $(LINK) $(parse_bytes_test_OBJECTS) $(parse_bytes_test_LDADD) $(LIBS) +@@ -1977,18 +1974,18 @@ $(LTLIBOBJS) $(libroken_la_OBJECTS): rok + .hin.h: + cp $< $@ + +-@CROSS_COMPILE_FALSE@roken.h: make-roken$(EXEEXT) +-@CROSS_COMPILE_FALSE@ @./make-roken$(EXEEXT) > tmp.h ;\ +-@CROSS_COMPILE_FALSE@ if [ -f roken.h ] && cmp -s tmp.h roken.h ; then rm -f tmp.h ; \ +-@CROSS_COMPILE_FALSE@ else rm -f roken.h; mv tmp.h roken.h; fi ++roken.h: make-roken$(EXEEXT) ++ ./make-roken$(EXEEXT) > tmp.h ;\ ++ if [ -f roken.h ] && cmp -s tmp.h roken.h ; then rm -f tmp.h ; \ ++ else rm -f roken.h; mv tmp.h roken.h; fi + +-@CROSS_COMPILE_FALSE@make-roken.c: roken.h.in roken.awk +-@CROSS_COMPILE_FALSE@ $(AWK) -f $(srcdir)/roken.awk $(srcdir)/roken.h.in > make-roken.c ++make-roken.c: roken.h.in roken.awk ++ $(AWK) -f $(srcdir)/roken.awk $(srcdir)/roken.h.in > make-roken.c ++ ++make-roken$(EXEEXT): make-roken.c ++ $(HOSTCC) $(HOSTCFLAGS) -I$(top_builddir)/include -DHAVE_CONFIG_H \ ++ -o $@ $< + +-@CROSS_COMPILE_TRUE@roken.h: $(top_srcdir)/cf/roken-h-process.pl roken.h.in +-@CROSS_COMPILE_TRUE@ perl $(top_srcdir)/cf/roken-h-process.pl \ +-@CROSS_COMPILE_TRUE@ -c $(top_builddir)/include/config.h \ +-@CROSS_COMPILE_TRUE@ -p $(srcdir)/roken.h.in -o roken.h + + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. diff --git a/package/heimdal/patches/patch-lib_roken_Makefile_in.orig b/package/heimdal/patches/patch-lib_roken_Makefile_in.orig new file mode 100644 index 000000000..7d207e474 --- /dev/null +++ b/package/heimdal/patches/patch-lib_roken_Makefile_in.orig @@ -0,0 +1,27 @@ +--- heimdal-1.4.orig/lib/roken/Makefile.in 2010-09-13 09:24:23.000000000 +0200 ++++ heimdal-1.4/lib/roken/Makefile.in 2010-11-10 18:57:00.174995995 +0100 +@@ -1977,18 +1977,13 @@ $(LTLIBOBJS) $(libroken_la_OBJECTS): rok + .hin.h: + cp $< $@ + +-@CROSS_COMPILE_FALSE@roken.h: make-roken$(EXEEXT) +-@CROSS_COMPILE_FALSE@ @./make-roken$(EXEEXT) > tmp.h ;\ +-@CROSS_COMPILE_FALSE@ if [ -f roken.h ] && cmp -s tmp.h roken.h ; then rm -f tmp.h ; \ +-@CROSS_COMPILE_FALSE@ else rm -f roken.h; mv tmp.h roken.h; fi +- +-@CROSS_COMPILE_FALSE@make-roken.c: roken.h.in roken.awk +-@CROSS_COMPILE_FALSE@ $(AWK) -f $(srcdir)/roken.awk $(srcdir)/roken.h.in > make-roken.c ++roken.h: make-roken$(EXEEXT) ++ ./make-roken$(EXEEXT) > tmp.h ;\ ++ if [ -f roken.h ] && cmp -s tmp.h roken.h ; then rm -f tmp.h ; \ ++ else rm -f roken.h; mv tmp.h roken.h; fi + +-@CROSS_COMPILE_TRUE@roken.h: $(top_srcdir)/cf/roken-h-process.pl roken.h.in +-@CROSS_COMPILE_TRUE@ perl $(top_srcdir)/cf/roken-h-process.pl \ +-@CROSS_COMPILE_TRUE@ -c $(top_builddir)/include/config.h \ +-@CROSS_COMPILE_TRUE@ -p $(srcdir)/roken.h.in -o roken.h ++make-roken.c: roken.h.in roken.awk ++ $(AWK) -f $(srcdir)/roken.awk $(srcdir)/roken.h.in > make-roken.c + + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. diff --git a/package/heimdal/patches/patch-lib_roken_roken_h_in b/package/heimdal/patches/patch-lib_roken_roken_h_in new file mode 100644 index 000000000..59e9a2c52 --- /dev/null +++ b/package/heimdal/patches/patch-lib_roken_roken_h_in @@ -0,0 +1,11 @@ +--- heimdal-1.4.orig/lib/roken/roken.h.in 2010-09-13 09:23:34.000000000 +0200 ++++ heimdal-1.4/lib/roken/roken.h.in 2010-11-10 19:46:45.916683899 +0100 +@@ -524,7 +524,7 @@ ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL ge + ROKEN_LIB_FUNCTION char * ROKEN_LIB_CALL strerror(int); + #endif + +-#if (!defined(HAVE_STRERROR_R) && !defined(strerror_r)) || (!defined(STRERROR_R_PROTO_COMPATIBLE) && defined(HAVE_STRERROR_R)) ++#if ( !defined(HAVE_STRERROR_R) && !defined(strerror_r)) || (!defined(STRERROR_R_PROTO_COMPATIBLE) && defined(HAVE_STRERROR_R)) + int ROKEN_LIB_FUNCTION rk_strerror_r(int, char *, size_t); + #else + #define rk_strerror_r strerror_r -- cgit v1.2.3