[packages/sparse] fix llvm 10 detection; rel 3
atler
atler at pld-linux.org
Fri Apr 3 12:35:24 CEST 2020
commit 150ae4a765b4407a42bb06ae899929c783b0e0d7
Author: Jan Palus <atler at pld-linux.org>
Date: Fri Apr 3 01:53:48 2020 +0200
fix llvm 10 detection; rel 3
llvm10.patch | 11 +++++++++++
sparse.spec | 4 +++-
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/sparse.spec b/sparse.spec
index 83b6b52..94750b1 100644
--- a/sparse.spec
+++ b/sparse.spec
@@ -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} \
diff --git a/llvm10.patch b/llvm10.patch
new file mode 100644
index 0000000..e3b3d8c
--- /dev/null
+++ b/llvm10.patch
@@ -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)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/sparse.git/commitdiff/150ae4a765b4407a42bb06ae899929c783b0e0d7
More information about the pld-cvs-commit
mailing list