diff --git a/fix-32bit-cast.diff b/fix-32bit-cast.diff new file mode 100644 index 0000000..2a0640e --- /dev/null +++ b/fix-32bit-cast.diff @@ -0,0 +1,20 @@ +From: Martin Jambor +Date: 2024-08-09 + +The pre-existing type-cast is OK for 64bit targets but not for 32 bit +targets, so this patch swaps it with what is actually used in the +corresponding data type definition. + +Index: ptools-0.1/src/pbuildid.c +=================================================================== +--- ptools-0.1.orig/src/pbuildid.c ++++ ptools-0.1/src/pbuildid.c +@@ -751,7 +751,7 @@ out: + + mmap->l_addr = lmap->l_addr; + mmap->l_name = strdup(l_name); +- mmap->l_ld = (GElf_Dyn *)lmap->l_ld; ++ mmap->l_ld = (ElfW(Dyn) *)lmap->l_ld; + mmap->l_next = core_link_map; + mmap->l_prev = NULL; + if (core_link_map) diff --git a/ptools.changes b/ptools.changes index 3d6641e..0d9a834 100644 --- a/ptools.changes +++ b/ptools.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Aug 9 14:19:31 UTC 2024 - Martin Jambor + +- Added fix-32bit-cast.diff which replaces a cast which is OK for + 64bit targets but not for 32 bit targets to make the package + buildable with GCC 14 on i586. + ------------------------------------------------------------------- Thu Feb 29 15:03:43 UTC 2024 - Dominique Leuenberger diff --git a/ptools.spec b/ptools.spec index f67cb9e..7fda10b 100644 --- a/ptools.spec +++ b/ptools.spec @@ -1,7 +1,7 @@ # # spec file for package ptools # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,6 +26,7 @@ URL: ftp://ftp.suse.com/pub/people/jblunck/ptools/ Source: %{name}-%{version}.tar.bz2 Patch0: output-l_addr.diff Patch1: commit-a42a099 +Patch2: fix-32bit-cast.diff BuildRequires: libelf-devel BuildRequires: popt-devel #ExclusiveArch: %{ix86} x86_64