diff options
author | Markus Volk <f_l_k@t-online.de> | 2023-12-15 18:30:56 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-23 08:46:00 +0000 |
commit | 0b3cea1baa3ac813087e3bb3289e3e8a78292ff5 (patch) | |
tree | f3a353aa4f2aabc901b3143025867035499069b1 /meta/recipes-support | |
parent | 48f4dd4a0c6569996e190b452e9b6e0c68942796 (diff) | |
download | poky-0b3cea1baa3ac813087e3bb3289e3e8a78292ff5.tar.gz |
appstream: Upgrade 0.16.3 -> 1.0.0
- remove backport patch
- update 0001-remove-hardcoded-path.patch
- fix api-documentation
Version 1.0.0
~~~~~~~~~~~~~~
Released: 2023-11-11
Notes:
* This version breaks API and bumps the SONAME of libappstream!
Applications using AppStream will have to be ported to the new API.
The 1.0 release is coinstallable with the stable 0.16.x series.
Features:
* Autoformat C and C++ sources
* Remove all deprecated symbols
* Drop support for many deprecated AppStream XML features
* Use GPtrArray to expose keywords list
* Add length argument to raw metadata parsing functions
* Add component array container class
* Remove named values for display_length relations
* Make AsPool only accept/return component boxes
* Port all API away from per-entity locale overrides
* Reduce appstream.conf to its essentials, make it work on stateless systems
* Hide search engine details from public API
* Wrap release entries in AsReleaseList container class
* Make AsMetadata handle AsReleaseList objects
* Refactor is_satisfied result into new RelationCheckResult class
* Add a method to check all relations of a component and get the result
* Add algorithm to score compatibility with a system, add chassis templates
* ascli: Add new check-syscompat command to check chassis compatibility
* Implement environment property for component screenshots
* Autogenerate translatable DE and gui-environment-style C arrays
* Expose more advanced markup conversion function, update function names
* Allow BLAKE3 and SHA512 checksums for release artifacts
* Stop supporting mailto: URLs in <url/> tags
* validator: Improve API and simplify it
* validator: Parse XML in pedantic mode when validating
* validator: Check screenshot environment property
* validator: Only apply summary-has-dot-suffix check to untranslated strings
* compose: Allow creating metadata with complete URLs and no base URL
* spdx: Add API to retrieve a translated license name from an SPDX ID
* qt: Switch to building with Qt6
* qt: Make it possible to iterate ComponentBox
* qt: Implement AppStream::ComponentBox::erase
* qt: Allow concatenating two ComponentBoxes
* qt: Allow loading Pool asynchronously
* qt: Use ComponentBox/Releases in Qt bindings as well
* qt: Add support for the new API to check relation satisfaction
* qt: Maintenance and namespace fixes, use cPtr() to get C pointers everywhere
* bundle: Add linglong as a new type of bundle
* Add GUI environment IDs for macOS and Microsoft Windows
* validator: Check if Release Description is inside description tag
* validator: Add validation for content_rating
* Add support for building on Win32
* win32: change some file/path-related code for portability
* Implement the developer element for unique developer IDs
* Implement scaling factor for screenshots
* component-box: Allow removal of components by-index
* Implement support for external references and citations
* Implement usertags for release data as well
* Move ValueFlags to the context, instead of tieing them to components
* pool: search: Add additional weight for exact substring matches on names
* sysinfo: Add memory size detection support for macOS
* Add support for Zstd for on-disk data compression
* utils: Make tar unpacker independent of zstd binary presence
* Drop Python2 provided tag support
* data: Add ‘Endless’ to the list of desktops
* Add NetBSD support
Specification:
* Drop (most) deprecated information
* docs: Clarify environment-based screenshot ordering
* Add new 'snapshot' release kind
* docs: Build all API documentation with gi-docgen
* spec: Document the new "developer" element
* spec: Document the "reference" tag for registry references
* docs: Add example of YAML for references elements
* Allow hyphens in the last segment of a component-ID
* docs: Drop outdated information from l10n quickstart guide
Bugfixes:
* meson: check for docbook xsl stylesheets
* Fix tweaking of appstream.pc when building as subproject
* Fix crash in asc_l10n_search_translations_qt()
* qt: Make Qt6 dependency a system dependency.
* meson: do not rely on an exe wrapper
* meson: do not -I/usr/include when !stemmer
* meson: Prevent building attempts with MSVC
* meson: Use an SPDX license indentifier in project(license:)
* Add meson overrides
* compose: Set lower-cased CID for synthesized components again
* compose: Set lower-cased CID in desktop-entry parse function
* compose: Honor prefix in font search
* compose: Select the correct default icon glyphs for fonts
* Don't crash when non-YAML documents are read as YAML
* Do not override default-priority when parsing multiple metadata files
* Ensure stemmer always has the right locale and token-search works
* Require a more recent libxmlb to avoid crashes
* Rename component get_releases to indicate that releases may not be loaded from the web
* Prevent string-id validation functions from matching source comments
* Don't define _POSIX_C_SOURCE when building for NetBSD
Miscellaneous:
* Explain metainfo-ancient error in more detail
* Make sed invocation more portable
* Add FreeBSD CI
* Allow variable shadowing in C++ code
* Drop the catchall as-enums unit
* vapi: Drop unneeded metadata
* Make AsMetadata return a component box for multiple components
* apt: Make item descriptions more human-friendly
* Streamline README
Contributors:
Aleix Pol, Alessandro Astone, Alexander Wilms, Dan Yeaw, Daniel Drake,
Gary Wang, Gleb Popov, Ingo Klöcker, JakobDev, Jeremy Whiting, Kai Uwe Broulik,
Marc-André Lureau, Matthias Klumpp, Philip Withnall, Tao Zuhong,
Thomas Klausner, Tristan Partin, and thanks to all translators mentioned
in the respective l10n files!
Version 0.16.4
~~~~~~~~~~~~~~
Released: 2023-11-10
Features:
* Allow hyphens in the last segment of a component-ID
* Implement the developer element for unique developer IDs
* Add meson overrides
Bugfixes:
* meson: Prevent building attempts with MSVC
* meson: Avoid potentially bad sed backup filename when fixing .pc file
Miscellaneous:
* Make sed invocation more portable
Contributors:
Gleb Popov, Matthias Klumpp, Tristan Partin
(From OE-Core rev: 104b38e204729a08a160752c12933739d9fbb92a)
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-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 | ||