From 098951c9610563524a63641524ff7191f8c5595560120de2093b014c055a07be Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 20 Jul 2014 12:00:54 +0000 Subject: [PATCH] Restore patch as arm64 build failed OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmowgli2?expand=0&rev=12 --- libmowgli2.changes | 1 - libmowgli2.spec | 2 ++ platform.patch | 20 ++++++++++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 platform.patch diff --git a/libmowgli2.changes b/libmowgli2.changes index cbaae4a..923bf34 100644 --- a/libmowgli2.changes +++ b/libmowgli2.changes @@ -6,7 +6,6 @@ Sun Jul 20 11:22:14 UTC 2014 - jengelh@inai.de * Add method to set SO_REUSEADDR on vio sockets * eventloop: rename mowgli_eventloop_timer_t.when to mowgli_eventloop_timer_t.deadline -- Remove platform.patch (no longer applicable) ------------------------------------------------------------------- Mon Mar 3 21:46:30 UTC 2014 - jengelh@inai.de diff --git a/libmowgli2.spec b/libmowgli2.spec index 5ba5d33..9227ad6 100644 --- a/libmowgli2.spec +++ b/libmowgli2.spec @@ -29,6 +29,7 @@ Url: http://atheme.org/projects/libmowgli.html #Git-Clone: git://github.com/atheme/libmowgli-2 #Snapshot: libmowgli-2.0.0-185-g7790ffd Source: libmowgli-%version.tar.xz +Patch1: platform.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: pkg-config BuildRequires: xz @@ -76,6 +77,7 @@ This package holds the development files for libmowgli v2. %prep %setup -qn libmowgli-2 +%patch -P 1 -p1 %build if [ ! -e configure ]; then diff --git a/platform.patch b/platform.patch new file mode 100644 index 0000000..dc291be --- /dev/null +++ b/platform.patch @@ -0,0 +1,20 @@ +From: Andreas Schwab +Date: Sun, 3 Mar 2013 20:19:46 +0000 + +--- + src/libmowgli/platform/machine.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: libmowgli-2/src/libmowgli/platform/machine.h +=================================================================== +--- libmowgli-2.orig/src/libmowgli/platform/machine.h ++++ libmowgli-2/src/libmowgli/platform/machine.h +@@ -186,7 +186,7 @@ + # if defined _LP64 || defined __LP64 + # define MOWGLI_CPU_BITS 64 + # define MOWGLI_CPU_BITS_64 +-# elif ++# else + # define MOWGLI_CPU_BITS 32 + # define MOWGLI_CPU_BITS_32 + # endif