forked from pool/ptools
Accepting request 1193482 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1193482 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ptools?expand=0&rev=19
This commit is contained in:
commit
5f83d59c5c
20
fix-32bit-cast.diff
Normal file
20
fix-32bit-cast.diff
Normal 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)
|
@ -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>
|
Thu Feb 29 15:03:43 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package ptools
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
Source: %{name}-%{version}.tar.bz2
|
||||||
Patch0: output-l_addr.diff
|
Patch0: output-l_addr.diff
|
||||||
Patch1: commit-a42a099
|
Patch1: commit-a42a099
|
||||||
|
Patch2: fix-32bit-cast.diff
|
||||||
BuildRequires: libelf-devel
|
BuildRequires: libelf-devel
|
||||||
BuildRequires: popt-devel
|
BuildRequires: popt-devel
|
||||||
#ExclusiveArch: %{ix86} x86_64
|
#ExclusiveArch: %{ix86} x86_64
|
||||||
|
Loading…
Reference in New Issue
Block a user