summaryrefslogtreecommitdiffstats
path: root/ubuntu/maverick/dependencies/libr/debian/patches/001-fix-arm-builds.diff
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-12-27 08:15:49 -0600
committerSlávek Banko <slavek.banko@axis.cz>2018-07-14 15:38:40 +0200
commitd1f8a4b87e7fe68867dbfac671d9fecd5c76ab4c (patch)
tree7e491fbedba17c2261d9e759eebfeb0bad910e08 /ubuntu/maverick/dependencies/libr/debian/patches/001-fix-arm-builds.diff
parent8bb2f63591a9168b8621cd3a4a7359eb1b40426a (diff)
downloadtde-packaging-d1f8a4b87e7fe68867dbfac671d9fecd5c76ab4c.tar.gz
tde-packaging-d1f8a4b87e7fe68867dbfac671d9fecd5c76ab4c.zip
Initial import of libr packaging files
(cherry picked from commit d13c79dd9536e8c57e117e5503d4c0226b0f066b)
Diffstat (limited to 'ubuntu/maverick/dependencies/libr/debian/patches/001-fix-arm-builds.diff')
-rw-r--r--ubuntu/maverick/dependencies/libr/debian/patches/001-fix-arm-builds.diff56
1 files changed, 56 insertions, 0 deletions
diff --git a/ubuntu/maverick/dependencies/libr/debian/patches/001-fix-arm-builds.diff b/ubuntu/maverick/dependencies/libr/debian/patches/001-fix-arm-builds.diff
new file mode 100644
index 000000000..368fad44e
--- /dev/null
+++ b/ubuntu/maverick/dependencies/libr/debian/patches/001-fix-arm-builds.diff
@@ -0,0 +1,56 @@
+diff -ru libr-0.6.0~maverick/configure libr-0.6.0/configure
+--- libr-0.6.0~maverick/configure 2011-03-05 20:21:12.000000000 +0000
++++ libr-0.6.0/configure 2013-07-19 03:43:01.000000000 +0000
+@@ -13072,6 +13072,10 @@
+ ARCH="i386";
+ elif test "$UNAMEM" = "i686" ; then
+ ARCH="i386";
++elif test "$UNAMEM" = "armv5tejl" ; then
++ ARCH="armel";
++elif test "$UNAMEM" = "armv6l" ; then
++ ARCH="armhf";
+ elif test "$UNAMEM" = "x86_64"; then
+ ARCH="amd64";
+ fi
+@@ -13083,6 +13087,14 @@
+ CFLAGS="$CFLAGS -m64";
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Ready for 64-bit compilation." >&5
+ $as_echo "$as_me: Ready for 64-bit compilation." >&6;};
++elif test "$ARCH" = "armel" ; then
++ CFLAGS="$CFLAGS";
++ { $as_echo "$as_me:${as_lineno-$LINENO}: Ready for armel compilation." >&5
++$as_echo "$as_me: Ready for armel compilation." >&6;};
++elif test "$ARCH" = "armhf" ; then
++ CFLAGS="$CFLAGS";
++ { $as_echo "$as_me:${as_lineno-$LINENO}: Ready for armhf compilation." >&5
++$as_echo "$as_me: Ready for armhf compilation." >&6;};
+ else
+ as_fn_error $? "Target architecture ${ARCH} is invalid!" "$LINENO" 5 ;
+ fi
+diff -ru libr-0.6.0~maverick/configure.ac libr-0.6.0/configure.ac
+--- libr-0.6.0~maverick/configure.ac 2011-03-05 20:20:50.000000000 +0000
++++ libr-0.6.0/configure.ac 2013-07-19 03:41:27.000000000 +0000
+@@ -81,6 +81,10 @@
+ ARCH="i386";
+ elif test "$UNAMEM" = "i686" ; then
+ ARCH="i386";
++elif test "$UNAMEM" = "armv5tejl" ; then
++ ARCH="armel";
++elif test "$UNAMEM" = "armv6l" ; then
++ ARCH="armhf";
+ elif test "$UNAMEM" = "x86_64"; then
+ ARCH="amd64";
+ fi
+@@ -90,6 +94,12 @@
+ elif test "$ARCH" = "amd64" ; then
+ CFLAGS="$CFLAGS -m64";
+ AC_MSG_NOTICE([Ready for 64-bit compilation.]);
++elif test "$ARCH" = "armel" ; then
++ CFLAGS="$CFLAGS";
++ AC_MSG_NOTICE([Ready for armel compilation.]);
++elif test "$ARCH" = "armhf" ; then
++ CFLAGS="$CFLAGS";
++ AC_MSG_NOTICE([Ready for armhf compilation.]);
+ else
+ AC_MSG_ERROR([Target architecture ${ARCH} is invalid!]);
+ fi