toolchain: Build coreutils and findutils after libselinux. (#4292)

* toolchain: Build coreutils and findutils after libselinux.

This is required to enable SELinux support.

* Fix findutils spec lint issues.
This commit is contained in:
Chris PeBenito 2022-11-28 14:51:40 -05:00 коммит произвёл GitHub
Родитель 8db92e4afc
Коммит cf1c8cd003
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
7 изменённых файлов: 52 добавлений и 32 удалений

Просмотреть файл

@ -1,7 +1,7 @@
Summary: Basic system utilities
Name: coreutils
Version: 8.32
Release: 5%{?dist}
Release: 6%{?dist}
License: GPLv3
Vendor: Microsoft Corporation
Distribution: Mariner
@ -103,6 +103,9 @@ LANGUAGE=en_US.UTF-8 LC_ALL=en_US.UTF-8 make -k check
%defattr(-,root,root)
%changelog
* Wed Nov 23 2022 Chris PeBenito <chpebeni@microsoft.com> - 8.32-6
- Force rebuild to address missing SELinux features.
* Mon Jul 11 2022 Olivia Crain <oliviacrain@microsoft.com> - 8.32-5
- Add upstream patch to fix race in env-signal-handler test
- Ensure SRPMs built on any architecture include all patches

Просмотреть файл

@ -1,19 +1,18 @@
Summary: This package contains programs to find files
Name: findutils
Version: 4.8.0
Release: 3%{?dist}
Release: 4%{?dist}
License: GPLv3+
URL: http://www.gnu.org/software/findutils
Group: Applications/File
Vendor: Microsoft Corporation
Distribution: Mariner
Group: Applications/File
URL: https://www.gnu.org/software/findutils
Source0: https://ftp.gnu.org/gnu/findutils/%{name}-%{version}.tar.xz
Requires: libselinux
BuildRequires: libselinux-devel
Requires: libselinux
Conflicts: toybox
# Required to unblock automatic BR resolution for some Python packages.
Provides: /usr/bin/find
Provides: %{_bindir}/find
%description
These programs are provided to recursively search through a
@ -25,6 +24,7 @@ database has not been recently updated).
Summary: Additional language files for findutils
Group: Applications/File
Requires: %{name} = %{version}-%{release}
%description lang
These are the additional language files of findutils
@ -64,26 +64,40 @@ make %{?_smp_mflags} check
%defattr(-,root,root)
%changelog
* Wed Nov 23 2022 Chris PeBenito <chpebeni@microsoft.com> - 4.8.0-4
- Force rebuild to address missing SELinux features.
- Fix spec lint issues.
* Wed Mar 23 2022 Chris PeBenito <chpebeni@microsoft.com> 4.8.0-3
- Add missing (Build)Requires needed to enable SELinux support.
* Mon Feb 14 2022 Pawel Winogrodzki <pawelwi@microsoft.com> 4.8.0-2
- Adding "Provides: /usr/bin/find".
* Fri Oct 22 2021 Andrew Phelps <anphel@microsoft.com> 4.8.0-1
- Update to version 4.8.0
- License verified
* Sat May 09 2020 Nick Samson <nisamson@microsoft.com> 4.6.0-7
- Added %%license line automatically
* Tue Sep 03 2019 Mateusz Malisz <mamalisz@microsoft.com> 4.6.0-6
- Initial CBL-Mariner import from Photon (license: Apache2).
* Sun Sep 09 2018 Alexey Makhalov <amakhalov@vmware.com> 4.6.0-5
- Fix compilation issue against glibc-2.28
* Mon Oct 02 2017 Alexey Makhalov <amakhalov@vmware.com> 4.6.0-4
- Added conflicts toybox
* Tue May 02 2017 Anish Swaminathan <anishs@vmware.com> 4.6.0-3
- Add lang package.
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.6.0-2
- GA - Bump release of all rpms
* Tue Apr 26 2016 Anish Swaminathan <anishs@vmware.com> 4.6.0-1
- Updated to version 4.6.0
* Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 4.4.2-1
- Initial build. First version

