forked from pool/permissions
Accepting request 1129913 from home:dgarcia:branches:Base:System
- Remove dependency on /usr/bin/python3, making scripts to depends on the real python3 binary, not the link. bsc#1212476 OBS-URL: https://build.opensuse.org/request/show/1129913 OBS-URL: https://build.opensuse.org/package/show/Base:System/permissions?expand=0&rev=325
This commit is contained in:
parent
da6259c057
commit
c9d24eb083
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 27 11:38:26 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Remove dependency on /usr/bin/python3, making scripts to depends on
|
||||||
|
the real python3 binary, not the link. bsc#1212476
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jun 02 10:36:05 UTC 2023 - matthias.gerstner@suse.com
|
Fri Jun 02 10:36:05 UTC 2023 - matthias.gerstner@suse.com
|
||||||
|
|
||||||
|
@ -32,6 +32,7 @@ Source2: permissions.rpmlintrc
|
|||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libcap-devel
|
BuildRequires: libcap-devel
|
||||||
BuildRequires: libcap-progs
|
BuildRequires: libcap-progs
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: tclap
|
BuildRequires: tclap
|
||||||
# test suite
|
# test suite
|
||||||
BuildRequires: python3-base
|
BuildRequires: python3-base
|
||||||
@ -47,6 +48,13 @@ make %{?_smp_mflags} CXXFLAGS="%{optflags}"
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install fillupdir=%{_fillupdir}
|
%make_install fillupdir=%{_fillupdir}
|
||||||
|
# Fix shebang in scripts: Remove dependency on /usr/bin/python3,
|
||||||
|
# making scripts to depends on the real python3 binary, not the link.
|
||||||
|
# (bsc#1212476)
|
||||||
|
for f in %{buildroot}/usr/lib/zypp/plugins/commit/*
|
||||||
|
do
|
||||||
|
[ -f $f ] && sed -i "1s@#\!.*python.*@#\!$(realpath %__python3)@" $f
|
||||||
|
done
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# will fail on qemu with unshare: unshare failed: Invalid argument
|
# will fail on qemu with unshare: unshare failed: Invalid argument
|
||||||
|
Loading…
Reference in New Issue
Block a user