I think doing this would still require using pkg-config at parse-time (since SYSTEMD_VERSION can only be known by using pkg-config).. which, from what I understand, is not possible. It's not a big deal, and probably not worth introducing more complexity to the recipe if I can just apply the patch before updating my Poky dependency.
Thank you, Logan ________________________________ From: Hauke Wulff via Lists.Yoctoproject.Org <H.Wulff=kruss...@lists.yoctoproject.org> Sent: Monday, November 11, 2024 2:28 AM To: Logan Grosz <logan.gr...@b9c.com>; yocto@lists.yoctoproject.org <yocto@lists.yoctoproject.org> Subject: Re: [yocto] Conditionally set SYSTEMD_SERVICE_${PN} based on version of another package You don't often get email from h.wulff=kruss...@lists.yoctoproject.org. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification> How about replacing the recipe by a .bbappend and replacing the systemd file(s) with something like: FILESEXTRAPATHS:prepend := "${THISDIR}/files:" SRC_URI:remove = "${@bb.utils.contains('SYSTEMD_VERSION', '250', ' file://factory-reset-yocto.target', '', d)}" SRC_URI:append = "${@bb.utils.contains('SYSTEMD_VERSION', '250', ' file://your-factory-reset.target', '', d)}" If you can live with touching your recipe.
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#64254): https://lists.yoctoproject.org/g/yocto/message/64254 Mute This Topic: https://lists.yoctoproject.org/mt/109446043/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-