Accepting request 726218 from home:termim

update to 0.10

OBS-URL: https://build.opensuse.org/request/show/726218
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/patchelf?expand=0&rev=17
This commit is contained in:
Martin Pluskal 2019-08-27 01:15:25 +00:00 committed by Git OBS Bridge
parent e07ed3147f
commit 522c6b687c
5 changed files with 20 additions and 46 deletions

View File

@ -1,39 +0,0 @@
From: Felipe Sateler <fsateler@debian.org>
Date: Mon, 29 Feb 2016 17:29:35 -0300
Subject: no-rpath-prebuild: force pagesize to 4096 on prebuilt binaries
They all have that page size.
---
tests/no-rpath-prebuild.sh | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/tests/no-rpath-prebuild.sh b/tests/no-rpath-prebuild.sh
index d059dda..aa27b7a 100755
--- a/tests/no-rpath-prebuild.sh
+++ b/tests/no-rpath-prebuild.sh
@@ -1,6 +1,7 @@
#! /bin/sh -e
set -x
ARCH="$1"
+PAGESIZE=4096
if [ -z "$ARCH" ]; then
ARCH=$(basename $0 .sh | sed -e 's/.*-//')
@@ -25,13 +26,13 @@ mkdir -p ${SCRATCH}
cp $no_rpath_bin ${SCRATCH}/no-rpath
-oldRPath=$(../src/patchelf --print-rpath ${SCRATCH}/no-rpath)
+oldRPath=$(../src/patchelf --page-size ${PAGESIZE} --print-rpath ${SCRATCH}/no-rpath)
if test -n "$oldRPath"; then exit 1; fi
-../src/patchelf \
- --set-interpreter "$(../src/patchelf --print-interpreter ../src/patchelf)" \
+../src/patchelf --page-size ${PAGESIZE} \
+ --set-interpreter "$(../src/patchelf --page-size ${PAGESIZE} --print-interpreter ../src/patchelf)" \
--set-rpath /foo:/bar:/xxxxxxxxxxxxxxx ${SCRATCH}/no-rpath
-newRPath=$(../src/patchelf --print-rpath ${SCRATCH}/no-rpath)
+newRPath=$(../src/patchelf --page-size ${PAGESIZE} --print-rpath ${SCRATCH}/no-rpath)
if ! echo "$newRPath" | grep -q '/foo:/bar'; then
echo "incomplete RPATH"
exit 1

3
patchelf-0.10.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:15d4d5df58250f68a0fa424fbeb6941a89142ac8503c24488853e885bfddc59a
size 90642

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a0f65c1ba148890e9f2f7823f4bedf7ecad5417772f64f994004f59a39014f83
size 159956

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Mon Aug 26 14:53:38 UTC 2019 - Mikhail Terekhov <termim@gmail.com>
-
-------------------------------------------------------------------
Mon Aug 26 14:41:43 UTC 2019 - Mikhail Terekhov <termim@gmail.com>
- Update to version 0.10
* remove no-rpath-prebuilt.patch - applied upstream
* Lots of bug fixes see https://github.com/NixOS/patchelf/commits/master
-------------------------------------------------------------------
Thu Nov 15 12:41:52 UTC 2018 - Martin Pluskal <mpluskal@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package patchelf
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,14 +17,15 @@
Name: patchelf
Version: 0.9
Version: 0.10
Release: 0
Summary: A utility for patching ELF binaries
License: GPL-3.0-only
Group: Development/Libraries/C and C++
URL: http://nixos.org/patchelf.html
Source: http://releases.nixos.org/%{name}/%{name}-%{version}/%{name}-%{version}.tar.bz2
Patch0: no-rpath-prebuilt.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
%description
@ -34,9 +35,9 @@ executables and change the RPATH of executables and libraries.
%prep
%setup -q
%patch0 -p1
%build
./bootstrap.sh
%configure
make %{?_smp_mflags}