diff options
author | Cullum Smith <cullum@sacredheartsc.com> | 2024-12-10 23:02:57 -0500 |
---|---|---|
committer | Cullum Smith <cullum@sacredheartsc.com> | 2024-12-10 23:02:57 -0500 |
commit | 14d8a6cd16ba161fe067aad761623121f6522f35 (patch) | |
tree | 55426a90f26cd885e3fb554298d74f707b66b004 /scripts | |
parent | 14ba57eee630891c47a63950621792bd8a26ec03 (diff) | |
download | infrastructure-14d8a6cd16ba161fe067aad761623121f6522f35.tar.gz |
build 32bit WINE
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/hostclass/pkg_repository | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/scripts/hostclass/pkg_repository b/scripts/hostclass/pkg_repository index 3d7b34f..241ee0e 100644 --- a/scripts/hostclass/pkg_repository +++ b/scripts/hostclass/pkg_repository @@ -5,7 +5,7 @@ : ${poudriere_dataset:="${state_dataset:-zroot}"} : ${poudriere_make_jobs_number:='8'} : ${poudriere_priority_boost:='gcc* llvm* rust'} -: ${poudriere_allow_make_jobs_packages:='ImageMagick* bitwarden-cli cargo-c *chromium* cmake cmake-core digikam eclipse electron* ffmpeg firefox thunderbird gcc* gnutls gtk3* icu libreoffice* llvm* mongodb* mysql*-client mysql*-server node* openjdk* openssl pkg postgresql* qt*-webengine rust webkit* vaultwarden'} +: ${poudriere_allow_make_jobs_packages:='ImageMagick* bitwarden-cli cargo-c *chromium* cmake cmake-core digikam eclipse electron* ffmpeg firefox thunderbird gcc* gnutls gtk3* icu libreoffice* llvm* mongodb* mysql*-client mysql*-server node* openjdk* openssl pkg postgresql* qt*-webengine rust webkit* wine vaultwarden'} : ${poudriere_ccache_size:='50.0G'} : ${poudriere_default_versions:='imagemagick=7-nox11'} @@ -41,7 +41,8 @@ install_template -m 0644 \ "${poudriere_conf_dir}/make.conf" \ "${poudriere_conf_dir}/idm-make.conf" \ "${poudriere_conf_dir}/pkglist" \ - "${poudriere_conf_dir}/idm-pkglist" + "${poudriere_conf_dir}/idm-pkglist" \ + "${poudriere_conf_dir}/i386-pkglist" install_file -m 0400 /usr/local/etc/ssl/repo.key install_directory -m 0755 /usr/ports/distfiles install_directory -m 0755 -o nobody -g nobody "${poudriere_data_dir}/ccache" @@ -84,6 +85,7 @@ for version in $poudriere_versions; do abi="FreeBSD:${version%%.*}:$(uname -p)" [ -d "${poudriere_data_dir}/jails/${jail}" ] || poudriere jail -c -j "$jail" -v "$version" + poudriere jail -u -j "$jail" poudriere bulk -v -j "$jail" -f "${poudriere_conf_dir}/idm-pkglist" -p latest -z idm poudriere pkgclean -j "$jail" -f "${poudriere_conf_dir}/idm-pkglist" -p latest -z idm -y @@ -93,6 +95,17 @@ for version in $poudriere_versions; do install_directory -m 0755 "${poudriere_data_dir}/data/packages/${abi}" ln -snfv "../${jail}-latest" "${poudriere_data_dir}/data/packages/${abi}/latest" ln -snfv "../${jail}-latest-idm" "${poudriere_data_dir}/data/packages/${abi}/latest-idm" + + # Build 32-bit WINE (lol) + jail="$(echo "$version" | tr . _)-i386" + abi="FreeBSD:${version%%.*}:i386" + + [ -d "${poudriere_data_dir}/jails/${jail}" ] || poudriere jail -c -j "$jail" -a i386 -v "$version" + poudriere bulk -v -j "$jail" -f "${poudriere_conf_dir}/i386-pkglist" -p latest + poudriere pkgclean -j "$jail" -f "${poudriere_conf_dir}/i386-pkglist" -p latest -y + + install_directory -m 0755 "${poudriere_data_dir}/data/packages/${abi}" + ln -snfv "../${jail}-latest" "${poudriere_data_dir}/data/packages/${abi}/latest" done # Clean stale distfiles and logs. |