Skip to content

Commit

Permalink
Take recommendation for ld alternatives.
Browse files Browse the repository at this point in the history
  • Loading branch information
mulderje committed Apr 1, 2024
1 parent 1551c8e commit 27af704
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/scripts/build-kmod-facetimehd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ set -oeux pipefail
mkdir -p /tmp /var/tmp
chmod -R 1777 /var/tmp

# From: https://github.com/ublue-os/akmods/pull/158#issuecomment-2030445267
# alternatives cannot create symlinks on its own during a container build
ln -sf /usr/bin/ld.bfd /etc/alternatives/ld && ln -sf /etc/alternatives/ld /usr/bin/ld

ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME:-kernel}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"
RELEASE="$(rpm -E '%fedora')"
Expand All @@ -19,7 +23,7 @@ wget "https://copr.fedorainfracloud.org/coprs/mulderje/facetimehd-kmod/repo/fedo

### BUILD facetimehd (succeed or fail-fast with debug output)
rpm-ostree install \
"akmod-facetimehd-*.fc${RELEASE}.${ARCH}"
akmod-facetimehd-*.fc${RELEASE}.${ARCH}
akmods --force --kernels "${KERNEL}" --kmod facetimehd
modinfo "/usr/lib/modules/${KERNEL}/extra/facetimehd/facetimehd.ko.xz" > /dev/null \
|| (find /var/cache/akmods/facetimehd/ -name \*.log -print -exec cat {} \; && exit 1)
Expand Down

0 comments on commit 27af704

Please sign in to comment.