failed to build against linux-unstable=5.18.0-1.1: CONFIG_VIDEO_V4L2 obsoleted

Bug #1970983 reported by You-Sheng Yang
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
v4l2loopback (Ubuntu)
Fix Released
High
You-Sheng Yang
Jammy
Fix Released
High
You-Sheng Yang
Kinetic
Fix Released
High
You-Sheng Yang

Bug Description

In commit 9958d30f38b9 ("media: Kconfig: cleanup VIDEO_DEV dependencies"), VIDEO_V4L2 is now obsoleted and VIDEO_DEV should be used instead. This fails the added grep statement in bug 1964484 evaluates to empty as always, and BUILD_EXCLUSIVE_KERNEL is therefore always set on those should not. The error messages will be like:

II: dkms-build building v4l2loopback
Creating symlink /tmp/kernel-vicamo-ce1c8356cf164-8jMF/build/debian/build/build-generic/_________________________dkms/build/v4l2loopback/0.12.5/source -> /tmp/kernel-vicamo-ce1c8356cf164-8jMF/build/debian/build/build-generic/_________________________dkms/source/v4l2loopback-0.12.5
Error! The /tmp/kernel-vicamo-ce1c8356cf164-8jMF/build/debian/build/build-generic/_________________________dkms/build/v4l2loopback/0.12.5/5.18.0-2001-generic/x86_64/dkms.conf for module v4l2loopback includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch.
This indicates that it should not be built.
debian/scripts/dkms-build: line 176: /tmp/kernel-vicamo-ce1c8356cf164-8jMF/build/debian/build/build-generic/_________________________dkms/build/v4l2loopback/0.12.5/build/make.log: No such file or directory
make: *** [debian/rules.d/2-binary-arch.mk:235: /tmp/kernel-vicamo-ce1c8356cf164-8jMF/build/debian/stamps/stamp-install-generic] Error 1

Revision history for this message
You-Sheng Yang (vicamo) wrote :

Tested:
$ dpkg -l|grep linux-headers-5|awk '{print $2}'
linux-headers-5.15.0-1005-kvm
linux-headers-5.15.0-28
linux-headers-5.15.0-28-generic
linux-headers-5.17.0-1003-oem
linux-headers-5.18.0-1-generic
$ dkms status
v4l2loopback/0.12.5, 5.15.0-28-generic, x86_64: installed
v4l2loopback/0.12.5, 5.17.0-1003-oem, x86_64: installed
v4l2loopback/0.12.5, 5.18.0-1-generic, x86_64: installed

Prebuilt PPA: https://launchpad.net/~vicamo/+archive/ubuntu/ppa-1970983

Changed in v4l2loopback (Ubuntu Kinetic):
status: New → In Progress
importance: Undecided → High
assignee: nobody → You-Sheng Yang (vicamo)
Changed in v4l2loopback (Ubuntu Jammy):
status: New → Triaged
importance: Undecided → High
assignee: nobody → You-Sheng Yang (vicamo)
Revision history for this message
You-Sheng Yang (vicamo) wrote :

While we'll have 5.18 kernel in Jammy soon or later, also nominate for Jammy.

Revision history for this message
You-Sheng Yang (vicamo) wrote :

Need sponsor.

Revision history for this message
You-Sheng Yang (vicamo) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package v4l2loopback - 0.12.5-1ubuntu6

---------------
v4l2loopback (0.12.5-1ubuntu6) kinetic; urgency=low

  * Check CONFIG_VIDEO_DEV against kernel version >= 5.18. (LP: #1970983)

 -- You-Sheng Yang <email address hidden> Tue, 03 May 2022 03:55:33 +0000

Changed in v4l2loopback (Ubuntu Kinetic):
status: In Progress → Fix Released
Revision history for this message
Andi (keefer-a) wrote :

Thanks, this fix in the PPA https://launchpad.net/~vicamo/+archive/ubuntu/ppa-1970983 works for me on Ubuntu 22.04 with kernel 5.18.x and 5.19.x

Revision history for this message
Łukasz Zemczak (sil2100) wrote : Please test proposed package

Hello You-Sheng, or anyone else affected,

Accepted v4l2loopback into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/v4l2loopback/0.12.7-2ubuntu2~22.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in v4l2loopback (Ubuntu Jammy):
status: Triaged → Fix Committed
tags: added: verification-needed verification-needed-jammy
Revision history for this message
Kleber Sacilotto de Souza (kleber-souza) wrote :

Verification in Jammy with kernels up to 5.19 done on bug 1999670.

tags: added: verification-done-jammy
removed: verification-needed-jammy
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package v4l2loopback - 0.12.7-2ubuntu2~22.04.1

---------------
v4l2loopback (0.12.7-2ubuntu2~22.04.1) jammy; urgency=medium

  * Backport dkms support for HWE kernels. LP: #1999670

v4l2loopback (0.12.7-2ubuntu2) kinetic; urgency=medium

  * Preserve CC setting when invoking sub-make, to ensure module can be
    built correctly with the kernel's custom compiler. Fixes FTBFS in
    hwe-5.19 build. LP: #1991664

v4l2loopback (0.12.7-2ubuntu1) kinetic; urgency=medium

  * Merge from Debian, remaining changes:
    - drop module-assistant autopkgtest
    - add Ubuntu patch track active-readers
    - add Ubuntu patch implement support for V4L2_EVENT_PRI_CLIENT_USAGE

v4l2loopback (0.12.7-2) unstable; urgency=medium

  * Fix DKMS build on linux>=5.18

v4l2loopback (0.12.7-1) unstable; urgency=medium

  * New upstream version 0.12.7

  [ Andreas Beckmann ]
  * Switch to dh-sequence-dkms.
  * Switch to Testsuite: autopkgtest-pkg-dkms.

  [ Debian Janitor ]
  * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository,
    Repository-Browse.
  * Remove constraints unnecessary since buster

  [ IOhannes m zmölnig ]
  * Drop patches applied upstream
  * Drop unnecessary B-Ds
  * Bump dh-compat to 13
  * Bump standards version to 4.6.1

v4l2loopback (0.12.5-1ubuntu7) kinetic; urgency=medium

  * Drop obsolte REMAKE_INITRD option from dkms.conf.
  * Update module init & exit calls to use kernel provided macros, such
    that they gain correct IBT attributes. LP: #1980484

v4l2loopback (0.12.5-1ubuntu6) kinetic; urgency=low

  * Check CONFIG_VIDEO_DEV against kernel version >= 5.18. (LP: #1970983)

 -- Dimitri John Ledkov <email address hidden> Mon, 16 Jan 2023 11:22:08 +0000

Changed in v4l2loopback (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for v4l2loopback has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.