]> git.pld-linux.org Git - packages/sparse.git/commitdiff
fix llvm 10 detection; rel 3 auto/th/sparse-0.6.1-3
authorJan Palus <atler@pld-linux.org>
Thu, 2 Apr 2020 23:53:48 +0000 (01:53 +0200)
committerJan Palus <atler@pld-linux.org>
Thu, 2 Apr 2020 23:53:48 +0000 (01:53 +0200)
llvm10.patch [new file with mode: 0644]
sparse.spec

diff --git a/llvm10.patch b/llvm10.patch
new file mode 100644 (file)
index 0000000..e3b3d8c
--- /dev/null
@@ -0,0 +1,11 @@
+--- sparse-0.6.1/Makefile.orig 2019-10-14 01:27:22.000000000 +0200
++++ sparse-0.6.1/Makefile      2020-04-03 01:52:37.902999893 +0200
+@@ -161,7 +161,7 @@
+ endif
+ ifneq ($(filter ${arch},i386 i486 i586 i686 x86_64 amd64),)
+ LLVM_VERSION:=$(shell $(LLVM_CONFIG) --version)
+-ifeq ($(shell expr "$(LLVM_VERSION)" : '[3-9]\.'),2)
++ifeq ($(shell expr $(shell expr "$(LLVM_VERSION)" : '\([0-9]\+\)\.') '>' 2),1)
+ LLVM_PROGS := sparse-llvm
+ $(LLVM_PROGS): LD := g++
+ LLVM_LDFLAGS := $(shell $(LLVM_CONFIG) --ldflags)
index 83b6b52d678f3c00a0ab50a7f6c7d46a425a08d7..94750b1c202001282b4ed6b1a528596cb5e038d9 100644 (file)
@@ -2,11 +2,12 @@ Summary:      Sparse - a semantic parser of source files
 Summary(pl.UTF-8):     Sparse - analizator semantyczny plików źródłowych
 Name:          sparse
 Version:       0.6.1
-Release:       2
+Release:       3
 License:       OSL v1.1
 Group:         Development/Debuggers
 Source0:       https://www.kernel.org/pub/software/devel/sparse/dist/%{name}-%{version}.tar.xz
 # Source0-md5: 9fa73cc37326032006dc8acff5466a91
+Patch0:                llvm10.patch
 URL:           https://www.kernel.org/pub/software/devel/sparse/
 BuildRequires: gtk+3-devel >= 3.0
 BuildRequires: libxml2-devel >= 2.0
@@ -45,6 +46,7 @@ czym są _typy_ obejmowane przez grupowanie.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__make} \
This page took 0.139155 seconds and 4 git commands to generate.