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'. */ +