diff --git a/0003-RISC-V-support.patch b/0003-RISC-V-support.patch index 5469fb240575d69588883745ba48b8bc695cb457..e73296e9827ede8e85b9a96abeb31e076ddaba83 100644 --- a/0003-RISC-V-support.patch +++ b/0003-RISC-V-support.patch @@ -42,39 +42,3 @@ index e26d653..f3fd61f 100644 #define CACHE_LINE_BYTES 64 #else #error "unknown cache line size" -diff --git a/utils/uds/Makefile b/utils/uds/Makefile -index e33d682..ff6ece0 100644 ---- a/utils/uds/Makefile -+++ b/utils/uds/Makefile -@@ -32,8 +32,11 @@ - CC=gcc - endif - -+ifeq ($(filter riscv64%,$(MAKE_HOST)),) -+Wcast-align = -Wcast-align -+endif - WARNS = -Wall \ -- -Wcast-align \ -+ $(Wcast-align) \ - -Werror \ - -Wextra \ - -Winit-self \ -diff --git a/utils/vdo/Makefile b/utils/vdo/Makefile -index fb009a7..26a8e28 100644 ---- a/utils/vdo/Makefile -+++ b/utils/vdo/Makefile -@@ -22,10 +22,12 @@ - - UDS_DIR = ../uds - -- -+ifeq ($(filter riscv64%,$(MAKE_HOST)),) -+Wcast-align = -Wcast-align -+endif - WARNS = \ - -Wall \ -- -Wcast-align \ -+ $(Wcast-align) \ - -Werror \ - -Wextra \ - -Winit-self \ diff --git a/0004-delete-warning-options.patch b/0004-delete-warning-options.patch new file mode 100644 index 0000000000000000000000000000000000000000..55b88025096a7bc3c710ce6990ef2dcad8ba290f --- /dev/null +++ b/0004-delete-warning-options.patch @@ -0,0 +1,84 @@ +From 36d99b5e065879ddf067901537f7892a8a56d54a Mon Sep 17 00:00:00 2001 +From: shen-chenbang <1944340417@qq.com> +Date: Wed, 25 Sep 2024 22:13:51 +0800 +Subject: [PATCH] delete warning options + +--- + utils/uds/Makefile | 23 ----------------------- + utils/vdo/Makefile | 26 -------------------------- + 2 files changed, 49 deletions(-) + +diff --git a/utils/uds/Makefile b/utils/uds/Makefile +index c4f778d..721d002 100644 +--- a/utils/uds/Makefile ++++ b/utils/uds/Makefile +@@ -26,29 +26,6 @@ ifeq ($(origin CC), default) + CC=gcc + endif + +-WARNS = -Wall \ +- -Wcast-align \ +- -Werror \ +- -Wextra \ +- -Winit-self \ +- -Wlogical-op \ +- -Wmissing-include-dirs \ +- -Wpointer-arith \ +- -Wredundant-decls \ +- -Wunused \ +- -Wwrite-strings +- +-C_WARNS = -Wbad-function-cast \ +- -Wcast-qual \ +- -Wfloat-equal \ +- -Wformat=2 \ +- -Wmissing-declarations \ +- -Wmissing-format-attribute \ +- -Wmissing-prototypes \ +- -Wnested-externs \ +- -Wold-style-definition \ +- -Wswitch-default +- + OPT_FLAGS = -O3 -fno-omit-frame-pointer + DEBUG_FLAGS = + RPM_OPT_FLAGS ?= -fpic +diff --git a/utils/vdo/Makefile b/utils/vdo/Makefile +index 11685a6..7c9e894 100644 +--- a/utils/vdo/Makefile ++++ b/utils/vdo/Makefile +@@ -22,32 +22,6 @@ VDO_VERSION = 8.2.2.2 + + UDS_DIR = ../uds + +- +-WARNS = \ +- -Wall \ +- -Wcast-align \ +- -Werror \ +- -Wextra \ +- -Winit-self \ +- -Wlogical-op \ +- -Wmissing-include-dirs \ +- -Wpointer-arith \ +- -Wredundant-decls \ +- -Wunused \ +- -Wwrite-strings \ +- +-C_WARNS = \ +- -Wbad-function-cast \ +- -Wcast-qual \ +- -Wfloat-equal \ +- -Wformat=2 \ +- -Wmissing-declarations \ +- -Wmissing-format-attribute \ +- -Wmissing-prototypes \ +- -Wnested-externs \ +- -Wold-style-definition \ +- -Wswitch-default \ +- + ifeq ($(AR), ar) + ifeq ($(origin AR), default) + AR := gcc-ar +-- +2.45.2.windows.1 + diff --git a/vdo.spec b/vdo.spec index 7a2978d3e216f7b8fe46cdcafdfcf577e75b19c2..aaffa783540f33eb7374adc1dbaca5c49d3c42d3 100644 --- a/vdo.spec +++ b/vdo.spec @@ -1,6 +1,6 @@ Name: vdo Version: 8.2.2.2 -Release: 2 +Release: 3 Summary: Management tools for Virtual Data Optimizer License: GPLv2 URL: http://github.com/dm-vdo/vdo @@ -8,6 +8,7 @@ Source0: https://github.com/dm-vdo/vdo/archive/refs/tags/%{version}.tar.gz Patch0001: 0001-Add-loongarch64-support.patch Patch0002: 0002-fix_dmeventd_linking.patch Patch0003: 0003-RISC-V-support.patch +Patch0004: 0004-delete-warning-options.patch BuildRequires: gcc libuuid-devel device-mapper-devel device-mapper-event-devel BuildRequires: zlib-devel libblkid-devel @@ -54,6 +55,9 @@ This package provides the user-space management tools for VDO. %{_mandir}/man8/* %changelog +* Tue Aug 27 2024 shenchenbang <1944340417@qq.com> - 8.2.2.2-3 +- Fix delete warning options + * Sun Apr 28 2024 yinsist - 8.2.2.2-2 - Valgrind does not support certain architectures like RISC-V, Before depending on Valgrind, first check if Valgrind supports the architecture