Please add USE flag systemd to the ebuild https://github.com/ximion/appstream/commit/c9aa12c8438c6cf88ab7d0e6aee9df032d52056e option('systemd', type : 'boolean', value : true, description : 'Build with systemd support' ) >>> Unpacking source... * Repository id: ximion_appstream.git * To override fetched repository properties, use: * EGIT_OVERRIDE_REPO_XIMION_APPSTREAM * EGIT_OVERRIDE_BRANCH_XIMION_APPSTREAM * EGIT_OVERRIDE_COMMIT_XIMION_APPSTREAM * EGIT_OVERRIDE_COMMIT_DATE_XIMION_APPSTREAM * * Fetching https://github.com/ximion/appstream ... git fetch https://github.com/ximion/appstream +HEAD:refs/git-r3/HEAD git symbolic-ref refs/git-r3/dev-libs/appstream/0/__main__ refs/git-r3/HEAD * Checking out https://github.com/ximion/appstream to /var/tmp/portage/dev-libs/appstream-9999/work/appstream-9999 ... git checkout --quiet refs/git-r3/HEAD GIT update --> repository: https://github.com/ximion/appstream at the commit: fb72af5443b93927424175d113811a7656f7eb15 >>> Source unpacked in /var/tmp/portage/dev-libs/appstream-9999/work >>> Preparing source in /var/tmp/portage/dev-libs/appstream-9999/work/appstream-9999 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-libs/appstream-9999/work/appstream-9999 ... meson setup --libdir lib64 --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --build.pkg-config-path /usr/share/pkgconfig --pkg-config-path /usr/share/pkgconfig --native-file /var/tmp/portage/dev-libs/appstream-9999/temp/meson.x86_64-pc-linux-gnu.amd64.ini -Db_pch=false -Dwerror=false --buildtype plain -Dapidocs=false -Ddocs=false -Dcompose=false -Dmaintainer=false -Dstatic-analysis=false -Dstemming=true -Dvapi=false -Dapt-support=false -Dinstall-docs=false -Dgir=true -Dqt=true /var/tmp/portage/dev-libs/appstream-9999/work/appstream-9999 /var/tmp/portage/dev-libs/appstream-9999/work/appstream-9999-build The Meson build system Version: 1.2.1 Source dir: /var/tmp/portage/dev-libs/appstream-9999/work/appstream-9999 Build dir: /var/tmp/portage/dev-libs/appstream-9999/work/appstream-9999-build Build type: native build Project name: AppStream Project version: 1.0.0 C compiler for the host machine: x86_64-pc-linux-gnu-gcc (gcc 13.2.1 "x86_64-pc-linux-gnu-gcc (Gentoo 13.2.1_p20230916 p7) 13.2.1 20230916") C linker for the host machine: x86_64-pc-linux-gnu-gcc ld.bfd 2.41 Host machine cpu family: x86_64 Host machine cpu: x86_64 Configuring config.h using configuration Compiler for C supports arguments -Werror=shadow: YES Compiler for C supports arguments -Werror=empty-body: YES Compiler for C supports arguments -Werror=strict-prototypes: YES Compiler for C supports arguments -Werror=missing-prototypes: YES Compiler for C supports arguments -Werror=implicit-function-declaration: YES Compiler for C supports arguments -Werror=pointer-arith: YES Compiler for C supports arguments -Werror=missing-declarations: YES Compiler for C supports arguments -Werror=return-type: YES Compiler for C supports arguments -Werror=int-conversion: YES Compiler for C supports arguments -Werror=incompatible-pointer-types: YES Compiler for C supports arguments -Werror=misleading-indentation: YES Compiler for C supports arguments -Werror=missing-include-dirs: YES Compiler for C supports arguments -Werror=declaration-after-statement: YES Compiler for C supports arguments -Werror=format-security: YES Compiler for C supports arguments -Wno-missing-field-initializers: YES Compiler for C supports arguments -Wno-error=missing-field-initializers: YES Compiler for C supports arguments -Wno-unused-parameter: YES Compiler for C supports arguments -Wno-error=unused-parameter: YES Found pkg-config: /usr/bin/x86_64-pc-linux-gnu-pkg-config (2.0.3) Run-time dependency glib-2.0 found: YES 2.78.0 Run-time dependency gobject-2.0 found: YES 2.78.0 Run-time dependency gio-2.0 found: YES 2.78.0 Run-time dependency libcurl found: YES 8.3.0 Run-time dependency libxml-2.0 found: YES 2.11.5 Run-time dependency yaml-0.1 found: YES 0.2.5 Run-time dependency xmlb found: YES 0.3.14 Found CMake: /usr/bin/cmake (3.27.6) Run-time dependency libsystemd found: NO (tried pkgconfig and cmake) meson.build:158:17: ERROR: Dependency "libsystemd" not found, tried pkgconfig and cmake A full log can be found at /var/tmp/portage/dev-libs/appstream-9999/work/appstream-9999-build/meson-logs/meson-log.txt * ERROR: dev-libs/appstream-9999::kde failed (configure phase): * (no error message) * * Call stack: * ebuild.sh, line 136: Called src_configure * environment, line 2836: Called meson_src_configure * environment, line 2263: Called die * The specific snippet of code: * "${mesonargs[@]}" ) || die *
While at it please change # check as_api_level SLOT="0/4" to SLOT="0/5" ls -l /usr/lib64/lib*pp*tream* lrwxrwxrwx 1 root root 22 6. Nov 2022 /usr/lib64/libappstream-glib.so -> libappstream-glib.so.8 lrwxrwxrwx 1 root root 27 6. Nov 2022 /usr/lib64/libappstream-glib.so.8 -> libappstream-glib.so.8.0.10 -rwxr-xr-x 1 root root 452552 6. Nov 2022 /usr/lib64/libappstream-glib.so.8.0.10 lrwxrwxrwx 1 root root 19 25. Sep 10:59 /usr/lib64/libAppStreamQt.so -> libAppStreamQt.so.3 -rwxr-xr-x 1 root root 579784 25. Sep 10:59 /usr/lib64/libAppStreamQt.so.1.0.0 lrwxrwxrwx 1 root root 23 25. Sep 10:59 /usr/lib64/libAppStreamQt.so.3 -> libAppStreamQt.so.1.0.0 lrwxrwxrwx 1 root root 17 25. Sep 10:59 /usr/lib64/libappstream.so -> libappstream.so.5 -rwxr-xr-x 1 root root 694856 25. Sep 10:59 /usr/lib64/libappstream.so.1.0.0 lrwxrwxrwx 1 root root 21 25. Sep 10:59 /usr/lib64/libappstream.so.5 -> libappstream.so.1.0.0
I also see it uses QT6 now with option -Dqt... Run-time dependency qt6 (modules: Core) found: YES 6.7.0 (pkg-config) Detecting Qt6 tools Run-time dependency qt6 (modules: Core) found: YES 6.7.0 (pkg-config) Program /usr/lib64/qt6/bin/moc found: NO Program /usr/lib64/qt6/libexec/moc found: YES 6.7.0 (/usr/lib64/qt6/libexec/moc) Program /usr/lib64/qt6/bin/uic found: NO Program /usr/lib64/qt6/libexec/uic found: YES 6.7.0 (/usr/lib64/qt6/libexec/uic) Program /usr/lib64/qt6/bin/rcc found: NO Program /usr/lib64/qt6/libexec/rcc found: YES 6.7.0 (/usr/lib64/qt6/libexec/rcc) Program /usr/lib64/qt6/bin/lrelease found: YES 6.7.0 (/usr/lib64/qt6/bin/lrelease) Configuring version.h using configuration Configuring AppStreamQtConfig.cmake using configuration Configuring AppStreamQtConfigVersion.cmake using configuration option('qt', type : 'boolean', value : false, description : 'Build libappstream-qt for Qt6' ) option('qt5', type : 'boolean', value : false, description: 'Build libappstream-qt5 for Qt5' ) And it is not possible to have them both enabled at the same time: qt/meson.build:4:4: ERROR: Problem encountered: Both the "qt" and "qt5" option enabled. Please select only one Qt major version to build!
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/kde.git/commit/?id=33086404d42b4a6fea1cca7766e9fc911140f542 commit 33086404d42b4a6fea1cca7766e9fc911140f542 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2023-11-28 21:40:53 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2023-11-28 22:10:12 +0000 dev-libs/appstream: Switch to Qt6, bump subslot, add new dependency Rebase disable-Werror-flags.patch Bug: https://bugs.gentoo.org/914646 Closes: https://bugs.gentoo.org/914610 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> dev-libs/appstream/appstream-9999.ebuild | 23 ++++++----- .../appstream-0.14.3-disable-Werror-flags.patch | 12 ------ .../appstream-1.0.0-disable-Werror-flags.patch | 47 ++++++++++++++++++++++ 3 files changed, 59 insertions(+), 23 deletions(-)