[packages/libphonenumber] get rid of -Werror
atler
atler at pld-linux.org
Mon Nov 2 16:33:06 CET 2026
commit 1d8932769b03fc7bb11b2c018e5d82689116ba22
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Nov 2 14:40:27 2026 +0100
get rid of -Werror
disable-werror.patch | 11 +++++++++++
libphonenumber.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/libphonenumber.spec b/libphonenumber.spec
index a3c9f9a..dc44fd2 100644
--- a/libphonenumber.spec
+++ b/libphonenumber.spec
@@ -22,6 +22,7 @@ Source0: https://github.com/google/libphonenumber/archive/v%{version}/%{name}-%{
Patch0: %{name}-link.patch
Patch1: %{name}-no-fetch.patch
Patch2: no-static.patch
+Patch3: disable-werror.patch
URL: https://github.com/google/libphonenumber/
BuildRequires: abseil-cpp-devel
BuildRequires: boost-devel >= 1.40.0
@@ -82,6 +83,7 @@ Statyczne biblioteki libphonenumber.
%patch -P0 -p1
%patch -P1 -p1
%patch -P2 -p1
+%patch -P3 -p1
%build
install -d build/cpp
diff --git a/disable-werror.patch b/disable-werror.patch
new file mode 100644
index 0000000..1aac3ac
--- /dev/null
+++ b/disable-werror.patch
@@ -0,0 +1,11 @@
+--- libphonenumber-9.0.41/cpp/CMakeLists.txt.orig 2026-11-02 14:21:08.558713141 +0100
++++ libphonenumber-9.0.41/cpp/CMakeLists.txt 2026-11-02 14:27:05.660957766 +0100
+@@ -418,7 +418,7 @@
+ endif ()
+
+ if (NOT WIN32)
+- add_definitions ("-Wall -Werror")
++ add_definitions ("-Wall")
+ endif ()
+
+ include_directories ("src")
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libphonenumber.git/commitdiff/bd7137b7dfbe55ade349fd3df289a70159d206c7
More information about the pld-cvs-commit
mailing list