diff --git a/build.sh b/build.sh index 7d23fee6..61e29d75 100755 --- a/build.sh +++ b/build.sh @@ -183,9 +183,19 @@ packages() mount_nullfs ${packages} ${uzip}/var/cache/pkg mount -t devfs devfs ${uzip}/dev # FIXME: In the following line, the hardcoded "i386" needs to be replaced by "${arch}" - how? - cat "${cwd}/settings/packages.common-${MAJOR}" | sed '/^#/d' | sed '/\!i386/d' | xargs /usr/local/sbin/pkg-static -c "${uzip}" install -y - cat "${cwd}/settings/packages.${desktop}" | sed '/^#/d' | sed '/\!i386/d' | xargs /usr/local/sbin/pkg-static -c "${uzip}" install -y - + for p in common-${MAJOR} ${desktop}; do + sed '/^#/d;/\!i386/d;/^cirrus:/d' "${cwd}/settings/packages.$p" | \ + xargs /usr/local/sbin/pkg-static -c "${uzip}" install -y + pkg_cachedir=/var/cache/pkg + mkdir -p ${uzip}${pkg_cachedir}/furybsd-cirrus + for url in $(sed -ne "s,^cirrus:,https://api.cirrus-ci.com/v1/artifact/,;s,%%ARCH%%,$arch,;s,%%VER%%,$VER,p" "${cwd}/settings/packages.$p"); do + pkgfile=${url##*/} + if [ ! -e ${uzip}${pkg_cachedir}/furybsd-cirrus/${pkgfile} ]; then + fetch -o ${uzip}${pkg_cachedir}/furybsd-cirrus/ $url + fi + /usr/local/sbin/pkg-static -c "${uzip}" add ${pkg_cachedir}/furybsd-cirrus/${pkgfile} + done + done # Install the packages we have generated in pkg() that are listed in transient-packages-list ls -lh "${packages}/transient/" while read -r p; do @@ -196,12 +206,6 @@ packages() /usr/local/sbin/pkg-static -r ${uzip} add "${packages}/transient/${p}" # pkg-static add has no -y done <"${packages}/transient/transient-packages-list" - # Workaround for kernel-related packages being broken in the default package repository - # as long as the previous dot release is still supported; FIXME - # https://forums.freebsd.org/threads/i915kms-package-breaks-on-12-2-release-workaround-build-from-ports.77501/ - # FIXME: Add https://darkness-pi.monwarez.ovh/posts/synth-repository/ properly. How? - # IGNORE_OSVERSION=yes /usr/local/sbin/pkg-static -c "${uzip}" add https://darkness-pi.monwarez.ovh/amd64/All/drm-fbsd12.0-kmod-4.16.g20200221.txz - # For now we are just going back to using 12.1 rather than 12.2 /usr/local/sbin/pkg-static -c ${uzip} info > "${cdroot}/data/system.uzip.manifest" cp "${cdroot}/data/system.uzip.manifest" "${isopath}.manifest" rm ${uzip}/etc/resolv.conf diff --git a/settings/packages.common-12 b/settings/packages.common-12 index 35740c15..7df4a465 100644 --- a/settings/packages.common-12 +++ b/settings/packages.common-12 @@ -10,17 +10,16 @@ xf86-input-mouse xf86-input-vmmouse xf86-video-ati xf86-video-cirrus +xf86-video-intel xf86-video-scfb xf86-video-vesa xf86-video-vmware xf86-video-qxl # !i386 -drm-kmod -drm-legacy-kmod libva-intel-driver -drm-kmod # nvidia-driver # !i386 # Is now handled in build.sh initgfx() mesa-libs mesa-dri +gpu-firmware-kmod open-vm-tools virtualbox-ose-additions xauth @@ -60,3 +59,4 @@ b43-fwcutter dsbdriverd # Control screen brightness on some Intel-based machines including MacBook Pro intel-backlight +cirrus:github/crees/drm-kmod-FreeBSD-12/main/binaries/drm-fbsd12.0-kmod-%%VER%%%%ARCH%%.txz