Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Fedora Release Engineering
b981eb525c dist-git conversion 2010-07-28 11:43:25 +00:00
Bill Nottingham
0737b45e57 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:29:26 +00:00
athimm
ad38ae3b72 Fix last NULL in .dynamic section. 2009-07-23 15:27:22 +00:00
Jesse Keating
41ee549613 Initialize branch F-10 for chrpath 2008-11-07 04:27:38 +00:00
4 changed files with 22 additions and 22 deletions

View file

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: chrpath
# $Id$
NAME := chrpath
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View file

@ -0,0 +1,16 @@
diff -uNr chrpath-0.13.old/killrpath.c chrpath-0.13/killrpath.c
--- chrpath-0.13.old/killrpath.c 2003-06-24 00:46:15.000000000 +0200
+++ chrpath-0.13/killrpath.c 2009-07-19 23:05:11.000000000 +0200
@@ -73,8 +73,11 @@
if ( ! elf_dynpath_tag(dyns[i].d_tag) )
dynpos++;
}
- for (; dynpos < i; dynpos++)
+ for (; dynpos < i; dynpos++) {
dyns[dynpos].d_tag = DT_NULL;
+ dyns[dynpos].d_un.d_val = 0x0;
+ }
+
if (lseek(fd, phdr.p_offset, SEEK_SET) == -1
|| write(fd, dyns, phdr.p_filesz) != (int)phdr.p_filesz)

View file

@ -1,10 +1,11 @@
Summary: Modify rpath of compiled programs
Name: chrpath
Version: 0.13
Release: 3%{?dist}
Release: 5%{?dist}
License: GPL+
Group: Development/Tools
URL: ftp://ftp.hungry.com/pub/hungry/chrpath/
Patch0: chrpath-0.13-NULL-entry.patch
Source0: ftp://ftp.hungry.com/pub/hungry/chrpath/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
@ -15,6 +16,7 @@ is supported.
%prep
%setup -q
%patch0 -p1 -b .NULL
%build
%configure
@ -36,6 +38,9 @@ rm -rf %{buildroot}
%{_mandir}/man1/chrpath.1*
%changelog
* Thu Jul 23 2009 Axel Thimm <Axel.Thimm@ATrpms.net> - 0.13-5
- Fix last entry in .dynamic (by Christian Krause <chkr@plauener.de>).
* Sat Sep 8 2007 Ville Skyttä <ville.skytta at iki.fi> - 0.13-2
- License: GPL+