[OS-BUILD PATCH] Fix dist-get-buildreqs breakage around perl(ExtUtils::Embed)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Don Zickus <dzickus@xxxxxxxxxx>

Fix dist-get-buildreqs breakage around perl(ExtUtils::Embed)

CKI fails with

$ export missing=$(make dist-get-buildreqs | grep "Missing dependencies:" | cut -d":" -f2)
$ if [ "$missing" == "" ]; then echo "Missing dependencies should not be null but are empty. Review test log." && exit 1; fi;
$ dnf -y install $missing
Last metadata expiration check: 0:00:29 ago on Sat Feb  3 23:44:30 2024.
No match for argument: perl(ExtUtils
Error: Unable to find a match: perl(ExtUtils

This is because it was trying to "cut -d':' -f2" this line:
Missing dependencies:  perl(ExtUtils::Embed)

And it grabbed the content between the ':', leaving out ::Embed.  Easy
fix, convert cut's parameter '-f2' to '-f2-' to included everything
after the first ':'.

Running the command locally resolves the issue.

Signed-off-by: Don Zickus <dzickus@xxxxxxxxxx>

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index blahblah..blahblah 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -461,10 +461,10 @@ test_makefile:
     - git config user.name "Fedora Kernel Team"
     - git config user.email "kernel-team@xxxxxxxxxxxxxxxxx"
   script:
-    - export missing=$(make dist-get-buildreqs | grep "Missing dependencies:" | cut -d":" -f2)
+    - export missing=$(make dist-get-buildreqs | grep "Missing dependencies:" | cut -d":" -f2-)
     - if [ "$missing" == "" ]; then echo "Missing dependencies should not be null but are empty. Review test log." && exit 1; fi;
     - dnf -y install $missing
-    - export missingafter=$(make dist-get-buildreqs | grep "Missing dependencies:" | cut -d":" -f2)
+    - export missingafter=$(make dist-get-buildreqs | grep "Missing dependencies:" | cut -d":" -f2-)
     - if [ "$missingafter" != "" ]; then echo "Missing dependencies should be null but are $missingafter. Review test log." && exit 1; fi;
   rules:
     - *only-os-build-mr

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2924
--
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux