From 8beaf075d4dd3cb98cba63c2b479f40ccc621b45 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Wed, 28 Feb 2024 03:25:42 +0000 Subject: [PATCH] Relocations are no longer required. sysboost no longer needs relocation, so we remove it. Signed-off-by: Ricardo --- bash.spec | 44 ++++++++------------------------------------ 1 file changed, 8 insertions(+), 36 deletions(-) diff --git a/bash.spec b/bash.spec index 1f8ba02..c725177 100644 --- a/bash.spec +++ b/bash.spec @@ -1,14 +1,6 @@ -%if %{?openEuler:1}0 -%global ENABLE_RELOC 0 -%endif - -%if %{?ENABLE_RELOC} -%global ldflags_options -Wl,--emit-relocs -%endif - Name: bash Version: 5.1.8 -Release: 13 +Release: 14 Summary: It is the Bourne Again Shell License: GPLv3 URL: https://www.gnu.org/software/bash @@ -76,16 +68,6 @@ Requires: pkgconf-pkg-config %description devel This package contains development files for %{name}. -%if %{?ENABLE_RELOC} -%package relocation -Summary: Relocations for %{name} -Requires: %{name} = %{version}-%{release} -BuildRequires: sysboost-devel - -%description relocation -This package contains relocations for %{name}. -%endif - %package help Summary: Documents for %{name} Buildarch: noarch @@ -101,17 +83,12 @@ Man pages and other related documents for %{name}. %build autoconf -%configure --with-bash-malloc=no --with-afs LDFLAGS="%{?ldflags_options}" +%configure --with-bash-malloc=no --with-afs MFLAGS="CPPFLAGS=-D_GNU_SOURCE -DRECYCLES_PIDS -DDEFAULT_PATH_VALUE='\"/usr/local/bin:/usr/bin\"' `getconf LFS_CFLAGS`" make "$MFLAGS" version.h make "$MFLAGS" -C builtins %make_build "$MFLAGS" -%if %{?ENABLE_RELOC} -objreloc $RPM_BUILD_DIR/%{name}-%{version}/bash -rm -rf $RPM_BUILD_DIR/%{name}-%{version}/bash.prim -%endif - %install %make_install install-headers ln -sf bash %{buildroot}%{_bindir}/sh @@ -120,11 +97,6 @@ install -pDm 644 %SOURCE2 %{buildroot}/etc/skel/.bash_profile install -pDm 644 %SOURCE3 %{buildroot}/etc/skel/.bash_logout install -pDm 644 ./configs/alias.sh %{buildroot}%{_sysconfdir}/profile.d/alias.sh -%if %{?ENABLE_RELOC} -mkdir -p ${RPM_BUILD_ROOT}/usr/lib/relocation/%{_bindir} -install -pDm 400 $RPM_BUILD_DIR/%{name}-%{version}/bash.relocation ${RPM_BUILD_ROOT}/usr/lib/relocation/%{_bindir}/bash.relocation -%endif - # bug #820192, need to add execable alternatives for regular built-ins for ea in alias bg cd command fc fg getopts hash jobs read type ulimit umask unalias wait do @@ -148,12 +120,6 @@ make check %{_bindir}/{hash,getopts,jobs,read,type,ulimit,umask,unalias} %config(noreplace) %{_sysconfdir}/profile.d/alias.sh -%if %{?ENABLE_RELOC} -%files relocation -%defattr(-,root,root) -/usr/lib/relocation/%{_bindir}/bash.relocation -%endif - %files devel %defattr(-,root,root) %{_includedir}/%{name} @@ -171,6 +137,12 @@ make check %exclude %{_infodir}/dir %changelog +* Wed Feb 28 2024 liutie -5.1.8-14 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:Relocations are no longer required. + * Wed Feb 28 2024 wangyuhang -5.1.8-13 - Type:bugfix - ID:NA -- Gitee