[packages/libflashrom] fix undefined var when building without rayer spi
atler
atler at pld-linux.org
Wed Sep 9 20:02:15 CEST 2020
commit b0f0b17405efcaaaa9abf11140c1101cefa2317a
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Sep 9 19:44:46 2020 +0200
fix undefined var when building without rayer spi
set need_raw_access to true by default since it's required even by core,
uncoditional source files (ie flashrom.c)
libflashrom.spec | 2 ++
meson_undefined_var.patch | 10 ++++++++++
2 files changed, 12 insertions(+)
---
diff --git a/libflashrom.spec b/libflashrom.spec
index f8abd07..95604bf 100644
--- a/libflashrom.spec
+++ b/libflashrom.spec
@@ -20,6 +20,7 @@ Group: Libraries
# branch https://github.com/fwupd/flashrom/commits/wip/hughsie/fwupd
Source0: https://github.com/fwupd/flashrom/archive/%{gitref}/flashrom-%{snap}.tar.gz
# Source0-md5: f54475af56c26dd584f804aad4ed708f
+Patch0: meson_undefined_var.patch
URL: https://github.com/fwupd/flashrom
%{?with_apidocs:BuildRequires: doxygen}
BuildRequires: gcc >= 5:3.2
@@ -67,6 +68,7 @@ Dokumentacja API biblioteki libflashrom.
%prep
%setup -q -n flashrom-%{gitref}
+%patch0 -p0
%build
%meson build \
diff --git a/meson_undefined_var.patch b/meson_undefined_var.patch
new file mode 100644
index 0000000..e9c691d
--- /dev/null
+++ b/meson_undefined_var.patch
@@ -0,0 +1,10 @@
+--- meson.build.orig 2020-09-09 19:09:02.301227827 +0200
++++ meson.build 2020-09-09 19:08:40.928015705 +0200
+@@ -68,6 +68,7 @@
+ srcs = []
+
+ need_libusb0 = false
++need_raw_access = true
+
+ # check for required symbols
+ if cc.has_function('clock_gettime')
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libflashrom.git/commitdiff/72393d0b3ecada67d9e08f469729ce2aac7fbfc5
More information about the pld-cvs-commit
mailing list