3
0

Accepting request 914525 from home:lnussel:usrmove

- statically link xmv to avoid glibc 2.34 dependency
  (__libc_start_main@GLIBC_2.34)
- turn on filetriggers in main package. Needed for single transaction upgrades
  (boo#1189788)

OBS-URL: https://build.opensuse.org/request/show/914525
OBS-URL: https://build.opensuse.org/package/show/Base:System/compat-usrmerge?expand=0&rev=22
This commit is contained in:
Ludwig Nussel 2021-08-27 07:17:50 +00:00 committed by Git OBS Bridge
parent a104c53819
commit 4dd25b596d
2 changed files with 14 additions and 8 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Aug 27 06:35:26 UTC 2021 - Ludwig Nussel <lnussel@suse.de>
- statically link xmv to avoid glibc 2.34 dependency
(__libc_start_main@GLIBC_2.34)
- turn on filetriggers in main package. Needed for single transaction upgrades
(boo#1189788)
-------------------------------------------------------------------
Tue Jun 15 15:27:41 UTC 2021 - Ludwig Nussel <lnussel@suse.de>

View File

@ -35,6 +35,7 @@ Source5: usrmerge.attr
Source6: usrmerge_binsbindeps.lua
Source7: usrmergefiles.py
BuildRequires: gcc
BuildRequires: glibc-static
BuildRequires: pkgconfig(rpm)
%description
@ -43,6 +44,7 @@ Scripts and data files related to UsrMerge
%package tools
Summary: UsrMerge tools
Requires: (compat-usrmerge if compat-usrmerge)
# have to turn requires off this off to avoid pulling in stuff
# before filessytem.
# xmv has very minimal glibc requirements and could probably be
@ -68,7 +70,7 @@ binaries in /(s)bin.
%build
gcc -Wall %optflags -o usrmergecheck %{SOURCE2} `pkg-config --libs rpm`
gcc -Wall %optflags -o xmv %{SOURCE4}
gcc -Wall %optflags -static -o xmv %{SOURCE4}
%install
install -D -m755 usrmergecheck %{buildroot}%{_bindir}/usrmergecheck
@ -144,8 +146,6 @@ end
EOF
%endif
%if 0%{?usrmerge_filetriggers}
%filetriggerin -p <lua> -- %{_sbindir} %{_bindir} %{_libdir}
require("usrmerge")
if posix.getenv("VERBOSE_FILETRIGGERS") then
@ -186,8 +186,6 @@ if pcall(require, 'usrmerge') then
io.flush()
end
%endif
%files
%dir %{_rpmconfigdir}/lua
%{_rpmconfigdir}/lua/usrmerge.lua