Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Alexander Kanavin <alex.kanavin@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 02/20] libmodulemd: update to 2.1.0
Date: Tue, 19 Feb 2019 18:46:54 +0100	[thread overview]
Message-ID: <20190219174712.60694-2-alex.kanavin@gmail.com> (raw)
In-Reply-To: <20190219174712.60694-1-alex.kanavin@gmail.com>

Add support for gobject-introspection.

Add v2 API fixes to the gtkdoc/gi disabling patch.
Add a dependency on glib-native to allow use of glib-mkenums.

Disable v2 API/library for now as libdnf is not compatible with it,
yet is erroneously linked against it (if it's enabled).

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
---
 ...ec_tmpl.sh-use-bin-sh-not-usr-bin-sh.patch |  7 +-
 ...n.build-do-not-generate-gir-or-gtkdo.patch | 76 ++++++++++---------
 .../libmodulemd/libmodulemd_git.bb            | 19 +++--
 3 files changed, 57 insertions(+), 45 deletions(-)

diff --git a/meta/recipes-devtools/libmodulemd/libmodulemd/0001-spec_tmpl.sh-use-bin-sh-not-usr-bin-sh.patch b/meta/recipes-devtools/libmodulemd/libmodulemd/0001-spec_tmpl.sh-use-bin-sh-not-usr-bin-sh.patch
index 9465c385202..2598c177c4c 100644
--- a/meta/recipes-devtools/libmodulemd/libmodulemd/0001-spec_tmpl.sh-use-bin-sh-not-usr-bin-sh.patch
+++ b/meta/recipes-devtools/libmodulemd/libmodulemd/0001-spec_tmpl.sh-use-bin-sh-not-usr-bin-sh.patch
@@ -1,16 +1,17 @@
-From 590bd5ec9f378ab727ee404bb32f615e1bbd15bf Mon Sep 17 00:00:00 2001
+From 74ea6a665d0f3417e75f1d3d02f27a12f128ec70 Mon Sep 17 00:00:00 2001
 From: Alexander Kanavin <alex.kanavin@gmail.com>
 Date: Tue, 6 Nov 2018 13:41:29 +0100
 Subject: [PATCH] spec_tmpl.sh: use /bin/sh, not /usr/bin/sh
 
 Upstream-Status: Pending
 Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
+
 ---
  spec_tmpl.sh | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/spec_tmpl.sh b/spec_tmpl.sh
-index 45009c3..307c0c2 100755
+index 14e895a..fc80fc6 100755
 --- a/spec_tmpl.sh
 +++ b/spec_tmpl.sh
 @@ -1,4 +1,4 @@
@@ -18,4 +19,4 @@ index 45009c3..307c0c2 100755
 +#!/bin/sh
  
  version=$1
- template=$2
+ libmodulemd_v1_version=$2
diff --git a/meta/recipes-devtools/libmodulemd/libmodulemd/0002-modulemd-v1-meson.build-do-not-generate-gir-or-gtkdo.patch b/meta/recipes-devtools/libmodulemd/libmodulemd/0002-modulemd-v1-meson.build-do-not-generate-gir-or-gtkdo.patch
index e94abd27c39..a3e62bf52ca 100644
--- a/meta/recipes-devtools/libmodulemd/libmodulemd/0002-modulemd-v1-meson.build-do-not-generate-gir-or-gtkdo.patch
+++ b/meta/recipes-devtools/libmodulemd/libmodulemd/0002-modulemd-v1-meson.build-do-not-generate-gir-or-gtkdo.patch
@@ -1,65 +1,67 @@
-From b6c8039afe016d25c17cdf1b2462d6a53d49fad1 Mon Sep 17 00:00:00 2001
+From b77c9c3d07430b014b2d1bff42027f483c81f15a Mon Sep 17 00:00:00 2001
 From: Alexander Kanavin <alex.kanavin@gmail.com>
 Date: Tue, 6 Nov 2018 13:43:00 +0100
-Subject: [PATCH] modulemd/v1/meson.build: do not generate gir or gtkdoc
+Subject: [PATCH] modulemd/v[12]/meson.build: do not generate gtkdoc or python
+ bindings
 
-Both of these really need a configuration option.
+All of these really need a configuration option.
 
 Upstream-Status: Inappropriate [oe-core specific]
 Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
 
 ---
- meson.build             |  1 -
- modulemd/v1/meson.build | 20 --------------------
- 2 files changed, 21 deletions(-)
+ meson.build             | 3 +--
+ modulemd/v1/meson.build | 8 --------
+ modulemd/v2/meson.build | 8 --------
+ 3 files changed, 1 insertion(+), 18 deletions(-)
 
 diff --git a/meson.build b/meson.build
-index db7c6a1..e0ea61a 100644
+index 228bd34..a1e60bb 100644
 --- a/meson.build
 +++ b/meson.build
-@@ -49,7 +49,6 @@ gnome = import('gnome')
+@@ -52,7 +52,6 @@ gnome = import('gnome')
  pkg = import('pkgconfig')
  gobject = dependency('gobject-2.0')
  yaml = dependency('yaml-0.1')
 -gtkdoc = dependency('gtk-doc')
  
- spec_tmpl = find_program('spec_tmpl.sh')
+ sh = find_program('sh')
+ sed = find_program('sed')
+@@ -110,4 +109,4 @@ configure_file(
+ )
  
+ subdir('modulemd')
+-subdir('bindings/python')
++
 diff --git a/modulemd/v1/meson.build b/modulemd/v1/meson.build
-index 38e0d15..d59e519 100644
+index 74db89a..4d54e69 100644
 --- a/modulemd/v1/meson.build
 +++ b/modulemd/v1/meson.build
-@@ -311,19 +311,6 @@ if valgrind.found()
-           timeout : 300)
- endif
+@@ -341,11 +341,3 @@ configure_file(
+   configuration : xcdata
+ )
  
