Skip to contentSkip to conversation

libdrm: remove alternative setup for kmstest

PATCH In review Denys Dmytriyenko 2 participants 4 messages Jan 5, 2023 – Jan 24, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libdrm: remove alternative setup for kmstest

From: Denys Dmytriyenko <[email protected]>

libdrm no longer provides kms driver and tests for it.

Fixes:

WARNING: libdrm-2.4.114-r0.arago3 do_package: libdrm: alternative target (/usr/bin/kmstest or /usr/bin/kmstest.libdrm) does not exist, skipping...
WARNING: libdrm-2.4.114-r0.arago3 do_package: libdrm: NOT adding alternative provide /usr/bin/kmstest: /usr/bin/kmstest.libdrm does not exist
WARNING: libdrm-2.4.114-r0.arago3 do_package: libdrm: alt_link == alt_target: /usr/bin/kmstest == /usr/bin/kmstest

---
 meta-arago-distro/recipes-graphics/drm/libdrm_%.bbappend | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
meta-arago-distro/recipes-graphics/drm/libdrm_%.bbappend +1 -7
index 85152b5f..ea8b5ca1 100644
@@ -8,10 +8,4 @@ file://0001-libsync-add-support-for-pre-v4.7-kernels.patch \
 file://0002-Add-sync_fence_info-and-sync_pt_info.patch \
 "
 
-PR:append = ".arago3"
-
-inherit update-alternatives
-
-ALTERNATIVE_PRIORITY = "10"
-ALTERNATIVE:${PN} = "kmstest"
-ALTERNATIVE_LINK_NAME[kmstest] = "${bindir}/kmstest"
+PR:append = ".arago4"
Signature · 1 line
2.25.1
#1 lore raw

I'm not 100% certain, but all of the builds are now failing with this error:

tisdk-default-image_1.0-r0_do_rootfs.log
----------------------------------------

WARNING: kms++.postinst returned 1, marking as unpacked only, configuration required on target.
ERROR: Postinstall scriptlets of ['kms++'] have failed. If the intention is to defer them to first boot,
then please place them into pkg_postinst_ontarget:${PN} ().
Deferring to first boot via 'exit 1' is no longer supported.
Details of the failure are in /scratch/jenkins_builds/arago-kirkstone-wip/build/build/arago-tmp-default-glibc/work/am62xx_evm-oe-linux/tisdk-default-image/1.0-r0/temp/log.do_rootfs.
DEBUG: Python function do_rootfs finished

Seeing as this is the only recent change that mentions kms, this might be culprit?

Quoted 31 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

libdrm no longer provides kms driver and tests for it.

Fixes:

WARNING: libdrm-2.4.114-r0.arago3 do_package: libdrm: alternative target (/usr/bin/kmstest or /usr/bin/kmstest.libdrm) does not exist, skipping...
WARNING: libdrm-2.4.114-r0.arago3 do_package: libdrm: NOT adding alternative provide /usr/bin/kmstest: /usr/bin/kmstest.libdrm does not exist
WARNING: libdrm-2.4.114-r0.arago3 do_package: libdrm: alt_link == alt_target: /usr/bin/kmstest == /usr/bin/kmstest

---
  meta-arago-distro/recipes-graphics/drm/libdrm_%.bbappend | 8 +-------
  1 file changed, 1 insertion(+), 7 deletions(-)
meta-arago-distro/recipes-graphics/drm/libdrm_%.bbappend +1 -7
index 85152b5f..ea8b5ca1 100644
@@ -8,10 +8,4 @@ file://0001-libsync-add-support-for-pre-v4.7-kernels.patch \
  file://0002-Add-sync_fence_info-and-sync_pt_info.patch \
  "
 
-PR:append = ".arago3"
-
-inherit update-alternatives
-
-ALTERNATIVE_PRIORITY = "10"
-ALTERNATIVE:${PN} = "kmstest"
-ALTERNATIVE_LINK_NAME[kmstest] = "${bindir}/kmstest"
+PR:append = ".arago4"
Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS
#2 lore raw

Sorry, my bad, this is only for master with latest libdrm, not kirkstone:
https://git.yoctoproject.org/meta-arago/commit/?id=548657e4d8118af98ad047a7c19b3cc49b7480bb

Quoted 51 lines · Ryan Eatmon

I'm not 100% certain, but all of the builds are now failing with this error:

tisdk-default-image_1.0-r0_do_rootfs.log
----------------------------------------