Просмотреть файл

@ -40,8 +40,8 @@ ncurses-libs-6.3-2.cm2.aarch64.rpm
ncurses-term-6.3-2.cm2.aarch64.rpm
readline-8.1-1.cm2.aarch64.rpm
readline-devel-8.1-1.cm2.aarch64.rpm
coreutils-8.32-5.cm2.aarch64.rpm
coreutils-lang-8.32-5.cm2.aarch64.rpm
coreutils-8.32-6.cm2.aarch64.rpm
coreutils-lang-8.32-6.cm2.aarch64.rpm
bash-5.1.8-1.cm2.aarch64.rpm
bash-devel-5.1.8-1.cm2.aarch64.rpm
bash-lang-5.1.8-1.cm2.aarch64.rpm
@ -58,8 +58,8 @@ grep-3.7-2.cm2.aarch64.rpm
grep-lang-3.7-2.cm2.aarch64.rpm
diffutils-3.8-1.cm2.aarch64.rpm
gawk-5.1.0-2.cm2.aarch64.rpm
findutils-4.8.0-3.cm2.aarch64.rpm
findutils-lang-4.8.0-3.cm2.aarch64.rpm
findutils-4.8.0-4.cm2.aarch64.rpm
findutils-lang-4.8.0-4.cm2.aarch64.rpm
gettext-0.21-2.cm2.aarch64.rpm
gzip-1.12-1.cm2.aarch64.rpm
make-4.3-2.cm2.aarch64.rpm

Просмотреть файл

@ -40,8 +40,8 @@ ncurses-libs-6.3-2.cm2.x86_64.rpm
ncurses-term-6.3-2.cm2.x86_64.rpm
readline-8.1-1.cm2.x86_64.rpm
readline-devel-8.1-1.cm2.x86_64.rpm
coreutils-8.32-5.cm2.x86_64.rpm
coreutils-lang-8.32-5.cm2.x86_64.rpm
coreutils-8.32-6.cm2.x86_64.rpm
coreutils-lang-8.32-6.cm2.x86_64.rpm
bash-5.1.8-1.cm2.x86_64.rpm
bash-devel-5.1.8-1.cm2.x86_64.rpm
bash-lang-5.1.8-1.cm2.x86_64.rpm
@ -58,8 +58,8 @@ grep-3.7-2.cm2.x86_64.rpm
grep-lang-3.7-2.cm2.x86_64.rpm
diffutils-3.8-1.cm2.x86_64.rpm
gawk-5.1.0-2.cm2.x86_64.rpm
findutils-4.8.0-3.cm2.x86_64.rpm
findutils-lang-4.8.0-3.cm2.x86_64.rpm
findutils-4.8.0-4.cm2.x86_64.rpm
findutils-lang-4.8.0-4.cm2.x86_64.rpm
gettext-0.21-2.cm2.x86_64.rpm
gzip-1.12-1.cm2.x86_64.rpm
make-4.3-2.cm2.x86_64.rpm

Просмотреть файл

@ -30,9 +30,9 @@ chkconfig-debuginfo-1.20-3.cm2.aarch64.rpm
chkconfig-lang-1.20-3.cm2.aarch64.rpm
cmake-3.21.4-2.cm2.aarch64.rpm
cmake-debuginfo-3.21.4-2.cm2.aarch64.rpm
coreutils-8.32-5.cm2.aarch64.rpm
coreutils-debuginfo-8.32-5.cm2.aarch64.rpm
coreutils-lang-8.32-5.cm2.aarch64.rpm
coreutils-8.32-6.cm2.aarch64.rpm
coreutils-debuginfo-8.32-6.cm2.aarch64.rpm
coreutils-lang-8.32-6.cm2.aarch64.rpm
cpio-2.13-4.cm2.aarch64.rpm
cpio-debuginfo-2.13-4.cm2.aarch64.rpm
cpio-lang-2.13-4.cm2.aarch64.rpm
@ -81,9 +81,9 @@ file-devel-5.40-2.cm2.aarch64.rpm
file-libs-5.40-2.cm2.aarch64.rpm
filesystem-1.1-12.cm2.aarch64.rpm
filesystem-asc-1.1-12.cm2.aarch64.rpm
findutils-4.8.0-3.cm2.aarch64.rpm
findutils-debuginfo-4.8.0-3.cm2.aarch64.rpm
findutils-lang-4.8.0-3.cm2.aarch64.rpm
findutils-4.8.0-4.cm2.aarch64.rpm
findutils-debuginfo-4.8.0-4.cm2.aarch64.rpm
findutils-lang-4.8.0-4.cm2.aarch64.rpm
flex-2.6.4-7.cm2.aarch64.rpm
flex-debuginfo-2.6.4-7.cm2.aarch64.rpm
flex-devel-2.6.4-7.cm2.aarch64.rpm

