Bug#1018873: live-build --firmware-chroot option is broken due to nvidia-tesla{-470, }-kernel-support

S. sb56637 at gmail.com
Sat Oct 8 16:27:13 BST 2022


On Mon, 05 Sep 2022 16:24:45 +0000 Witold Baryluk <witold.baryluk at gmail.com> wrote:
> Package: nvidia-tesla-kernel-support
> Followup-For: Bug #1018873
> X-Debbugs-Cc: witold.baryluk at gmail.com
> 
> Just for reference if somebody needs to workaround this quickly, this patch should help:
> 
> --- /usr/share/live/build/functions/firmwarelists.sh	2022-09-05 16:23:22.053130441 +0000
> +++ /usr/share/live/build/functions/firmwarelists.sh.new	2022-09-05 16:22:05.412045133 +0000
> @@ -48,7 +48,7 @@
> 	    fi
>  
> 	    local PACKAGES
> -			PACKAGES="$(gunzip -c "${CONTENTS_FILE}" | awk '/^lib\/firmware/ { print $2 }' | sort -u )"
> +			PACKAGES="$(gunzip -c "${CONTENTS_FILE}" | awk '/^lib\/firmware/ { print $2 }' | grep -v nvidia | sort -u)"
> 	    FIRMWARE_PACKAGES="${FIRMWARE_PACKAGES} ${PACKAGES}"
>  
> 	    # Don't waste disk space, if not making use of caching
> 
> 
> 
> 
> 
> Apply from /, with patch -p0 < nvidia-fix.patch

Thank you!! This was driving me crazy, I couldn't figure out why my recent builds were including nvidia-* packages by default when none of the requested packages needed them as dependencies. I can't get the patch to apply, it fails with "Hunk #1 FAILED at 48." But I manually edited /usr/share/live/build/functions/firmwarelists.sh with your workaround and it does the job.



More information about the pkg-nvidia-devel mailing list