All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] dnf: Enable nativesdk
@ 2019-04-24  3:38 Lei Maohui
  2019-04-24 11:47 ` Peter Kjellerstedt
  0 siblings, 1 reply; 2+ messages in thread
From: Lei Maohui @ 2019-04-24  3:38 UTC (permalink / raw)
  To: openembedded-core

Make dnf work on nativesdk environment.

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
---
 meta/recipes-devtools/dnf/dnf_4.2.2.bb | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/dnf/dnf_4.2.2.bb b/meta/recipes-devtools/dnf/dnf_4.2.2.bb
index 3970b41..159d7e9 100644
--- a/meta/recipes-devtools/dnf/dnf_4.2.2.bb
+++ b/meta/recipes-devtools/dnf/dnf_4.2.2.bb
@@ -26,7 +26,7 @@ EXTRA_OECMAKE = " -DWITH_MAN=0 -DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR} -
 
 BBCLASSEXTEND = "native nativesdk"
 
-RDEPENDS_${PN}_class-target += " \
+RDEPENDS_${PN} += " \
   python3-core \
   python3-codecs \
   python3-netclient \
@@ -49,6 +49,8 @@ RDEPENDS_${PN}_class-target += " \
   python3-gpg \
   "
 
+RDEPENDS_${PN}_class-native = ""
+
 RRECOMMENDS_${PN}_class-target += "gnupg"
 
 # Create a symlink called 'dnf' as 'make install' does not do it, but
@@ -66,6 +68,11 @@ do_install_append_class-native() {
                 RPM_NO_CHROOT_FOR_SCRIPTS=1
 }
 
+do_install_append_class-nativesdk() {
+        create_wrapper ${D}/${bindir}/dnf \
+                RPM_CONFIGDIR=${SDKPATHNATIVE}${libdir_nativesdk}/rpm \
+                RPM_NO_CHROOT_FOR_SCRIPTS=1 }
+
 SYSTEMD_SERVICE_${PN} = "dnf-makecache.service dnf-makecache.timer \
                          dnf-automatic.service dnf-automatic.timer \
                          dnf-automatic-download.service dnf-automatic-download.timer \
-- 
2.7.4





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

* Re: [PATCH v3] dnf: Enable nativesdk
  2019-04-24  3:38 [PATCH v3] dnf: Enable nativesdk Lei Maohui
@ 2019-04-24 11:47 ` Peter Kjellerstedt
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Kjellerstedt @ 2019-04-24 11:47 UTC (permalink / raw)
  To: Lei Maohui, openembedded-core

> -----Original Message-----
> From: openembedded-core-bounces@lists.openembedded.org <openembedded-
> core-bounces@lists.openembedded.org> On Behalf Of Lei Maohui
> Sent: den 24 april 2019 05:38
> To: openembedded-core@lists.openembedded.org
> Subject: [OE-core] [PATCH v3] dnf: Enable nativesdk
> 
> Make dnf work on nativesdk environment.
> 
> Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
> Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
> ---
>  meta/recipes-devtools/dnf/dnf_4.2.2.bb | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-devtools/dnf/dnf_4.2.2.bb b/meta/recipes-
> devtools/dnf/dnf_4.2.2.bb
> index 3970b41..159d7e9 100644
> --- a/meta/recipes-devtools/dnf/dnf_4.2.2.bb
> +++ b/meta/recipes-devtools/dnf/dnf_4.2.2.bb
> @@ -26,7 +26,7 @@ EXTRA_OECMAKE = " -DWITH_MAN=0 -
> DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR} -
> 
>  BBCLASSEXTEND = "native nativesdk"
> 
> -RDEPENDS_${PN}_class-target += " \
> +RDEPENDS_${PN} += " \
>    python3-core \
>    python3-codecs \
>    python3-netclient \
> @@ -49,6 +49,8 @@ RDEPENDS_${PN}_class-target += " \
>    python3-gpg \
>    "
> 
> +RDEPENDS_${PN}_class-native = ""
> +
>  RRECOMMENDS_${PN}_class-target += "gnupg"
> 
>  # Create a symlink called 'dnf' as 'make install' does not do it, but
> @@ -66,6 +68,11 @@ do_install_append_class-native() {
>                  RPM_NO_CHROOT_FOR_SCRIPTS=1
>  }
> 
> +do_install_append_class-nativesdk() {
> +        create_wrapper ${D}/${bindir}/dnf \
> +                RPM_CONFIGDIR=${SDKPATHNATIVE}${libdir_nativesdk}/rpm \
> +                RPM_NO_CHROOT_FOR_SCRIPTS=1 }

Move the "}" above to a line of its own.

> +
>  SYSTEMD_SERVICE_${PN} = "dnf-makecache.service dnf-makecache.timer \
>                           dnf-automatic.service dnf-automatic.timer \
>                           dnf-automatic-download.service dnf-automatic-
> download.timer \
> --
> 2.7.4

//Peter



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

end of thread, other threads:[~2019-04-24 11:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-24  3:38 [PATCH v3] dnf: Enable nativesdk Lei Maohui
2019-04-24 11:47 ` Peter Kjellerstedt

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.