Re: [OS-BUILD PATCH 0/2] redhat/Makefile: Improve dist-buildreq-check target

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

 



From: Prarit Bhargava on gitlab.com
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1900#note_1013253944

>'sudo dnf builddep kernel' should install the list of required packages
without much hassle.

Yep, that works but there's a subtle issue here.  This command will
install the dependencies for the kernel version that is running on the
system, not the local git repository's dependencies.

ie) if you run this command on RHEL8, the result would be the dependencies
for the RHEL8 kernel not kernel-ark.

In my prarit rpm I am careful to install a yum config file for the
targeted kernel, and then do

```
yum deplist --enablerepo latest-Base-OS-Source-\${distnum} --srpm kernel | awk
'/provider:/ {print \$2}' | grep -v ".src" | grep \$(uname -m) | sort -u |
xargs -r yum \${yumargs} -y install
```

Prolly (horribly?) over-engineered though; I'll look into just using builddep.
_______________________________________________
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 on the list, report it: https://pagure.io/fedora-infrastructure




[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