--gnome.generate_gir(
--    modulemd_v1_lib,
--    sources : modulemd_v1_srcs + modulemd_v1_hdrs,
--    nsversion : '.'.join([libmodulemd_version_array[0], '0']),
--    namespace : 'Modulemd',
--    symbol_prefix : 'modulemd_',
--    identifier_prefix : 'Modulemd',
--    includes : [
--        'GObject-2.0',
--    ],
+-gnome.gtkdoc(
+-    'modulemd-1.0',
+-    install_dir: 'modulemd-1.0',
+-    src_dir : './modulemd/v1',
+-    main_xml : 'modulemd-v1-docs.xml',
 -    install : true,
--    )
+-)
 -
- xcdata = configuration_data()
- xcdata.set('VERSION', libmodulemd_version)
- configure_file(
-@@ -339,13 +326,6 @@ configure_file(
-   configuration : cdata
+diff --git a/modulemd/v2/meson.build b/modulemd/v2/meson.build
+index 7b94e0c..c5f72b9 100644
+--- a/modulemd/v2/meson.build
++++ b/modulemd/v2/meson.build
+@@ -530,11 +530,3 @@ configure_file(
+   configuration : xcdata
  )
  
 -gnome.gtkdoc(
--    'modulemd-1.0',
--    install_dir: 'modulemd-1.0',
--    src_dir : './',
--    main_xml : 'modulemd-docs.xml',
--    install : true)
+-    'modulemd-2.0',
+-    install_dir: 'modulemd-2.0',
+-    src_dir : './modulemd/v2',
+-    main_xml : 'modulemd-v2-docs.xml',
+-    install : true,
+-)
 -
- pkg.generate(
-     libraries : modulemd_v1_lib,
-     subdirs : v1_header_path,
diff --git a/meta/recipes-devtools/libmodulemd/libmodulemd_git.bb b/meta/recipes-devtools/libmodulemd/libmodulemd_git.bb
index d9bfdc0878f..87e92114c8d 100644
--- a/meta/recipes-devtools/libmodulemd/libmodulemd_git.bb
+++ b/meta/recipes-devtools/libmodulemd/libmodulemd_git.bb
@@ -7,15 +7,24 @@ SRC_URI = "git://github.com/fedora-modularity/libmodulemd;protocol=https \
            file://0002-modulemd-v1-meson.build-do-not-generate-gir-or-gtkdo.patch \
            "
 
-PV = "1.7.0"
-SRCREV = "9af3e7b4bec2f8daaa857fa668b858e484487710"
+PV = "2.1.0"
+SRCREV = "072e6ee791fe7822a6d423bdac7e4a5cbb118bce"
 
 S = "${WORKDIR}/git"
 
-inherit meson
+inherit meson gobject-introspection
 
-EXTRA_OEMESON = "-Ddeveloper_build=false"
+EXTRA_OEMESON = "-Ddeveloper_build=false -Dbuild_api_v1=true -Dbuild_api_v2=false"
 
-DEPENDS += "glib-2.0 libyaml"
+DEPENDS += "glib-2.0 libyaml glib-2.0-native"
 
 BBCLASSEXTEND = "native nativesdk"
+
+GI_ENABLE_FLAG = "-Dskip_introspection=false"
+GI_DISABLE_FLAG = "-Dskip_introspection=true"
+
+EXTRA_OEMESON_append_class-nativesdk = " ${GI_DISABLE_FLAG}"
+EXTRA_OEMESON_append_class-native = " ${GI_DISABLE_FLAG}"
+
+EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '${GI_ENABLE_FLAG}', \
+                                                                                       '${GI_DISABLE_FLAG}', d)} "
-- 
2.17.1



  reply	other threads:[~2019-02-19 17:47 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-19 17:46 [PATCH 01/20] libpipeline: update to 1.5.1 Alexander Kanavin
2019-02-19 17:46 ` Alexander Kanavin [this message]
2019-02-19 17:46 ` [PATCH 03/20] vala: upgrade 0.42.4 -> 0.42.5 Alexander Kanavin
2019-02-19 17:46 ` [PATCH 04/20] epiphany: upgrade 3.30.2 -> 3.30.3 Alexander Kanavin
2019-02-19 17:46 ` [PATCH 05/20] libdnf: upgrade 0.24.1 -> 0.26.0 Alexander Kanavin
2019-02-19 17:46 ` [PATCH 06/20] meson: upgrade 0.49.0 -> 0.49.2 Alexander Kanavin
2019-02-19 17:46 ` [PATCH 07/20] p11-kit: upgrade 0.23.14 -> 0.23.15 Alexander Kanavin
2019-02-19 17:47 ` [PATCH 08/20] iso-codes: upgrade 4.1 -> 4.2 Alexander Kanavin
2019-02-19 17:47 ` [PATCH 09/20] libcomps: upgrade 0.1.9 -> 0.1.10 Alexander Kanavin
2019-02-19 17:47 ` [PATCH 10/20] lighttpd: upgrade 1.4.52 -> 1.4.53 Alexander Kanavin
2019-02-19 17:47 ` [PATCH 11/20] createrepo-c: upgrade 0.12.0 -> 0.12.1 Alexander Kanavin
2019-02-19 17:47 ` [PATCH 12/20] gcr: upgrade 3.28.0 -> 3.28.1 Alexander Kanavin
2019-02-19 17:47 ` [PATCH 13/20] webkitgtk: upgrade 2.22.5 -> 2.22.6 Alexander Kanavin
2019-02-19 17:47 ` [PATCH 14/20] librepo: upgrade 1.9.3 -> 1.9.4 Alexander Kanavin
2019-02-19 17:47 ` [PATCH 15/20] btrfs-tools: upgrade 4.19.1 -> 4.20.1 Alexander Kanavin
2019-02-19 17:47 ` [PATCH 16/20] dnf: upgrade 4.0.10 -> 4.1.0 Alexander Kanavin
2019-02-19 17:47 ` [PATCH 17/20] libwebp: upgrade 1.0.1 -> 1.0.2 Alexander Kanavin
2019-02-19 17:47 ` [PATCH 18/20] ca-certificates: upgrade 20180409 -> 20190110 Alexander Kanavin
2019-02-19 17:47 ` [PATCH 19/20] ffmpeg: update to 4.1.1 Alexander Kanavin
2019-02-19 17:47 ` [PATCH 20/20] menu-cache: fix upstream version check Alexander Kanavin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190219174712.60694-2-alex.kanavin@gmail.com \
    --to=alex.kanavin@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox