Skip to content

Commit

Permalink
evdi (displaylink) not ready on negativo17 for F41
Browse files Browse the repository at this point in the history
  • Loading branch information
bsherman committed Oct 8, 2024
1 parent 93d0455 commit 4b8481e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions build-kmod-evdi.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

set -oeux pipefail
set -oux pipefail


ARCH="$(rpm -E '%_arch')"
Expand All @@ -9,10 +9,19 @@ RELEASE="$(rpm -E '%fedora')"

cp /tmp/ublue-os-akmods-addons/rpmbuild/SOURCES/negativo17-fedora-multimedia.repo /etc/yum.repos.d/

if [[ "${FEDORA_MAJOR_VERSION}" -ge 41 ]]; then
if dnf search displaylink|grep -qv "displaylink"; then
echo "Skipping build of evdi; displaylink net yet provided by negativo17"
exit 0
fi
fi

set -e pipefail

### BUILD evdi (succeed or fail-fast with debug output)
export CFLAGS="-fno-pie -no-pie"
dnf install -y \
akmod-evdi-*.fc${RELEASE}.${ARCH}
kmod-evdi*.fc${RELEASE}.${ARCH} akmod-evdi-*.fc${RELEASE}.${ARCH}

Check warning on line 24 in build-kmod-evdi.sh

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

build-kmod-evdi.sh#L24

Double quote to prevent globbing and word splitting.
akmods --force --kernels "${KERNEL}" --kmod evdi
modinfo /usr/lib/modules/${KERNEL}/extra/evdi/evdi.ko.xz > /dev/null \
|| (find /var/cache/akmods/evdi/ -name \*.log -print -exec cat {} \; && exit 1)
Expand Down

0 comments on commit 4b8481e

Please sign in to comment.