make: fix package tests (#10182)
This commit is contained in:
Родитель
a727635476
Коммит
dce67897b8
|
@ -1,7 +1,7 @@
|
|||
Summary: Program for compiling packages
|
||||
Name: make
|
||||
Version: 4.4.1
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPLv3+
|
||||
Vendor: Microsoft Corporation
|
||||
Distribution: Azure Linux
|
||||
|
@ -12,6 +12,8 @@ Source0: https://ftp.gnu.org/gnu/make/%{name}-%{version}.tar.gz
|
|||
%if 0%{?with_check}
|
||||
BuildRequires: perl(lib)
|
||||
BuildRequires: perl(FindBin)
|
||||
BuildRequires: shadow-utils
|
||||
BuildRequires: sudo
|
||||
%endif
|
||||
|
||||
%description
|
||||
|
@ -33,7 +35,9 @@ rm -rf %{buildroot}%{_infodir}
|
|||
%find_lang %{name}
|
||||
|
||||
%check
|
||||
%make_build check
|
||||
chmod g+w . -R
|
||||
useradd testuser -G root -m
|
||||
sudo -u testuser -s /bin/bash -c "PATH=$PATH make check"
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root)
|
||||
|
@ -43,6 +47,9 @@ rm -rf %{buildroot}%{_infodir}
|
|||
%{_mandir}/*/*
|
||||
|
||||
%changelog
|
||||
* Mon Aug 19 2024 Andrew Phelps <anphel@microsoft.com> - 4.4.1-2
|
||||
- Fix package tests by running as non-root user
|
||||
|
||||
* Mon Jan 22 2024 Andrew Phelps <anphel@microsoft.com> - 4.4.1-1
|
||||
- Upgrade to version 4.4.1
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ findutils-4.9.0-1.azl3.aarch64.rpm
|
|||
findutils-lang-4.9.0-1.azl3.aarch64.rpm
|
||||
gettext-0.22-1.azl3.aarch64.rpm
|
||||
gzip-1.13-1.azl3.aarch64.rpm
|
||||
make-4.4.1-1.azl3.aarch64.rpm
|
||||
make-4.4.1-2.azl3.aarch64.rpm
|
||||
patch-2.7.6-9.azl3.aarch64.rpm
|
||||
libcap-ng-0.8.4-1.azl3.aarch64.rpm
|
||||
libcap-ng-devel-0.8.4-1.azl3.aarch64.rpm
|
||||
|
|
|
@ -66,7 +66,7 @@ findutils-4.9.0-1.azl3.x86_64.rpm
|
|||
findutils-lang-4.9.0-1.azl3.x86_64.rpm
|
||||
gettext-0.22-1.azl3.x86_64.rpm
|
||||
gzip-1.13-1.azl3.x86_64.rpm
|
||||
make-4.4.1-1.azl3.x86_64.rpm
|
||||
make-4.4.1-2.azl3.x86_64.rpm
|
||||
patch-2.7.6-9.azl3.x86_64.rpm
|
||||
libcap-ng-0.8.4-1.azl3.x86_64.rpm
|
||||
libcap-ng-devel-0.8.4-1.azl3.x86_64.rpm
|
||||
|
|
|
@ -258,8 +258,8 @@ lz4-debuginfo-1.9.4-1.azl3.aarch64.rpm
|
|||
lz4-devel-1.9.4-1.azl3.aarch64.rpm
|
||||
m4-1.4.19-2.azl3.aarch64.rpm
|
||||
m4-debuginfo-1.4.19-2.azl3.aarch64.rpm
|
||||
make-4.4.1-1.azl3.aarch64.rpm
|
||||
make-debuginfo-4.4.1-1.azl3.aarch64.rpm
|
||||
make-4.4.1-2.azl3.aarch64.rpm
|
||||
make-debuginfo-4.4.1-2.azl3.aarch64.rpm
|
||||
meson-1.3.1-1.azl3.noarch.rpm
|
||||
mpfr-4.2.1-1.azl3.aarch64.rpm
|
||||
mpfr-debuginfo-4.2.1-1.azl3.aarch64.rpm
|
||||
|
|
|
@ -264,8 +264,8 @@ lz4-debuginfo-1.9.4-1.azl3.x86_64.rpm
|
|||
lz4-devel-1.9.4-1.azl3.x86_64.rpm
|
||||
m4-1.4.19-2.azl3.x86_64.rpm
|
||||
m4-debuginfo-1.4.19-2.azl3.x86_64.rpm
|
||||
make-4.4.1-1.azl3.x86_64.rpm
|
||||
make-debuginfo-4.4.1-1.azl3.x86_64.rpm
|
||||
make-4.4.1-2.azl3.x86_64.rpm
|
||||
make-debuginfo-4.4.1-2.azl3.x86_64.rpm
|
||||
meson-1.3.1-1.azl3.noarch.rpm
|
||||
mpfr-4.2.1-1.azl3.x86_64.rpm
|
||||
mpfr-debuginfo-4.2.1-1.azl3.x86_64.rpm
|
||||
|
|
Загрузка…
Ссылка в новой задаче