[packages/lxc] - disable Werror due to new glibc/gcc warnnings, rel 3

baggins baggins at pld-linux.org
Tue Oct 5 23:20:15 CEST 2021


commit 54d714f3d3dad611723152841f29f5dcda784a61
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Oct 5 23:16:30 2021 +0200

    - disable Werror due to new glibc/gcc warnnings, rel 3

 lxc.spec        |  4 +++-
 no-Werror.patch | 20 ++++++++++++++++++++
 2 files changed, 23 insertions(+), 1 deletion(-)
---
diff --git a/lxc.spec b/lxc.spec
index ed07fd4..41de09e 100644
--- a/lxc.spec
+++ b/lxc.spec
@@ -14,7 +14,7 @@ Summary:	Linux Containers userspace tools
 Summary(pl.UTF-8):	Narzędzia do kontenerów linuksowych (LXC)
 Name:		lxc
 Version:	4.0.8
-Release:	2
+Release:	3
 License:	LGPL v2.1+
 Group:		Applications/System
 Source0:	https://linuxcontainers.org/downloads/lxc/%{name}-%{version}.tar.gz
@@ -25,6 +25,7 @@ Source2:	%{name}_macvlan.sysconfig
 Source3:	%{name}_macvlan
 Patch1:		%{name}-net.patch
 Patch2:		x32.patch
+Patch3:		no-Werror.patch
 URL:		https://www.linuxcontainers.org/
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
@@ -157,6 +158,7 @@ bashowe uzupełnianie nazw dla LXC.
 %setup -q
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 cp -p %{SOURCE1} templates/lxc-pld.in
 
diff --git a/no-Werror.patch b/no-Werror.patch
new file mode 100644
index 0000000..dddf1b7
--- /dev/null
+++ b/no-Werror.patch
@@ -0,0 +1,20 @@
+--- lxc-4.0.8/configure.ac~	2021-04-30 20:16:25.000000000 +0200
++++ lxc-4.0.8/configure.ac	2021-10-05 23:12:29.650523023 +0200
+@@ -39,7 +39,7 @@
+ AC_CONFIG_SRCDIR([configure.ac])
+ AC_CONFIG_AUX_DIR([config])
+ AC_CONFIG_HEADERS([src/config.h])
+-AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability subdir-objects])
++AM_INIT_AUTOMAKE([-Wall -Wno-portability subdir-objects])
+ AC_CANONICAL_HOST
+ AM_PROG_CC_C_O
+ AC_USE_SYSTEM_EXTENSIONS
+@@ -838,7 +838,7 @@
+ 
+ CFLAGS="$CFLAGS -Wvla -std=gnu11 -fms-extensions"
+ if test "x$enable_werror" = "xyes"; then
+-	CFLAGS="$CFLAGS -Werror"
++	CFLAGS="$CFLAGS"
+ fi
+ 
+ AC_ARG_ENABLE([thread-safety],
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lxc.git/commitdiff/54d714f3d3dad611723152841f29f5dcda784a61



More information about the pld-cvs-commit mailing list