Accepting request 726292 from devel:tools:building

- Changelog and packaging cleanups
- Fix download url

- Update to version 0.10
  * remove no-rpath-prebuilt.patch - applied upstream
  * Lots of bug fixes see https://github.com/NixOS/patchelf/commits/master

OBS-URL: https://build.opensuse.org/request/show/726292
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/patchelf?expand=0&rev=11
This commit is contained in:
Dominique Leuenberger 2019-08-27 08:28:25 +00:00 committed by Git OBS Bridge
commit 7bbf9a1e4a
5 changed files with 21 additions and 49 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:f670cd462ac7161588c28f45349bc20fb9bd842805e3f71387a320e7a9ddfcf3
size 158604

View File

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

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Tue Aug 27 01:17:34 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
- Changelog and packaging cleanups
- Fix download url
-------------------------------------------------------------------
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,13 @@
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
URL: https://nixos.org/patchelf.html
Source: https://nixos.org/releases/patchelf/patchelf-%{version}/patchelf-%{version}.tar.bz2
BuildRequires: gcc-c++
%description
@ -34,14 +33,13 @@ executables and change the RPATH of executables and libraries.
%prep
%setup -q
%patch0 -p1
%build
%configure
make %{?_smp_mflags}
%check
make check
make %{?_smp_mflags} check
%install
%make_install