diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2020-04-25 19:28:01 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-05-02 09:08:52 +0100 |
commit | e1ab20ea5a9258c6f7e3bf18e040df1e0ddff0d9 (patch) | |
tree | eade2976067889205ae5fc205231e83bba080614 /meta/recipes-devtools | |
parent | 365f24bee16ba4e9386f89158df29d577f192668 (diff) | |
download | poky-e1ab20ea5a9258c6f7e3bf18e040df1e0ddff0d9.tar.gz |
libmodulemd: move from 1.x to 2.x version
New libdnf requires 2.x and is the only consumer in oe-core
(or elsewhere).
(From OE-Core rev: 2c518de672d8876ff96e49b498feb898a497e6a5)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/libmodulemd/libmodulemd-v1/0001-spec_tmpl.sh-use-bin-sh-not-usr-bin-sh.patch | 22 | ||||
-rw-r--r-- | meta/recipes-devtools/libmodulemd/libmodulemd/0001-modulemd-generate-the-manpage-only-if-the-feature-is.patch | 28 | ||||
-rw-r--r-- | meta/recipes-devtools/libmodulemd/libmodulemd/0002-meson.build-do-not-install-python-gi-bindings.patch | 23 | ||||
-rw-r--r-- | meta/recipes-devtools/libmodulemd/libmodulemd_git.bb (renamed from meta/recipes-devtools/libmodulemd/libmodulemd-v1_git.bb) | 12 |
4 files changed, 57 insertions, 28 deletions
diff --git a/meta/recipes-devtools/libmodulemd/libmodulemd-v1/0001-spec_tmpl.sh-use-bin-sh-not-usr-bin-sh.patch b/meta/recipes-devtools/libmodulemd/libmodulemd-v1/0001-spec_tmpl.sh-use-bin-sh-not-usr-bin-sh.patch deleted file mode 100644 index 847b5f700b..0000000000 --- a/meta/recipes-devtools/libmodulemd/libmodulemd-v1/0001-spec_tmpl.sh-use-bin-sh-not-usr-bin-sh.patch +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | From 4e67f6049b3f822fe6f5af46790a51ace581bf82 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Tue, 6 Nov 2018 13:41:29 +0100 | ||
4 | Subject: [PATCH] spec_tmpl.sh: use /bin/sh, not /usr/bin/sh | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
8 | |||
9 | --- | ||
10 | spec_tmpl.sh | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/spec_tmpl.sh b/spec_tmpl.sh | ||
14 | index 0238087..126853c 100755 | ||
15 | --- a/spec_tmpl.sh | ||
16 | +++ b/spec_tmpl.sh | ||
17 | @@ -1,4 +1,4 @@ | ||
18 | -#!/usr/bin/sh | ||
19 | +#!/bin/sh | ||
20 | |||
21 | version=$1 | ||
22 | template=$2 | ||
diff --git a/meta/recipes-devtools/libmodulemd/libmodulemd/0001-modulemd-generate-the-manpage-only-if-the-feature-is.patch b/meta/recipes-devtools/libmodulemd/libmodulemd/0001-modulemd-generate-the-manpage-only-if-the-feature-is.patch new file mode 100644 index 0000000000..d5c87a1154 --- /dev/null +++ b/meta/recipes-devtools/libmodulemd/libmodulemd/0001-modulemd-generate-the-manpage-only-if-the-feature-is.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From a04fd2c8ac9e0f7a6fc17f02b2a95227b3d0aae4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Tue, 31 Mar 2020 16:06:39 +0200 | ||
4 | Subject: [PATCH] modulemd: generate the manpage only if the feature is enabled | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
8 | --- | ||
9 | modulemd/meson.build | 2 ++ | ||
10 | 1 file changed, 2 insertions(+) | ||
11 | |||
12 | diff --git a/modulemd/meson.build b/modulemd/meson.build | ||
13 | index 9ef1902..9f71e72 100644 | ||
14 | --- a/modulemd/meson.build | ||
15 | +++ b/modulemd/meson.build | ||
16 | @@ -494,6 +494,7 @@ if with_docs | ||
17 | ) | ||
18 | endif | ||
19 | |||
20 | +if with_manpages == 'enabled' | ||
21 | help2man_opts = [ | ||
22 | '--no-info', | ||
23 | '--section=1', | ||
24 | @@ -506,3 +507,4 @@ custom_target( | ||
25 | ], | ||
26 | install: true, | ||
27 | install_dir: join_paths(get_option('mandir'), 'man1')) | ||
28 | +endif | ||
diff --git a/meta/recipes-devtools/libmodulemd/libmodulemd/0002-meson.build-do-not-install-python-gi-bindings.patch b/meta/recipes-devtools/libmodulemd/libmodulemd/0002-meson.build-do-not-install-python-gi-bindings.patch new file mode 100644 index 0000000000..a97fb73907 --- /dev/null +++ b/meta/recipes-devtools/libmodulemd/libmodulemd/0002-meson.build-do-not-install-python-gi-bindings.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | From d7eeac90fe02ccf5c5e4334e41ec75fc33803643 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Tue, 31 Mar 2020 16:12:28 +0200 | ||
4 | Subject: [PATCH] meson.build: do not install python gi bindings | ||
5 | |||
6 | These are unnecessary for oe-core, and the install location | ||
7 | is incorrectly determined using native python. | ||
8 | |||
9 | Upstream-Status: Inappropriate [oe-core specific] | ||
10 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
11 | --- | ||
12 | meson.build | 1 - | ||
13 | 1 file changed, 1 deletion(-) | ||
14 | |||
15 | diff --git a/meson.build b/meson.build | ||
16 | index a8b02b4..8ff737b 100644 | ||
17 | --- a/meson.build | ||
18 | +++ b/meson.build | ||
19 | @@ -171,4 +171,3 @@ configure_file( | ||
20 | ) | ||
21 | |||
22 | subdir('modulemd') | ||
23 | -subdir('bindings/python') | ||
diff --git a/meta/recipes-devtools/libmodulemd/libmodulemd-v1_git.bb b/meta/recipes-devtools/libmodulemd/libmodulemd_git.bb index 5409051d79..d440e60ee6 100644 --- a/meta/recipes-devtools/libmodulemd/libmodulemd-v1_git.bb +++ b/meta/recipes-devtools/libmodulemd/libmodulemd_git.bb | |||
@@ -2,19 +2,19 @@ SUMMARY = "C Library for manipulating module metadata files" | |||
2 | LICENSE = "MIT" | 2 | LICENSE = "MIT" |
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=25a3927bff3ee4f5b21bcb0ed3fcd6bb" | 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=25a3927bff3ee4f5b21bcb0ed3fcd6bb" |
4 | 4 | ||
5 | SRC_URI = "git://github.com/fedora-modularity/libmodulemd;protocol=https;branch=1.x-maint \ | 5 | SRC_URI = "git://github.com/fedora-modularity/libmodulemd;protocol=https \ |
6 | file://0001-spec_tmpl.sh-use-bin-sh-not-usr-bin-sh.patch \ | 6 | file://0001-modulemd-generate-the-manpage-only-if-the-feature-is.patch \ |
7 | file://0002-meson.build-do-not-install-python-gi-bindings.patch \ | ||
7 | " | 8 | " |
8 | 9 | ||
9 | PV = "1.8.16" | 10 | PV = "2.9.2" |
10 | SRCREV = "d0dcf7b373b3cf85cd39eb3bc23d31e06195a75a" | 11 | SRCREV = "780750eab8a0587b20d033f335301f16d00ab9c9" |
11 | UPSTREAM_CHECK_GITTAGREGEX = "libmodulemd-(?P<pver>1.*\d)" | ||
12 | 12 | ||
13 | S = "${WORKDIR}/git" | 13 | S = "${WORKDIR}/git" |
14 | 14 | ||
15 | inherit meson gobject-introspection | 15 | inherit meson gobject-introspection |
16 | 16 | ||
17 | EXTRA_OEMESON = "-Ddeveloper_build=false -Dwith_docs=false" | 17 | EXTRA_OEMESON = "-Ddeveloper_build=false -Dwith_docs=false -Drpmio=disabled -Dlibmagic=disabled -Dwith_manpages=disabled" |
18 | 18 | ||
19 | DEPENDS += "glib-2.0 libyaml glib-2.0-native python3" | 19 | DEPENDS += "glib-2.0 libyaml glib-2.0-native python3" |
20 | 20 | ||