From 791ad46d65dd549cc37dc5c7a666db7e604c2ebb Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Mon, 26 Nov 2018 20:48:13 +0100 Subject: [PATCH] - updated to 0.5.2 - added llvm patch (fix llvm detection on i686) --- sparse-llvm.patch | 11 +++++++++++ sparse.spec | 12 +++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 sparse-llvm.patch diff --git a/sparse-llvm.patch b/sparse-llvm.patch new file mode 100644 index 0000000..f3341df --- /dev/null +++ b/sparse-llvm.patch @@ -0,0 +1,11 @@ +--- sparse-0.5.2/Makefile.orig 2018-04-13 17:15:41.000000000 +0200 ++++ sparse-0.5.2/Makefile 2018-11-26 20:14:30.999238925 +0100 +@@ -90,7 +90,7 @@ + endif + + ifeq ($(HAVE_LLVM),yes) +-ifeq ($(shell uname -m | grep -q '\(i386\|x86\)' && echo ok),ok) ++ifeq ($(shell uname -m | grep -q '\(i[3456]86\|x86\)' && echo ok),ok) + LLVM_VERSION:=$(shell $(LLVM_CONFIG) --version) + ifeq ($(shell expr "$(LLVM_VERSION)" : '[3-9]\.'),2) + LLVM_PROGS := sparse-llvm diff --git a/sparse.spec b/sparse.spec index 14e7d8e..02b9020 100644 --- a/sparse.spec +++ b/sparse.spec @@ -1,14 +1,15 @@ Summary: Sparse - a semantic parser of source files Summary(pl.UTF-8): Sparse - analizator semantyczny plików źródłowych Name: sparse -Version: 0.5.0 +Version: 0.5.2 Release: 1 License: OSL v1.1 Group: Development/Debuggers -Source0: https://kernel.org/pub/software/devel/sparse/dist/%{name}-%{version}.tar.xz -# Source0-md5: 68bc834c57836251fbee55a7707bab39 -URL: https://kernel.org/pub/software/devel/sparse/ -BuildRequires: gtk+2-devel >= 2.0 +Source0: https://www.kernel.org/pub/software/devel/sparse/dist/%{name}-%{version}.tar.xz +# Source0-md5: 1eeec1b3cd53caedfad6175df4fa87a6 +Patch0: %{name}-llvm.patch +URL: https://www.kernel.org/pub/software/devel/sparse/ +BuildRequires: gtk+3-devel >= 3.0 BuildRequires: libxml2-devel >= 2.0 BuildRequires: llvm-devel >= 3.0 BuildRequires: pkgconfig @@ -45,6 +46,7 @@ czym są _typy_ obejmowane przez grupowanie. %prep %setup -q +%patch0 -p1 %build %{__make} \ -- 2.44.0