Compare commits

...

No commits in common. "factory" and "factory" have entirely different histories.

4 changed files with 30 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

20
fix-32bit-cast.diff Normal file
View File

@ -0,0 +1,20 @@
From: Martin Jambor <mjambor@suse.de>
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)

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Aug 9 14:19:31 UTC 2024 - Martin Jambor <mjambor@suse.com>
- 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 <dimstar@opensuse.org>

View File

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