From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 17E58158099 for ; Tue, 28 Nov 2023 22:28:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 541F62BC01F; Tue, 28 Nov 2023 22:28:56 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 31B102BC01F for ; Tue, 28 Nov 2023 22:28:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0B123335D17 for ; Tue, 28 Nov 2023 22:28:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9748FF1A for ; Tue, 28 Nov 2023 22:28:53 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1701209325.d684c9ab83f6f26ec6e118c43bfc6b9d319ccd1b.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/appstream/, dev-libs/appstream/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/appstream/Manifest dev-libs/appstream/appstream-0.16.4.ebuild dev-libs/appstream/files/appstream-0.16.4-disable-Werror-flags.patch X-VCS-Directories: dev-libs/appstream/ dev-libs/appstream/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: d684c9ab83f6f26ec6e118c43bfc6b9d319ccd1b X-VCS-Branch: master Date: Tue, 28 Nov 2023 22:28:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5b11f2f6-7a37-42a4-8dba-73d5455031c6 X-Archives-Hash: 62402a13b831a5288edfae26fe75c78c commit: d684c9ab83f6f26ec6e118c43bfc6b9d319ccd1b Author: Andreas Sturmlechner gentoo org> AuthorDate: Tue Nov 28 21:40:08 2023 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Tue Nov 28 22:08:45 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d684c9ab dev-libs/appstream: add 0.16.4 Bug: https://bugs.gentoo.org/915503 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-libs/appstream/Manifest | 1 + dev-libs/appstream/appstream-0.16.4.ebuild | 79 ++++++++++++++++++++++ .../appstream-0.16.4-disable-Werror-flags.patch | 50 ++++++++++++++ 3 files changed, 130 insertions(+) diff --git a/dev-libs/appstream/Manifest b/dev-libs/appstream/Manifest index 2e213f107408..0cfafec657cc 100644 --- a/dev-libs/appstream/Manifest +++ b/dev-libs/appstream/Manifest @@ -1 +1,2 @@ DIST AppStream-0.15.6.tar.xz 2517688 BLAKE2B 09519205c7dfc5f0715b9d5ae7e99a67673ab499f1e2cb39815edde64defc1aa5059215575278bbcfc4482cd385a79e081c70f6acea3c446c5869dc6b2e18f6c SHA512 7426bc89e22b751de7b3e27d7c07eb1c373f4439f9966868ce5ea410d209b8c5292e03695a34b7a49bfa61e2e62265c7f7cdffc0be871c950193c933f65757ef +DIST AppStream-0.16.4.tar.xz 2570176 BLAKE2B ac051b846fd1c7b0cbb3429e0b4c3f81027cddb35ee6bcd5e9d38a09d937abcc37ac4908f68ec55404ae852fd146b4e749832d3ac96443458e86cfe506a6fed4 SHA512 e3a9fc423fe5a2baaaa002871566f320ecd6dbd3a01ab24221afe9b93a69e9afb6bed6d7772c434376501803dc7b2c80b79eda849fcaf4748f9f24a5908a22a8 diff --git a/dev-libs/appstream/appstream-0.16.4.ebuild b/dev-libs/appstream/appstream-0.16.4.ebuild new file mode 100644 index 000000000000..431e2514157b --- /dev/null +++ b/dev-libs/appstream/appstream-0.16.4.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson xdg-utils + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/ximion/${PN}" +else + MY_PN="AppStream" + SRC_URI="https://www.freedesktop.org/software/appstream/releases/${MY_PN}-${PV}.tar.xz" + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" + S="${WORKDIR}/${MY_PN}-${PV}" +fi + +DESCRIPTION="Cross-distro effort for providing metadata for software in the Linux ecosystem" +HOMEPAGE="https://www.freedesktop.org/wiki/Distributions/AppStream/" + +LICENSE="LGPL-2.1+ GPL-2+" +# check as_api_level +SLOT="0/4" +IUSE="apt doc +introspection qt5 systemd test" +RESTRICT="test" # bug 691962 + +RDEPEND=" + >=dev-libs/glib-2.62:2 + dev-libs/libxml2:2 + >=dev-libs/libxmlb-0.3.14:= + dev-libs/libyaml + dev-libs/snowball-stemmer:= + >=net-misc/curl-7.62 + introspection? ( >=dev-libs/gobject-introspection-1.56:= ) + qt5? ( dev-qt/qtcore:5 ) + systemd? ( sys-apps/systemd:= ) +" +DEPEND="${RDEPEND} + test? ( qt5? ( dev-qt/qttest:5 ) ) +" +BDEPEND=" + dev-libs/appstream-glib + dev-libs/libxslt + dev-util/itstool + >=sys-devel/gettext-0.19.8 + doc? ( app-text/docbook-xml-dtd:4.5 ) + test? ( dev-qt/linguist-tools:5 ) +" + +PATCHES=( "${FILESDIR}"/${P}-disable-Werror-flags.patch ) # bug 733774 + +src_prepare() { + default + sed -e "/^as_doc_target_dir/s/appstream/${PF}/" -i docs/meson.build || die + if ! use test; then + sed -e "/^subdir.*tests/s/^/#DONT /" -i {,qt/}meson.build || die # bug 675944 + fi +} + +src_configure() { + xdg_environment_reset + + local emesonargs=( + -Dapidocs=false + -Ddocs=false + -Dcompose=false + -Dmaintainer=false + -Dstatic-analysis=false + -Dstemming=true + -Dvapi=false + -Dapt-support=$(usex apt true false) + -Dinstall-docs=$(usex doc true false) + -Dgir=$(usex introspection true false) + -Dqt=$(usex qt5 true false) + -Dsystemd=$(usex systemd true false) + ) + + meson_src_configure +} diff --git a/dev-libs/appstream/files/appstream-0.16.4-disable-Werror-flags.patch b/dev-libs/appstream/files/appstream-0.16.4-disable-Werror-flags.patch new file mode 100644 index 000000000000..e42c88e3bd31 --- /dev/null +++ b/dev-libs/appstream/files/appstream-0.16.4-disable-Werror-flags.patch @@ -0,0 +1,50 @@ +--- a/meson.build 2023-03-15 14:18:16.657101983 -0700 ++++ b/meson.build 2023-03-15 14:21:20.055049626 -0700 +@@ -97,47 +97,6 @@ + endif + endif + +-# a few compiler warning flags we always want enabled +-add_project_arguments( +- cc.get_supported_arguments([ +- '-Werror=shadow', +- '-Werror=empty-body', +- '-Werror=strict-prototypes', +- '-Werror=missing-prototypes', +- '-Werror=implicit-function-declaration', +- '-Werror=pointer-arith', +- '-Werror=missing-declarations', +- '-Werror=return-type', +- '-Werror=int-conversion', +- '-Werror=incompatible-pointer-types', +- '-Werror=misleading-indentation', +- '-Werror=missing-include-dirs', +- '-Werror=declaration-after-statement', +- '-Werror=format-security', +- +- '-Wno-missing-field-initializers', +- '-Wno-error=missing-field-initializers', +- '-Wno-unused-parameter', +- '-Wno-error=unused-parameter', +- ]), +- language: 'c' +-) +-add_project_arguments( +- '-Wno-unused-parameter', +- '-Werror=shadow', +- '-Werror=empty-body', +- '-Werror=pointer-arith', +- '-Werror=init-self', +- '-Werror=missing-declarations', +- '-Werror=return-type', +- '-Werror=misleading-indentation', +- '-Werror=format-security', +- +- # NOTE: Can be removed with AppStream 1.0 +- '-Wno-error=c++20-compat', +- language: 'cpp' +-) +- + # Vendor extensions in system headers + add_project_arguments('-D_POSIX_C_SOURCE=200809L', language: 'c') +