Accepting request 1189981 from devel:tools

- Aded fakeroot-C99.patch to fix C99 violations which prevent building
  with GCC 14.

If the request is OK, please forward it to Factory so that the package
is ready when we switch the default compiler.  Thanks! (forwarded request 1189825 from jamborm)

OBS-URL: https://build.opensuse.org/request/show/1189981
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/fakeroot?expand=0&rev=18
This commit is contained in:
Dominique Leuenberger 2024-07-28 15:20:19 +00:00 committed by Git OBS Bridge
commit c2b3e995c2
3 changed files with 35 additions and 1 deletions

26
fakeroot-C99.patch Normal file
View File

@ -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) {

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jul 26 16:05:25 UTC 2024 - Martin Jambor <mjambor@suse.com>
- 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 <dmueller@suse.com>

View File

@ -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