diff --git a/0001-Fix-loongarch64-byte-alignment-to-4K.patch b/0001-Fix-loongarch64-byte-alignment-to-4K.patch index d810606194a86fea9eae29a23949d99e8b3c1906..1714c8646fd46fce2e1ae791c33eb8b45f441d68 100644 --- a/0001-Fix-loongarch64-byte-alignment-to-4K.patch +++ b/0001-Fix-loongarch64-byte-alignment-to-4K.patch @@ -4,24 +4,22 @@ Date: Mon, 3 Jul 2023 08:23:05 +0000 Subject: [PATCH] Fix loongarch64 byte alignment to 4K --- - src/patchelf.cc | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) + src/patchelf.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/patchelf.cc b/src/patchelf.cc index 4e771bd..c5d5461 100644 --- a/src/patchelf.cc +++ b/src/patchelf.cc -@@ -324,8 +324,9 @@ unsigned int ElfFile::getPageSize() const - case EM_PPC64: +@@ -373,7 +373,7 @@ case EM_AARCH64: case EM_TILEGX: -- case EM_LOONGARCH: - return 0x10000; -+ case EM_LOONGARCH: -+ return 0x4000; - default: - return 0x1000; - } + case EM_LOONGARCH: +- return 0x10000; ++ return 0x4000; + case EM_SPARC: // This should be sparc 32-bit. According to the linux + // kernel 4KB should be also fine, but it seems that solaris is doing 8KB + case EM_SPARCV9: /* SPARC64 support */ -- 2.33.0 diff --git a/patchelf-0.16.0.tar.gz b/patchelf-0.16.0.tar.gz deleted file mode 100644 index 1f131c90c2060f244fa0ef89fcb7bdb2ffff5a2d..0000000000000000000000000000000000000000 Binary files a/patchelf-0.16.0.tar.gz and /dev/null differ diff --git a/patchelf-0.18.0.tar.bz2 b/patchelf-0.18.0.tar.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..07c62f9a5257bbe7d69bcf028c219b050f28cffb Binary files /dev/null and b/patchelf-0.18.0.tar.bz2 differ diff --git a/patchelf.spec b/patchelf.spec index a364d1583b2e7d8e535a76ded21518a52b4a6cd3..58118f13c9da84f4d04ebdf07c073de5e96ac09f 100644 --- a/patchelf.spec +++ b/patchelf.spec @@ -1,14 +1,14 @@ Name: patchelf -Version: 0.16.0 -Release: 2 +Version: 0.18.0 +Release: 1 Summary: A utility for patching ELF binaries -License: GPL-3.0 -URL: http://nixos.org/patchelf.html -Source0: https://github.com/NixOS/%{name}/archive/%{version}/%{name}-%{version}.tar.gz +License: GPL-3.0-or-later +URL: https://github.com/NixOS/patchelf +Source0: https://github.com/NixOS/%{name}/archive/%{version}/%{name}-%{version}.tar.bz2 Patch100: 0001-Fix-loongarch64-byte-alignment-to-4K.patch -BuildRequires: gcc gcc-c++ make autoconf automake coreutils libacl-devel libattr-devel +BuildRequires: gcc gcc-c++ make coreutils libacl-devel libattr-devel %description PatchELF is a simple utility for modifying an existing ELF executable @@ -21,31 +21,29 @@ of an executable and change the RPATH of an executable or library. # package ships elf.h - delete to use glibc-headers one %{__rm} -f src/elf.h - %build -bash ./bootstrap.sh %configure %make_build - %check -make check - +%make_build check %install %make_install rm -rf %{buildroot}/usr/share/doc/%{name} - %files %license COPYING %doc README.md %{_bindir}/patchelf %{_mandir}/man1/patchelf.1* - +%{_datadir}/zsh/site-functions/_patchelf %changelog +* Tue Jan 14 2025 Funda Wang - 0.18.0-1 +- update to 0.18.0 + * Mon Jul 3 2023 doupengda - 0.16.0-2 - Modify loongarch64 byte alignment to 4K diff --git a/patchelf.yaml b/patchelf.yaml index 4158c990059f8f39169d0f741f28a87bbe73b362..084ece038886c0f0995448da51796d825836247c 100644 --- a/patchelf.yaml +++ b/patchelf.yaml @@ -1,4 +1,4 @@ version_control: github src_repo: NixOS/patchelf tag_prefix: "" -seperator: "." +separator: "."