Просмотреть файл

@ -30,9 +30,9 @@ chkconfig-debuginfo-1.20-3.cm2.x86_64.rpm
chkconfig-lang-1.20-3.cm2.x86_64.rpm
cmake-3.21.4-2.cm2.x86_64.rpm
cmake-debuginfo-3.21.4-2.cm2.x86_64.rpm
coreutils-8.32-5.cm2.x86_64.rpm
coreutils-debuginfo-8.32-5.cm2.x86_64.rpm
coreutils-lang-8.32-5.cm2.x86_64.rpm
coreutils-8.32-6.cm2.x86_64.rpm
coreutils-debuginfo-8.32-6.cm2.x86_64.rpm
coreutils-lang-8.32-6.cm2.x86_64.rpm
cpio-2.13-4.cm2.x86_64.rpm
cpio-debuginfo-2.13-4.cm2.x86_64.rpm
cpio-lang-2.13-4.cm2.x86_64.rpm
@ -81,9 +81,9 @@ file-devel-5.40-2.cm2.x86_64.rpm
file-libs-5.40-2.cm2.x86_64.rpm
filesystem-1.1-12.cm2.x86_64.rpm
filesystem-asc-1.1-12.cm2.x86_64.rpm
findutils-4.8.0-3.cm2.x86_64.rpm
findutils-debuginfo-4.8.0-3.cm2.x86_64.rpm
findutils-lang-4.8.0-3.cm2.x86_64.rpm
findutils-4.8.0-4.cm2.x86_64.rpm
findutils-debuginfo-4.8.0-4.cm2.x86_64.rpm
findutils-lang-4.8.0-4.cm2.x86_64.rpm
flex-2.6.4-7.cm2.x86_64.rpm
flex-debuginfo-2.6.4-7.cm2.x86_64.rpm
flex-devel-2.6.4-7.cm2.x86_64.rpm

Просмотреть файл

@ -263,7 +263,6 @@ build_rpm_in_chroot_no_install readline
build_rpm_in_chroot_no_install bash
build_rpm_in_chroot_no_install bzip2
build_rpm_in_chroot_no_install gdbm
build_rpm_in_chroot_no_install coreutils
build_rpm_in_chroot_no_install gettext
build_rpm_in_chroot_no_install sqlite
build_rpm_in_chroot_no_install expat
@ -274,7 +273,6 @@ build_rpm_in_chroot_no_install lz4
build_rpm_in_chroot_no_install m4
build_rpm_in_chroot_no_install libcap
build_rpm_in_chroot_no_install popt
build_rpm_in_chroot_no_install findutils
build_rpm_in_chroot_no_install tar
build_rpm_in_chroot_no_install gawk
build_rpm_in_chroot_no_install gzip
@ -467,6 +465,11 @@ build_rpm_in_chroot_no_install libselinux
chroot_and_install_rpms libselinux
# coreutils and findutils require libselinux
# for SELinux support.
build_rpm_in_chroot_no_install coreutils
build_rpm_in_chroot_no_install findutils
build_rpm_in_chroot_no_install glib
build_rpm_in_chroot_no_install libassuan
build_rpm_in_chroot_no_install npth