WARNING: kms++.postinst returned 1, marking as unpacked only,
configuration required on target.
ERROR: Postinstall scriptlets of ['kms++'] have failed. If the
intention is to defer them to first boot,
then please place them into pkg_postinst_ontarget:${PN} ().
Deferring to first boot via 'exit 1' is no longer supported.
Details of the failure are in /scratch/jenkins_builds/arago-kirkstone-wip/build/build/arago-tmp-default-glibc/work/am62xx_evm-oe-linux/tisdk-default-image/1.0-r0/temp/log.do_rootfs.
DEBUG: Python function do_rootfs finished

Seeing as this is the only recent change that mentions kms, this might be culprit?

Quoted 30 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

libdrm no longer provides kms driver and tests for it.

Fixes:

WARNING: libdrm-2.4.114-r0.arago3 do_package: libdrm: alternative target (/usr/bin/kmstest or /usr/bin/kmstest.libdrm) does not exist, skipping...
WARNING: libdrm-2.4.114-r0.arago3 do_package: libdrm: NOT adding alternative provide /usr/bin/kmstest: /usr/bin/kmstest.libdrm does not exist
WARNING: libdrm-2.4.114-r0.arago3 do_package: libdrm: alt_link == alt_target: /usr/bin/kmstest == /usr/bin/kmstest

---
 meta-arago-distro/recipes-graphics/drm/libdrm_%.bbappend | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
meta-arago-distro/recipes-graphics/drm/libdrm_%.bbappend +1 -7
index 85152b5f..ea8b5ca1 100644
@@ -8,10 +8,4 @@ file://0001-libsync-add-support-for-pre-v4.7-kernels.patch \
 file://0002-Add-sync_fence_info-and-sync_pt_info.patch \
 "
-PR:append = ".arago3"
-
-inherit update-alternatives
-
-ALTERNATIVE_PRIORITY = "10"
-ALTERNATIVE:${PN} = "kmstest"
-ALTERNATIVE_LINK_NAME[kmstest] = "${bindir}/kmstest"
+PR:append = ".arago4"
#3 lore raw

Well... that would certainly make a difference. Let me test that.

Quoted 56 lines · Denys Dmytriyenko

Sorry, my bad, this is only for master with latest libdrm, not kirkstone:
https://git.yoctoproject.org/meta-arago/commit/?id=548657e4d8118af98ad047a7c19b3cc49b7480bb

Quoted 51 lines · Ryan Eatmon

I'm not 100% certain, but all of the builds are now failing with this error:

tisdk-default-image_1.0-r0_do_rootfs.log
----------------------------------------

WARNING: kms++.postinst returned 1, marking as unpacked only,
configuration required on target.
ERROR: Postinstall scriptlets of ['kms++'] have failed. If the
intention is to defer them to first boot,
then please place them into pkg_postinst_ontarget:${PN} ().
Deferring to first boot via 'exit 1' is no longer supported.
Details of the failure are in /scratch/jenkins_builds/arago-kirkstone-wip/build/build/arago-tmp-default-glibc/work/am62xx_evm-oe-linux/tisdk-default-image/1.0-r0/temp/log.do_rootfs.
DEBUG: Python function do_rootfs finished

Seeing as this is the only recent change that mentions kms, this might be culprit?

Quoted 30 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

libdrm no longer provides kms driver and tests for it.

Fixes:

WARNING: libdrm-2.4.114-r0.arago3 do_package: libdrm: alternative target (/usr/bin/kmstest or /usr/bin/kmstest.libdrm) does not exist, skipping...
WARNING: libdrm-2.4.114-r0.arago3 do_package: libdrm: NOT adding alternative provide /usr/bin/kmstest: /usr/bin/kmstest.libdrm does not exist
WARNING: libdrm-2.4.114-r0.arago3 do_package: libdrm: alt_link == alt_target: /usr/bin/kmstest == /usr/bin/kmstest

---
  meta-arago-distro/recipes-graphics/drm/libdrm_%.bbappend | 8 +-------
  1 file changed, 1 insertion(+), 7 deletions(-)
meta-arago-distro/recipes-graphics/drm/libdrm_%.bbappend +1 -7
index 85152b5f..ea8b5ca1 100644
@@ -8,10 +8,4 @@ file://0001-libsync-add-support-for-pre-v4.7-kernels.patch \
  file://0002-Add-sync_fence_info-and-sync_pt_info.patch \
  "
-PR:append = ".arago3"
-
-inherit update-alternatives
-
-ALTERNATIVE_PRIORITY = "10"
-ALTERNATIVE:${PN} = "kmstest"
-ALTERNATIVE_LINK_NAME[kmstest] = "${bindir}/kmstest"
+PR:append = ".arago4"
Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS