Skip to content

Commit

Permalink
Try installing packages from https using the real major version
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd authored Jul 10, 2022
1 parent 0de1b52 commit aa8d549
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ pkg_add_from_url()
url=$1
pkg_cachesubdir=$2
abi=${3+env ABI=$3} # Set $abi to "env ABI=$3" only if a third argument is provided
echo "pkg_add_from_url: ${url}"

pkgfile=${url##*/}
if [ ! -e ${uzip}${pkg_cachedir}/${pkg_cachesubdir}/${pkgfile} ]; then
Expand Down Expand Up @@ -212,11 +213,8 @@ packages()
# Install packages beginning with 'https:'
mkdir -p ${uzip}${pkg_cachedir}/furybsd-https
for url in $(grep -e '^https' "${cwd}/settings/packages.$p"); do
# First, try installing this using the real major version
pkg_add_from_url "$url" furybsd-https "freebsd:$MAJOR:$arch" || true
# Second, try installing this using
# ABI=freebsd:12:$arch in an attempt to use package built on 12 for 13
pkg_add_from_url "$url" furybsd-https "freebsd:12:$arch" || true
# First, try installing this using the real major version, then try to install package built for major version 12
pkg_add_from_url "$url" furybsd-https || pkg_add_from_url "$url" furybsd-https "freebsd:12:$arch"
done
done
# Install the packages we have generated in pkg() that are listed in transient-packages-list
Expand Down

0 comments on commit aa8d549

Please sign in to comment.