About --- Using the epel-7-sclo-x86_64 chroot: dev8 tools in CentOS 7 as shown below, the PATH must be changed to get the devtoolset-8 suite to work. // resulting path from sclo-set.sh, shown below sh-4.2# echo $PATH /opt/rh/sclo-git212/root/usr/bin:/opt/rh/devtoolset-8/root/usr/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin // the dev8 loader is now first in the path and we have i386pep support sh-4.2# ld -V GNU ld version 2.30-55.el7.2 Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu i386linux elf_l1om elf_k1om i386pep i386pe // each time mock is used, the path is set for dev8 sh-4.2# cat /etc/profile.d/sclo-set.sh source scl_source enable devtoolset-8 sclo-git212 // efi support comes from binutils in dev8 [mockbuild@fc34vm ~]$ ls -al /var/lib/mock/epel-7-sclo-x86_64/root/builddir/build/BUILD/xen-4.11.4/dist/install/boot/efi/EFI/centos/ total 8292 drwxr-xr-x 2 mockbuild mockbuild 4096 Aug 31 14:48 . drwxr-xr-x 3 mockbuild mockbuild 4096 Aug 31 14:37 .. -rwxr-xr-x 1 mockbuild mockbuild 2695751 Aug 31 14:40 xen-4.11.efi -rwxr-xr-x 1 mockbuild mockbuild 2964177 Aug 31 14:38 xen-4.11-perf.efi -rwxr-xr-x 1 mockbuild mockbuild 2814187 Aug 31 14:48 xen-4.11-xsm.efi // 3 hunks to add sclo dev8 to the SPEC @@ -220,6 +222,10 @@ BuildRequires: git perl-Git %endif +%if %{defined _with_scl} +BuildRequires: devtoolset-8 sclo-git212 +%endif + %description This package contains the xendomain script and systemd service file, needed to manage virtual machines running under the Xen hypervisor // 2nd hunk @@ -347,6 +355,12 @@ %prep %prep_reuse +%if %{defined _with_scl} +source /opt/rh/devtoolset-8/enable +source /opt/rh/sclo-git212/enable +set; +%endif + %setup -q -n %{name}-%{tarversion} %global pchcnt %{lua: if patches == nil then print("0") else print(#patches) end} // 3rd hunk @@ -398,6 +415,12 @@ %build %prep_reuse +%if %{defined _with_scl} +source /opt/rh/devtoolset-8/enable +source /opt/rh/sclo-git212/enable +set; +%endif + ./autogen.sh #if build_efi --- end SPEC mod ---