From f1cce1cc9673883b030a62b799dc7668060ff8a9245078f8940c09d9208c8841 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Fri, 5 Apr 2024 15:33:26 +0000 Subject: [PATCH] Accepting request 1165651 from home:dspinella:branches:Archiving - Fix build with gcc14, bsc#1221712 * fix-gcc14.patch OBS-URL: https://build.opensuse.org/request/show/1165651 OBS-URL: https://build.opensuse.org/package/show/Archiving/cpio?expand=0&rev=98 --- cpio.changes | 6 ++++++ cpio.spec | 1 + fix-gcc14.patch | 14 ++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 fix-gcc14.patch diff --git a/cpio.changes b/cpio.changes index 0a4823d..9ea2ed7 100644 --- a/cpio.changes +++ b/cpio.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Apr 5 11:02:45 UTC 2024 - Danilo Spinella + +- Fix build with gcc14, bsc#1221712 + * fix-gcc14.patch + ------------------------------------------------------------------- Mon Feb 26 10:56:19 UTC 2024 - Danilo Spinella diff --git a/cpio.spec b/cpio.spec index 1cfa232..0c10f3e 100644 --- a/cpio.spec +++ b/cpio.spec @@ -41,6 +41,7 @@ Patch20: cpio-close_files_after_copy.patch Patch21: cpio-pattern-file-sigsegv.patch Patch23: paxutils-rtapelib_mtget.patch Patch25: cpio-fix_truncation_check.patch +Patch26: fix-gcc14.patch BuildRequires: autoconf >= 2.71 BuildRequires: automake #Requires(post): %{xinstall_info_prereq} diff --git a/fix-gcc14.patch b/fix-gcc14.patch new file mode 100644 index 0000000..3d7b9d5 --- /dev/null +++ b/fix-gcc14.patch @@ -0,0 +1,14 @@ +Index: cpio-2.15/src/util.c +=================================================================== +--- cpio-2.15.orig/src/util.c ++++ cpio-2.15/src/util.c +@@ -47,6 +47,9 @@ + extern int errno; + #endif + ++int tape_eof( int tape_des); ++int tape_eod( int tape_des); ++ + /* Write `output_size' bytes of `output_buffer' to file + descriptor OUT_DES and reset `output_size' and `out_buff'. */ +