From b818f6a820dceae80d6e3faac5fdf7be0c6fcbe2 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 23 Aug 2024 14:56:14 +0100 Subject: gentoo auto-resync : 23:08:2024 - 14:56:14 --- dev-libs/Manifest.gz | Bin 101355 -> 101366 bytes dev-libs/libtracecmd/Manifest | 2 + dev-libs/libtracecmd/libtracecmd-1.5.2.ebuild | 45 +++++++ dev-libs/libtraceevent/Manifest | 2 + dev-libs/libtraceevent/libtraceevent-1.8.3.ebuild | 48 +++++++ dev-libs/libtracefs/Manifest | 2 + dev-libs/libtracefs/libtracefs-1.8.1.ebuild | 51 +++++++ dev-libs/openspecfun/Manifest | 2 +- dev-libs/openspecfun/openspecfun-0.5.5.ebuild | 2 +- dev-libs/tree-sitter-lua/Manifest | 2 +- .../tree-sitter-lua/tree-sitter-lua-0.1.0.ebuild | 2 +- dev-libs/tree-sitter-markdown/Manifest | 2 +- .../tree-sitter-markdown-0.2.3.ebuild | 2 +- dev-libs/tree-sitter-query/Manifest | 2 +- .../tree-sitter-query-0.4.0.ebuild | 2 +- dev-libs/tree-sitter-vim/Manifest | 2 +- .../tree-sitter-vim/tree-sitter-vim-0.4.0.ebuild | 2 +- dev-libs/tree-sitter-vimdoc/Manifest | 2 +- .../tree-sitter-vimdoc-3.0.0.ebuild | 2 +- dev-libs/wayland/Manifest | 2 + .../files/wayland-1.23.0-c23-clang-fix.patch | 146 +++++++++++++++++++++ dev-libs/wayland/wayland-1.23.0-r1.ebuild | 70 ++++++++++ 22 files changed, 380 insertions(+), 12 deletions(-) create mode 100644 dev-libs/libtracecmd/libtracecmd-1.5.2.ebuild create mode 100644 dev-libs/libtraceevent/libtraceevent-1.8.3.ebuild create mode 100644 dev-libs/libtracefs/libtracefs-1.8.1.ebuild create mode 100644 dev-libs/wayland/files/wayland-1.23.0-c23-clang-fix.patch create mode 100644 dev-libs/wayland/wayland-1.23.0-r1.ebuild (limited to 'dev-libs') diff --git a/dev-libs/Manifest.gz b/dev-libs/Manifest.gz index 8f3c73678a16..1c910d2abd92 100644 Binary files a/dev-libs/Manifest.gz and b/dev-libs/Manifest.gz differ diff --git a/dev-libs/libtracecmd/Manifest b/dev-libs/libtracecmd/Manifest index e62ae0461f50..9568df7e8a55 100644 --- a/dev-libs/libtracecmd/Manifest +++ b/dev-libs/libtracecmd/Manifest @@ -1,3 +1,5 @@ DIST libtracecmd-1.5.1.tar.gz 357041 BLAKE2B 84410dda0f50d536606727b9c99cd094aad3efbb0410fa78b1973dce4c3c2c7e8fef46614a210b22daa88f56a410b9216acf4d247c054c8c948b4716cb0d7aa5 SHA512 0fa0b6a912164284e6db3c95d99c46e0f6726021fa7f76e531871d6424c0a5d8f316244f75a5c85b06b1cd5aa7349dcb286185fa3a0b36a08c8b7eac38ad8192 +DIST libtracecmd-1.5.2.tar.gz 363431 BLAKE2B c21523f3b487ed742cc3fa67ccfdeca89ea3f571aef1240e3c6dea55588661752dee772948376e5d5612de588aae5dd02f9c407a30e6c5fb537a71fbeaad473b SHA512 aaaa65fde06d71bf0e2199bf32a767f900b68c1bf5adc726adad5b76123daf0c9118ef10a5d276fcc375b63614a11428998c837a8c7e01c78c0411087a095f2f EBUILD libtracecmd-1.5.1.ebuild 957 BLAKE2B 746740a84572ad6c88275e18777629c1cca92d49a4efbec184e0799dae76fdb6847e8c44d20a4d6707d5b3d88954b2718f47b1c793f591d84b09648d413de171 SHA512 2733a6db5b4c5583aff7721cb3044a0ebe2451e8ed2cd2978d1d34c1a82b4ceb8e3254cd727b7cab49ebaa9b1f5965b3bffa612a0a8a3daab4aba222869a7555 +EBUILD libtracecmd-1.5.2.ebuild 956 BLAKE2B b8971de8a375f41aed7a5b3292380a936b5a2a7d05d83bd9fbac6bb1c4a1e0bef9c06c98f966e4cd273064528865c7bba80a390c2b25ababac9536382b03e59a SHA512 a7d4a8852edf7a877b41fea4d113673cff9882e6f356869c299166dd56034c81058ddb6c78a80f7a303bfe4274c4f198c02f9b21e70db0aa6b1acfa488f19a36 MISC metadata.xml 363 BLAKE2B e7330c25a8a87a9811793ee730e7822000fdf1cbdda003302e5d542118204d905583a4acd07a5f37a15952bbe6265ff606d44978db823905c724b5f142d5d2ae SHA512 7be0cfa3fd15ef0cfc0647c73d69a7efc5f00d8b7f9d85c6092326d638132e7f989b855fe5f3bd9ab770e860e7858f8d462f8727b9ddeee64a0c44f7e66acf9c diff --git a/dev-libs/libtracecmd/libtracecmd-1.5.2.ebuild b/dev-libs/libtracecmd/libtracecmd-1.5.2.ebuild new file mode 100644 index 000000000000..3e8cf3fbeba3 --- /dev/null +++ b/dev-libs/libtracecmd/libtracecmd-1.5.2.ebuild @@ -0,0 +1,45 @@ +# Copyright 2019-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson + +DESCRIPTION="Linux kernel tracecmd library" +HOMEPAGE="https://git.kernel.org/pub/scm/libs/trace-cmd/trace-cmd.git/" + +if [[ ${PV} =~ [9]{4,} ]]; then + EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/" + inherit git-r3 +else + SRC_URI="https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/snapshot/trace-cmd-${P}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +fi +S="${WORKDIR}/trace-cmd-${P}/lib" + +LICENSE="LGPL-2.1" +SLOT="0" + +RDEPEND=" + ! +Date: Sat, 29 Jun 2024 15:05:00 +0300 +Subject: [PATCH] Put WL_DEPRECATED in front of the function declarations + +This fixes the following clang error when using C23: + +../src/wayland-server-core.h:680:41: error: 'deprecated' attribute cannot be applied to types + 680 | int32_t stride, uint32_t format) WL_DEPRECATED; + | ^ +../src/wayland-util.h:52:25: note: expanded from macro 'WL_DEPRECATED' + 52 | #define WL_DEPRECATED [[deprecated]] + | ^ + +Signed-off-by: Kirill Primak +--- a/src/wayland-server-core.h ++++ b/src/wayland-server-core.h +@@ -674,10 +674,11 @@ wl_display_init_shm(struct wl_display *display); + uint32_t * + wl_display_add_shm_format(struct wl_display *display, uint32_t format); + ++WL_DEPRECATED + struct wl_shm_buffer * + wl_shm_buffer_create(struct wl_client *client, + uint32_t id, int32_t width, int32_t height, +- int32_t stride, uint32_t format) WL_DEPRECATED; ++ int32_t stride, uint32_t format); + + void + wl_log_set_handler_server(wl_log_func_t handler); +--- a/src/wayland-server.c ++++ b/src/wayland-server.c +@@ -2483,9 +2483,10 @@ wl_priv_signal_final_emit(struct wl_priv_signal *signal, void *data) + + /** \cond */ /* Deprecated functions below. */ + ++WL_DEPRECATED + uint32_t + wl_client_add_resource(struct wl_client *client, +- struct wl_resource *resource) WL_DEPRECATED; ++ struct wl_resource *resource); + + WL_EXPORT uint32_t + wl_client_add_resource(struct wl_client *client, +@@ -2514,11 +2515,12 @@ wl_client_add_resource(struct wl_client *client, + return resource->object.id; + } + ++WL_DEPRECATED + struct wl_resource * + wl_client_add_object(struct wl_client *client, + const struct wl_interface *interface, + const void *implementation, +- uint32_t id, void *data) WL_DEPRECATED; ++ uint32_t id, void *data); + + WL_EXPORT struct wl_resource * + wl_client_add_object(struct wl_client *client, +@@ -2537,10 +2539,11 @@ wl_client_add_object(struct wl_client *client, + return resource; + } + ++WL_DEPRECATED + struct wl_resource * + wl_client_new_object(struct wl_client *client, + const struct wl_interface *interface, +- const void *implementation, void *data) WL_DEPRECATED; ++ const void *implementation, void *data); + + WL_EXPORT struct wl_resource * + wl_client_new_object(struct wl_client *client, +@@ -2599,10 +2602,11 @@ wl_client_get_user_data(struct wl_client *client) + return client->data; + } + ++WL_DEPRECATED + struct wl_global * + wl_display_add_global(struct wl_display *display, + const struct wl_interface *interface, +- void *data, wl_global_bind_func_t bind) WL_DEPRECATED; ++ void *data, wl_global_bind_func_t bind); + + WL_EXPORT struct wl_global * + wl_display_add_global(struct wl_display *display, +@@ -2612,9 +2616,10 @@ wl_display_add_global(struct wl_display *display, + return wl_global_create(display, interface, interface->version, data, bind); + } + ++WL_DEPRECATED + void + wl_display_remove_global(struct wl_display *display, +- struct wl_global *global) WL_DEPRECATED; ++ struct wl_global *global); + + WL_EXPORT void + wl_display_remove_global(struct wl_display *display, struct wl_global *global) +--- a/src/wayland-server.h ++++ b/src/wayland-server.h +@@ -70,30 +70,35 @@ struct wl_resource { + void *data; + }; + ++WL_DEPRECATED + uint32_t + wl_client_add_resource(struct wl_client *client, +- struct wl_resource *resource) WL_DEPRECATED; ++ struct wl_resource *resource); + ++WL_DEPRECATED + struct wl_resource * + wl_client_add_object(struct wl_client *client, + const struct wl_interface *interface, + const void *implementation, +- uint32_t id, void *data) WL_DEPRECATED; ++ uint32_t id, void *data); + ++WL_DEPRECATED + struct wl_resource * + wl_client_new_object(struct wl_client *client, + const struct wl_interface *interface, +- const void *implementation, void *data) WL_DEPRECATED; ++ const void *implementation, void *data); + ++WL_DEPRECATED + struct wl_global * + wl_display_add_global(struct wl_display *display, + const struct wl_interface *interface, + void *data, +- wl_global_bind_func_t bind) WL_DEPRECATED; ++ wl_global_bind_func_t bind); + ++WL_DEPRECATED + void + wl_display_remove_global(struct wl_display *display, +- struct wl_global *global) WL_DEPRECATED; ++ struct wl_global *global); + + #endif + +-- +GitLab + diff --git a/dev-libs/wayland/wayland-1.23.0-r1.ebuild b/dev-libs/wayland/wayland-1.23.0-r1.ebuild new file mode 100644 index 000000000000..ec497be319af --- /dev/null +++ b/dev-libs/wayland/wayland-1.23.0-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +if [[ ${PV} = *9999* ]]; then + EGIT_REPO_URI="https://gitlab.freedesktop.org/wayland/wayland.git" + inherit git-r3 +else + SRC_URI="https://gitlab.freedesktop.org/wayland/${PN}/-/releases/${PV}/downloads/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +fi +inherit meson-multilib + +DESCRIPTION="Wayland protocol libraries" +HOMEPAGE="https://wayland.freedesktop.org/ https://gitlab.freedesktop.org/wayland/wayland" + +LICENSE="MIT" +SLOT="0" +IUSE="doc test" +RESTRICT="!test? ( test )" + +BDEPEND=" + ~dev-util/wayland-scanner-${PV} + virtual/pkgconfig + doc? ( + >=app-text/doxygen-1.6[dot] + app-text/xmlto + >=media-gfx/graphviz-2.26.0 + ) +" +DEPEND=" + >=dev-libs/libffi-3.0.13-r1:=[${MULTILIB_USEDEP}] +" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/wayland-1.23.0-c23-clang-fix.patch +) + +multilib_src_configure() { + local emesonargs=( + $(meson_native_use_bool doc documentation) + $(meson_native_true dtd_validation) + -Dlibraries=true + -Dscanner=false + $(meson_use test tests) + ) + meson_src_configure +} + +src_test() { + # We set it on purpose to only a short subdir name, as socket paths are + # created in there, which are 108 byte limited. With this it hopefully + # barely fits to the limit with /var/tmp/portage/${CATEGORY}/${PF}/temp/x + export XDG_RUNTIME_DIR="${T}"/x + mkdir "${XDG_RUNTIME_DIR}" || die + chmod 0700 "${XDG_RUNTIME_DIR}" || die + + multilib-minimal_src_test +} + +src_install() { + meson-multilib_src_install + + if use doc; then + mv "${ED}"/usr/share/doc/"${PN}"/* "${ED}"/usr/share/doc/"${PF}"/ || die + rmdir "${ED}"/usr/share/doc/"${PN}" || die + fi +} -- cgit v1.2.3