diff options
| -rw-r--r-- | meta/recipes-support/appstream/appstream/0001-meson-do-not-rely-on-an-exe-wrapper.patch | 36 | ||||
| -rw-r--r-- | meta/recipes-support/appstream/appstream/0001-remove-hardcoded-path.patch | 16 | ||||
| -rw-r--r-- | meta/recipes-support/appstream/appstream_1.0.0.bb (renamed from meta/recipes-support/appstream/appstream_0.16.3.bb) | 7 |
3 files changed, 13 insertions, 46 deletions
diff --git a/meta/recipes-support/appstream/appstream/0001-meson-do-not-rely-on-an-exe-wrapper.patch b/meta/recipes-support/appstream/appstream/0001-meson-do-not-rely-on-an-exe-wrapper.patch deleted file mode 100644 index d4f2951e7a..0000000000 --- a/meta/recipes-support/appstream/appstream/0001-meson-do-not-rely-on-an-exe-wrapper.patch +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 1 | From 79bf322768990b28c29a9d907edcca52ff48e0b8 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@redhat.com> | ||
| 3 | Date: Wed, 26 Jul 2023 23:21:10 +0400 | ||
| 4 | Subject: meson: do not rely on an exe wrapper | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> | ||
| 10 | |||
| 11 | Upstream-Status: Backport [https://github.com/ximion/appstream/commit/79bf322768990b28c29a9d907edcca52ff48e0b8] | ||
| 12 | --- | ||
| 13 | data/meson.build | 7 +++++++ | ||
| 14 | 1 file changed, 7 insertions(+) | ||
| 15 | |||
| 16 | diff --git a/data/meson.build b/data/meson.build | ||
| 17 | index aea0cb25..ec0e434f 100644 | ||
| 18 | --- a/data/meson.build | ||
| 19 | +++ b/data/meson.build | ||
| 20 | @@ -7,6 +7,13 @@ install_data('its/metainfo.its', | ||
| 21 | install_data('its/metainfo.loc', | ||
| 22 | install_dir: join_paths(get_option('datadir'), 'gettext', 'its')) | ||
| 23 | |||
| 24 | +# Do not rely on an exe wrapper for rel-info, use the system one in that case | ||
| 25 | +if meson.is_cross_build() | ||
| 26 | + dependency('appstream', version: '>=' + as_version, native: true, | ||
| 27 | + not_found_message: 'Native appstream required for cross-building') | ||
| 28 | + ascli_exe = find_program('appstreamcli') | ||
| 29 | +endif | ||
| 30 | + | ||
| 31 | # NOTE: We do not translate the release notes on purpose here. | ||
| 32 | # If you do want to give translators a chance to translate them, | ||
| 33 | # ascli news-to-metainfo needs to produce a temporary file to translate | ||
| 34 | -- | ||
| 35 | 2.41.0 | ||
| 36 | |||
diff --git a/meta/recipes-support/appstream/appstream/0001-remove-hardcoded-path.patch b/meta/recipes-support/appstream/appstream/0001-remove-hardcoded-path.patch index 9cbfaca82f..66687a5b89 100644 --- a/meta/recipes-support/appstream/appstream/0001-remove-hardcoded-path.patch +++ b/meta/recipes-support/appstream/appstream/0001-remove-hardcoded-path.patch | |||
| @@ -17,15 +17,19 @@ diff --git a/meson.build b/meson.build | |||
| 17 | index fd0e3373..2f273ada 100644 | 17 | index fd0e3373..2f273ada 100644 |
| 18 | --- a/meson.build | 18 | --- a/meson.build |
| 19 | +++ b/meson.build | 19 | +++ b/meson.build |
| 20 | @@ -124,7 +124,7 @@ if get_option ('gir') | 20 | @@ -185,10 +185,10 @@ endif |
| 21 | dependency('gobject-introspection-1.0', version: '>=1.56') | 21 | stemmer_inc_dirs = include_directories() |
| 22 | endif | ||
| 23 | |||
| 24 | -stemmer_inc_dirs = include_directories(['/usr/include']) | ||
| 25 | +stemmer_inc_dirs = include_directories(['']) | ||
| 26 | if get_option('stemming') | 22 | if get_option('stemming') |
| 27 | stemmer_lib = cc.find_library('stemmer', required: true) | 23 | stemmer_lib = cc.find_library('stemmer', required: true) |
| 24 | - stemmer_inc_dirs = include_directories(['/usr/include']) | ||
| 25 | + stemmer_inc_dirs = include_directories(['']) | ||
| 28 | if not cc.has_header('libstemmer.h') | 26 | if not cc.has_header('libstemmer.h') |
| 27 | if cc.has_header('libstemmer/libstemmer.h') | ||
| 28 | - stemmer_inc_dirs = include_directories('/usr/include/libstemmer') | ||
| 29 | + stemmer_inc_dirs = include_directories('') | ||
| 30 | else | ||
| 31 | error('Unable to find Snowball header "libstemmer.h". Please ensure libstemmer/Snowball is installed properly in order to continue.') | ||
| 32 | endif | ||
| 29 | -- | 33 | -- |
| 30 | 2.34.1 | 34 | 2.34.1 |
| 31 | 35 | ||
diff --git a/meta/recipes-support/appstream/appstream_0.16.3.bb b/meta/recipes-support/appstream/appstream_1.0.0.bb index bde679e256..3f8bfcd263 100644 --- a/meta/recipes-support/appstream/appstream_0.16.3.bb +++ b/meta/recipes-support/appstream/appstream_1.0.0.bb | |||
| @@ -19,17 +19,16 @@ DEPENDS = " \ | |||
| 19 | python3-pygments-native \ | 19 | python3-pygments-native \ |
| 20 | " | 20 | " |
| 21 | 21 | ||
| 22 | inherit meson gobject-introspection gettext gtk-doc pkgconfig vala | 22 | inherit meson gobject-introspection gettext gi-docgen pkgconfig vala |
| 23 | 23 | ||
| 24 | GIR_MESON_OPTION = "gir" | 24 | GIR_MESON_OPTION = "gir" |
| 25 | GTKDOC_MESON_OPTION = "apidocs" | 25 | GIDOCGEN_MESON_OPTION = "apidocs" |
| 26 | 26 | ||
| 27 | SRC_URI = " \ | 27 | SRC_URI = " \ |
| 28 | https://www.freedesktop.org/software/appstream/releases/AppStream-${PV}.tar.xz \ | 28 | https://www.freedesktop.org/software/appstream/releases/AppStream-${PV}.tar.xz \ |
| 29 | file://0001-remove-hardcoded-path.patch \ | 29 | file://0001-remove-hardcoded-path.patch \ |
| 30 | file://0001-meson-do-not-rely-on-an-exe-wrapper.patch \ | ||
| 31 | " | 30 | " |
| 32 | SRC_URI[sha256sum] = "081c917646e94d7221c9e4aae54dacda95a27c607fa93cd8e6344a2b318b98b1" | 31 | SRC_URI[sha256sum] = "ef23477a380e8b525e92cfa87687f1146b9cef74c641349a1ae11250be5401d0" |
| 33 | 32 | ||
| 34 | S = "${WORKDIR}/AppStream-${PV}" | 33 | S = "${WORKDIR}/AppStream-${PV}" |
| 35 | 34 | ||
