Skip to content

Commit

Permalink
Add ability to add custom packages
Browse files Browse the repository at this point in the history
Since drm-kmod is never going to match 12.2, we should just fix this now.

Any line starting with https in the package files is pulled separately.
They should be in reverse order of dependencies.

I've build drm-kmod for 12.2, but of course these could come from anywhere.
  • Loading branch information
crees committed Feb 26, 2021
1 parent 27a62c7 commit 8e4ed05
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
15 changes: 6 additions & 9 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,12 @@ 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;/^https/d' "${cwd}/settings/packages.$p" | \
xargs /usr/local/sbin/pkg-static -c "${uzip}" install -y
sed -ne "/^https/s/%%ARCH%%/${arch}/p" "${cwd}/settings/packages.$p" | \
xargs /usr/local/sbin/pkg-static -c "${uzip}" add
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
Expand All @@ -196,12 +199,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
Expand Down
7 changes: 4 additions & 3 deletions settings/packages.common-12
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@ 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
Expand Down Expand Up @@ -60,3 +58,6 @@ b43-fwcutter
dsbdriverd
# Control screen brightness on some Intel-based machines including MacBook Pro
intel-backlight
https://www.bayofrum.net/~crees/pkg/hello-12.2%%ARCH%%-drm/gpu-firmware-kmod-g20201213.txz
https://www.bayofrum.net/~crees/pkg/hello-12.2%%ARCH%%-drm/drm-fbsd12.0-kmod-4.16.g20201016_1.txz
https://www.bayofrum.net/~crees/pkg/hello-12.2%%ARCH%%-drm/drm-kmod-g20190710_1.txz

1 comment on commit 8e4ed05

@grahamperrin
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.