[packages/sparse] - updated to 0.5.2 - added llvm patch (fix llvm detection on i686)

qboosh qboosh at pld-linux.org
Mon Nov 26 20:44:05 CET 2018


commit 791ad46d65dd549cc37dc5c7a666db7e604c2ebb
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Nov 26 20:48:13 2018 +0100

    - 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(-)
---
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} \
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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sparse.git/commitdiff/791ad46d65dd549cc37dc5c7a666db7e604c2ebb



More information about the pld-cvs-commit mailing list