All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-networking][PATCH] wireguard-tools: Use PACKAGECONFIG to select wg-quick and bashcompletion
@ 2023-10-31 20:33 Daiane Angolini
  2023-11-01 22:32 ` [oe] " Khem Raj
  0 siblings, 1 reply; 2+ messages in thread
From: Daiane Angolini @ 2023-10-31 20:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Daiane Angolini

Condition the creation of sub-packages and their consequences to a
PACKAGECONFIG, which can be overriden outside the metalayer.

Signed-off-by: Daiane Angolini <daiane.angolini@foundries.io>
---
 .../wireguard/wireguard-tools_1.0.20210914.bb          | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20210914.bb b/meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20210914.bb
index 20435338c..44b9eb2f7 100644
--- a/meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20210914.bb
+++ b/meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20210914.bb
@@ -11,11 +11,15 @@ do_install () {
     oe_runmake DESTDIR="${D}" PREFIX="${prefix}" SYSCONFDIR="${sysconfdir}" \
         SYSTEMDUNITDIR="${systemd_system_unitdir}" \
         WITH_SYSTEMDUNITS=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'yes', '', d)} \
-        WITH_BASHCOMPLETION=yes \
-        WITH_WGQUICK=yes \
+        ${PACKAGECONFIG_ARGS} \
         install
 }
 
+PACKAGECONFIG ??= "bashcompletion wgquick"
+
+PACKAGECONFIG[bashcompletion] = "WITH_BASHCOMPLETION=yes, , , , , "
+PACKAGECONFIG[wgquick] = "WITH_WGQUICK=yes, , ,${PN} bash,${PN}-wg-quick, "
+
 PACKAGES += "${PN}-wg-quick"
 
 FILES:${PN} = " \
@@ -27,8 +31,6 @@ FILES:${PN}-wg-quick = " \
     ${systemd_system_unitdir} \
 "
 
-RDEPENDS:${PN}-wg-quick = "${PN} bash"
 RRECOMMENDS:${PN} = " \
     kernel-module-wireguard \
-    ${PN}-wg-quick \
     "
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [oe] [meta-networking][PATCH] wireguard-tools: Use PACKAGECONFIG to select wg-quick and bashcompletion
  2023-10-31 20:33 [meta-networking][PATCH] wireguard-tools: Use PACKAGECONFIG to select wg-quick and bashcompletion Daiane Angolini
@ 2023-11-01 22:32 ` Khem Raj
  0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2023-11-01 22:32 UTC (permalink / raw)
  To: daiane.angolini; +Cc: openembedded-devel

this fails see
https://errors.yoctoproject.org/Errors/Details/741221/

On Tue, Oct 31, 2023 at 1:33 PM Daiane Angolini via
lists.openembedded.org
<daiane.angolini=foundries.io@lists.openembedded.org> wrote:
>
> Condition the creation of sub-packages and their consequences to a
> PACKAGECONFIG, which can be overriden outside the metalayer.
>
> Signed-off-by: Daiane Angolini <daiane.angolini@foundries.io>
> ---
>  .../wireguard/wireguard-tools_1.0.20210914.bb          | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20210914.bb b/meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20210914.bb
> index 20435338c..44b9eb2f7 100644
> --- a/meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20210914.bb
> +++ b/meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20210914.bb
> @@ -11,11 +11,15 @@ do_install () {
>      oe_runmake DESTDIR="${D}" PREFIX="${prefix}" SYSCONFDIR="${sysconfdir}" \
>          SYSTEMDUNITDIR="${systemd_system_unitdir}" \
>          WITH_SYSTEMDUNITS=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'yes', '', d)} \
> -        WITH_BASHCOMPLETION=yes \
> -        WITH_WGQUICK=yes \
> +        ${PACKAGECONFIG_ARGS} \
>          install
>  }
>
> +PACKAGECONFIG ??= "bashcompletion wgquick"
> +
> +PACKAGECONFIG[bashcompletion] = "WITH_BASHCOMPLETION=yes, , , , , "
> +PACKAGECONFIG[wgquick] = "WITH_WGQUICK=yes, , ,${PN} bash,${PN}-wg-quick, "
> +
>  PACKAGES += "${PN}-wg-quick"
>
>  FILES:${PN} = " \
> @@ -27,8 +31,6 @@ FILES:${PN}-wg-quick = " \
>      ${systemd_system_unitdir} \
>  "
>
> -RDEPENDS:${PN}-wg-quick = "${PN} bash"
>  RRECOMMENDS:${PN} = " \
>      kernel-module-wireguard \
> -    ${PN}-wg-quick \
>      "
> --
> 2.34.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#105808): https://lists.openembedded.org/g/openembedded-devel/message/105808
> Mute This Topic: https://lists.openembedded.org/mt/102306255/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-01 22:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-31 20:33 [meta-networking][PATCH] wireguard-tools: Use PACKAGECONFIG to select wg-quick and bashcompletion Daiane Angolini
2023-11-01 22:32 ` [oe] " Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.