diff --git a/fakeroot-C99.patch b/fakeroot-C99.patch new file mode 100644 index 0000000..f2c8522 --- /dev/null +++ b/fakeroot-C99.patch @@ -0,0 +1,26 @@ +Index: fakeroot-1.35.1/communicate.c +=================================================================== +--- fakeroot-1.35.1.orig/communicate.c ++++ fakeroot-1.35.1/communicate.c +@@ -576,7 +576,7 @@ void send_get_fakem(struct fake_msg *buf + &fm, + sizeof(fm)-sizeof(fm.mtype),0,0); + +- ptr = &fm; ++ ptr = (uint8_t*) &fm; + for (k=0; k<16; k++) { + magic_candidate = *(uint32_t*)&ptr[k]; + if (magic_candidate == FAKEROOT_MAGIC_LE || magic_candidate == FAKEROOT_MAGIC_BE) { +Index: fakeroot-1.35.1/faked.c +=================================================================== +--- fakeroot-1.35.1.orig/faked.c ++++ fakeroot-1.35.1/faked.c +@@ -1089,7 +1089,7 @@ void get_msg() + do { + r=msgrcv(msg_get,&fm,sizeof(struct fake_msg_buf),0,0); + +- ptr = &fm; ++ ptr = (uint8_t*) &fm; + for (k=0; k<16; k++) { + magic_candidate = *(uint32_t*)&ptr[k]; + if (magic_candidate == FAKEROOT_MAGIC_LE || magic_candidate == FAKEROOT_MAGIC_BE) { diff --git a/fakeroot.changes b/fakeroot.changes index d1ea893..9fab039 100644 --- a/fakeroot.changes +++ b/fakeroot.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jul 26 16:05:25 UTC 2024 - Martin Jambor + +- Aded fakeroot-C99.patch to fix C99 violations which prevent building + with GCC 14. + ------------------------------------------------------------------- Sat Jun 29 21:06:15 UTC 2024 - Dirk Müller diff --git a/fakeroot.spec b/fakeroot.spec index f9ee96c..82c5fcd 100644 --- a/fakeroot.spec +++ b/fakeroot.spec @@ -27,6 +27,8 @@ Source0: http://ftp.debian.org/debian/pool/main/f/fakeroot/%{name}_%{vers Source99: baselibs.conf # PATCH-FIX-UPSTREAM fakeroot-1.21-fix-shell-in-fakeroot.patch (deb#828810) Patch0: fakeroot-1.21-fix-shell-in-fakeroot +# PATCH-FIX-UPSTREAM fakeroot-C99.patch - fix C99 issues preventing building with gcc 14 +Patch1: fakeroot-C99.patch BuildRequires: autoconf >= 2.71 BuildRequires: automake BuildRequires: fdupes @@ -41,7 +43,7 @@ BuildRequires: po4a BuildRequires: sharutils BuildRequires: user(daemon) Requires(post): update-alternatives -Requires(preun): update-alternatives +Requires(preun):update-alternatives %description fakeroot runs a command in an environment wherein it appears to have