2006-12-19 00:17:44 +01:00
|
|
|
Many changes to Makefiles/autogen and the like to make it build
|
|
|
|
on SUSE systems.
|
|
|
|
|
2011-05-16 18:07:44 +02:00
|
|
|
--- ./configure.ac.orig 2011-05-11 14:27:32.000000000 +0000
|
|
|
|
+++ ./configure.ac 2011-05-11 15:18:44.000000000 +0000
|
|
|
|
@@ -850,6 +850,7 @@ arm*) RPMCANONCOLOR=0; RPMCANONARCH=arm
|
2008-09-12 20:37:28 +02:00
|
|
|
mipsel*) RPMCANONCOLOR=0; RPMCANONARCH=mipsel ;;
|
|
|
|
mips*) RPMCANONCOLOR=0; RPMCANONARCH=mips ;;
|
|
|
|
m68k*) RPMCANONCOLOR=0; RPMCANONARCH=m68k ;;
|
|
|
|
+parisc*|hppa*) RPMCANONCOLOR=0; RPMCANONARCH=hppa ;;
|
|
|
|
sh3*) RPMCANONCOLOR=0; RPMCANONARCH=sh3 ;;
|
|
|
|
sh4*) RPMCANONCOLOR=0; RPMCANONARCH=sh4 ;;
|
|
|
|
*) RPMCANONCOLOR=0; RPMCANONARCH=unknown ;;
|
2011-05-16 18:07:44 +02:00
|
|
|
@@ -860,6 +861,7 @@ esac
|
2008-09-12 20:37:28 +02:00
|
|
|
RPMCANONVENDOR="$build_vendor"
|
|
|
|
case "${build_vendor}" in
|
2009-08-28 15:54:03 +02:00
|
|
|
unknown|pc|ibm|redhat|pld|mandrake|conectiva|lvr|yellowdog|caos|suse)
|
2008-09-12 20:37:28 +02:00
|
|
|
+ RPMCANONVENDOR=suse
|
|
|
|
test -f /etc/redhat-release && RPMCANONVENDOR=redhat
|
2009-08-28 15:54:03 +02:00
|
|
|
test -f /etc/SuSE-release && RPMCANONVENDOR=suse
|
2008-09-12 20:37:28 +02:00
|
|
|
test -f /etc/pld-release && RPMCANONVENDOR=pld
|
2011-05-16 18:07:44 +02:00
|
|
|
@@ -872,6 +874,9 @@ unknown|pc|ibm|redhat|pld|mandrake|conec
|
2008-09-12 20:37:28 +02:00
|
|
|
esac
|
2009-08-28 15:54:03 +02:00
|
|
|
RPMCANONOS="$host_os_noversion"
|
|
|
|
RPMCANONGNU="$host_os_gnu"
|
2008-09-12 20:37:28 +02:00
|
|
|
+if test "$RPMCANONVENDOR" = suse ; then
|
|
|
|
+ RPMCANONCOLOR=0
|
|
|
|
+fi
|
|
|
|
AC_SUBST(RPMCANONCOLOR)
|
2009-08-28 15:54:03 +02:00
|
|
|
AC_SUBST(RPMCANONARCH)
|
|
|
|
AC_SUBST(RPMCANONVENDOR)
|
2011-05-16 18:07:44 +02:00
|
|
|
--- ./db3/configure.orig 2010-12-03 12:11:57.000000000 +0000
|
|
|
|
+++ ./db3/configure 2011-05-11 15:18:44.000000000 +0000
|
2008-10-06 16:13:13 +02:00
|
|
|
@@ -10,9 +10,9 @@ rm -f config.cache
|
|
|
|
# XXX edit CFLAGS= ... out of invocation args ???
|
|
|
|
ARGS="`echo $* | sed -e 's% [^ ]*CFLAGS=[^ ]*%%' -e 's% -[^-][^ ]*%%g' -e 's% --param=[^ ]*%%g' -e 's%--cache-file=.*$%%'`"
|
|
|
|
|
|
|
|
-CC="$CC" CFLAGS="$CFLAGS" $db_dist/configure $ARGS \
|
|
|
|
+CC="$CC" CFLAGS="$CFLAGS" $db_dist/configure \
|
2010-03-26 11:56:28 +01:00
|
|
|
--enable-shared --enable-static \
|
|
|
|
- --with-uniquename=_rpmdb --srcdir=$db_dist
|
2008-10-06 16:13:13 +02:00
|
|
|
+ --with-uniquename=_rpmdb --srcdir=$db_dist $ARGS
|
|
|
|
|
|
|
|
mv Makefile Makefile.orig
|
|
|
|
cat Makefile.orig | sed -e '/^install[:-]/c\
|
2011-05-16 18:07:44 +02:00
|
|
|
--- ./installplatform.orig 2010-12-03 12:11:57.000000000 +0000
|
|
|
|
+++ ./installplatform 2011-05-11 15:18:44.000000000 +0000
|
2011-09-29 01:49:33 +02:00
|
|
|
@@ -19,7 +19,7 @@
|
|
|
|
case "$arch" in
|
|
|
|
i[3456]86|pentium[34]|athlon|geode) SUBSTS='s_i386_i386_ s_i386_i486_ s_i386_i586_ s_i386_i686_ s_i386_pentium3_ s_i386_pentium4_ s_i386_athlon_ s_i386_geode_' ;;
|
|
|
|
alpha*) SUBSTS='s_alpha_alpha_ s_alpha_alphaev5_ s_alpha_alphaev56_ s_alpha_alphapca56_ s_alpha_alphaev6_ s_alpha_alphaev67_' ;;
|
|
|
|
- arm*) SUBSTS='s_arm_arm_ s_arm_armv3l_ s_arm_armv4l_ s_arm_armv4tl_ s_arm_armv5tel_ s_arm_armv5tejl_ s_arm_armv6l_ s_arm_armv7l_' ;;
|
|
|
|
+ arm*) SUBSTS='s_arm_arm_ s_arm_armv3l_ s_arm_armv4l_ s_arm_armv4tl_ s_arm_armv5tel_ s_arm_armv5tejl_ s_arm_armv6l_ s_arm_armv7l_ s_arm_armv7hl_' ;;
|
|
|
|
sh4*) SUBSTS='s_sh4_sh4_ s_sh4_sh4a_' ;;
|
|
|
|
sparc*) SUBSTS='s_sparc\(64\|64v\|v9v\|v9\)_sparc_ s_sparc64_sparcv9_;s_sparc\([^v]\|$\)_sparcv9\1_ s_sparcv9_sparc64_;s_sparc\([^6]\|$\)_sparc64\1_' ;;
|
|
|
|
powerpc*|ppc*) SUBSTS='s_ppc64_ppc_ s_ppc\([^6ip]\|$\)_ppc64\1_ s_ppc\([^6ip]\|$\)_ppciseries_ s_ppc\([^6ip]\|$\)_ppcpseries_ s_ppc\([^6ip]\|$\)_ppc64iseries_ s_ppc\([^6ip]\|$\)_ppc64pseries_' ;;
|
|
|
|
@@ -47,9 +47,9 @@
|
2009-08-28 15:54:03 +02:00
|
|
|
ARCH_INSTALL_POST='%{nil}'
|
|
|
|
case "${ARCH}-${OS}" in
|
|
|
|
sparc64*-linux) LIB=lib64 ;;
|
|
|
|
- s390x-linux) LIB=lib64 ;;
|
|
|
|
- ppc64-linux|powerpc64-linux) LIB=lib64 ;;
|
|
|
|
- x86_64-linux|amd64-linux|ia32e-linux) LIB=lib64 ;;
|
|
|
|
+ s390x-linux) ARCH_INSTALL_POST=${pkglibdir}/brp-lib64-linux ; LIB=lib64 ;;
|
|
|
|
+ ppc64-linux|powerpc64-linux) ARCH_INSTALL_POST=${pkglibdir}/brp-lib64-linux ; LIB=lib64 ;;
|
|
|
|
+ x86_64-linux|amd64-linux|ia32e-linux) ARCH_INSTALL_POST=${pkglibdir}/brp-lib64-linux ; LIB=lib64 ;;
|
|
|
|
*) LIB=lib;;
|
2008-10-06 16:13:13 +02:00
|
|
|
esac
|
|
|
|
|
2011-09-29 01:49:33 +02:00
|
|
|
@@ -129,6 +130,9 @@
|
2008-10-06 16:13:13 +02:00
|
|
|
apple)
|
|
|
|
VENDORSED='-e s,^@apple@,,'
|
|
|
|
;;
|
|
|
|
+ suse)
|
|
|
|
+ VENDORSED='-e s,^@SuSE@,,'
|
|
|
|
+ ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
CANONARCH="`echo $ARCH|sed -e "$canonarch_sed"`"
|