]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
chrpath: Update to 0.16
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 20 Feb 2023 16:42:44 +0000 (16:42 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 20 Feb 2023 16:42:44 +0000 (16:42 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
chrpath/chrpath.nm
chrpath/patches/chrpath-0.13-NULL-entry.patch [deleted file]

index 6106930554bcb6628455561b4a2dcc1cf41ce686..5739082b4ec1721c49ee96f727781aa4c2864eb6 100644 (file)
@@ -4,13 +4,13 @@
 ###############################################################################
 
 name       = chrpath
-version    = 0.13
+version    = 0.16
 release    = 1
 
 groups     = Development/Tools
-url        = ftp://ftp.hungry.com/pub/hungry/chrpath/
-license    = GPL+
-summary    = Modify rpath of compiled programs.
+url        = https://directory.fsf.org/wiki/Chrpath/
+license    = GPLv2+
+summary    = Modify rpath of compiled programs
 
 description
        chrpath allows you to modify the dynamic library load path (rpath) of
@@ -18,20 +18,12 @@ description
        is supported.
 end
 
-source_dl  = %{url}
-
-build
-       configure_options += \
-               --mandir=/usr/share/man
-
-       install_cmds
-               rm -rfv %{BUILDROOT}/usr/doc
-       end
-end
+# Upstream has gone
+source_dl  = https://deb.debian.org/debian/pool/main/c/chrpath/
+sources    = %{name}_%{version}.orig.tar.gz
 
 packages
        package %{name}
-       end
 
        package %{name}-debuginfo
                template DEBUGINFO
diff --git a/chrpath/patches/chrpath-0.13-NULL-entry.patch b/chrpath/patches/chrpath-0.13-NULL-entry.patch
deleted file mode 100644 (file)
index 27275d2..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-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)