diff options
author | William Pitcock <nenolod@dereferenced.org> | 2013-04-25 14:21:49 -0500 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2013-04-25 14:21:49 -0500 |
commit | 221ec6db135e7fbecabb7cb3992de0a0cf195c59 (patch) | |
tree | c2b25bac11637e78a560059051b370960a396fb2 /testing/rinse/rinse-set-rpm-platform.patch | |
parent | 8066c7dee0d672fb053049276aaee402d56fb5cc (diff) | |
download | aports-221ec6db135e7fbecabb7cb3992de0a0cf195c59.tar.bz2 aports-221ec6db135e7fbecabb7cb3992de0a0cf195c59.tar.xz |
testing/rinse: set /etc/rpm/platform properly on redhat derivatives
Diffstat (limited to 'testing/rinse/rinse-set-rpm-platform.patch')
-rw-r--r-- | testing/rinse/rinse-set-rpm-platform.patch | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/testing/rinse/rinse-set-rpm-platform.patch b/testing/rinse/rinse-set-rpm-platform.patch new file mode 100644 index 0000000000..a5eae642b8 --- /dev/null +++ b/testing/rinse/rinse-set-rpm-platform.patch @@ -0,0 +1,100 @@ +--- rinse-2.0.1.orig/scripts/centos-5/post-install.sh ++++ rinse-2.0.1/scripts/centos-5/post-install.sh +@@ -10,6 +10,17 @@ + exit + fi + ++# specify platform ++echo " post-install.sh : arch is ${ARCH}" ++if [ "${ARCH}" = "amd64" -o "${ARCH}" = "x86_64" ]; then ++ arch=x86_64 ++ echo $arch-redhat-linux > ${prefix}/etc/rpm/platform ++fi ++if [ "${ARCH}" = "i386" ]; then ++ arch=i686 ++ echo $arch-redhat-linux > ${prefix}/etc/rpm/platform ++fi ++ + # rpm's can now be removed + rm -f ${prefix}/*.rpm + +--- rinse-2.0.1.orig/scripts/centos-6/post-install.sh ++++ rinse-2.0.1/scripts/centos-6/post-install.sh +@@ -10,6 +10,17 @@ + exit + fi + ++# specify platform ++echo " post-install.sh : arch is ${ARCH}" ++if [ "${ARCH}" = "amd64" -o "${ARCH}" = "x86_64" ]; then ++ arch=x86_64 ++ echo $arch-redhat-linux > ${prefix}/etc/rpm/platform ++fi ++if [ "${ARCH}" = "i386" ]; then ++ arch=i686 ++ echo $arch-redhat-linux > ${prefix}/etc/rpm/platform ++fi ++ + # rpm's can now be removed + rm -f ${prefix}/*.rpm + +--- rinse-2.0.1.orig/scripts/rhel-5/post-install.sh ++++ rinse-2.0.1/scripts/rhel-5/post-install.sh +@@ -10,6 +10,17 @@ + exit + fi + ++# specify platform ++echo " post-install.sh : arch is ${ARCH}" ++if [ "${ARCH}" = "amd64" -o "${ARCH}" = "x86_64" ] ; then ++ arch=x86_64 ++ echo $arch-redhat-linux > ${prefix}/etc/rpm/platform ++fi ++if [ "${ARCH}" = "i386" ]; then ++ arch=i686 ++ echo $arch-redhat-linux > ${prefix}/etc/rpm/platform ++fi ++ + # rpm's can now be removed + rm -f ${prefix}/*.rpm + +--- rinse-2.0.1.orig/scripts/slc-5/post-install.sh ++++ rinse-2.0.1/scripts/slc-5/post-install.sh +@@ -10,6 +10,17 @@ + exit + fi + ++# specify platform ++echo " post-install.sh : arch is ${ARCH}" ++if [ "${ARCH}" = "amd64" -o "${ARCH}" = "x86_64" ] ; then ++ arch=x86_64 ++ echo $arch-redhat-linux > ${prefix}/etc/rpm/platform ++fi ++if [ "${ARCH}" = "i386" ]; then ++ arch=i686 ++ echo $arch-redhat-linux > ${prefix}/etc/rpm/platform ++fi ++ + # rpm's can now be removed + rm -f ${prefix}/*.rpm + +--- rinse-2.0.1.orig/scripts/slc-6/post-install.sh ++++ rinse-2.0.1/scripts/slc-6/post-install.sh +@@ -10,6 +10,17 @@ + exit + fi + ++# specify platform ++echo " post-install.sh : arch is ${ARCH}" ++if [ "${ARCH}" = "amd64" -o "${ARCH}" = "x86_64" ] ; then ++ arch=x86_64 ++ echo $arch-redhat-linux > ${prefix}/etc/rpm/platform ++fi ++if [ "${ARCH}" = "i386" ]; then ++ arch=i686 ++ echo $arch-redhat-linux > ${prefix}/etc/rpm/platform ++fi ++ + # rpm's can now be removed + rm -f ${prefix}/*.rpm + |