diff options
author | 2023-11-09 15:20:48 +1100 | |
---|---|---|
committer | 2023-12-10 13:38:34 -0500 | |
commit | 4d80747a73b7e207fb6460e0e86efd4c641cb405 (patch) | |
tree | d8eca66cb23fd87d8f75226a2d084e27a1361363 /x11-libs | |
parent | dev-util/directx-headers: Version bump to 1.611.0 (diff) | |
download | gentoo-4d80747a73b7e207fb6460e0e86efd4c641cb405.tar.gz gentoo-4d80747a73b7e207fb6460e0e86efd4c641cb405.tar.bz2 gentoo-4d80747a73b7e207fb6460e0e86efd4c641cb405.zip |
x11-libs/libxcb: Enable large file support
This patch is also being submitted upstream for the next libxcb release:
https://gitlab.freedesktop.org/xorg/lib/libxcb/-/merge_requests/54
Signed-off-by: Fergus Dall <sidereal@google.com>
Closes: https://github.com/gentoo/gentoo/pull/33734
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'x11-libs')
-rw-r--r-- | x11-libs/libxcb/files/libxcb-1.16-Enable-large-file-support.patch | 25 | ||||
-rw-r--r-- | x11-libs/libxcb/libxcb-1.16-r1.ebuild | 66 |
2 files changed, 91 insertions, 0 deletions
diff --git a/x11-libs/libxcb/files/libxcb-1.16-Enable-large-file-support.patch b/x11-libs/libxcb/files/libxcb-1.16-Enable-large-file-support.patch new file mode 100644 index 000000000000..c1c8ad5dc05c --- /dev/null +++ b/x11-libs/libxcb/files/libxcb-1.16-Enable-large-file-support.patch @@ -0,0 +1,25 @@ +From 3c946010c8521497b0fba2c8bc9bde184622345a Mon Sep 17 00:00:00 2001 +From: Fergus Dall <sidereal@google.com> +Date: Tue, 7 Nov 2023 17:42:42 +1100 +Subject: [PATCH libxcb] Enable large file support + +Signed-off-by: Fergus Dall <sidereal@google.com> +--- + configure.ac | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/configure.ac b/configure.ac +index b78454d..d981bea 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -18,6 +18,7 @@ AM_PATH_PYTHON([3.0]) + # Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL) + # to avoid autoconf errors. + AC_USE_SYSTEM_EXTENSIONS ++AC_SYS_LARGEFILE + + # Initialize libtool + LT_PREREQ([2.2]) +-- +2.42.0.869.gea05f2083d-goog + diff --git a/x11-libs/libxcb/libxcb-1.16-r1.ebuild b/x11-libs/libxcb/libxcb-1.16-r1.ebuild new file mode 100644 index 000000000000..abb75e7b35a6 --- /dev/null +++ b/x11-libs/libxcb/libxcb-1.16-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_REQ_USE="xml(+)" + +XORG_TARBALL_SUFFIX="xz" +XORG_MULTILIB=yes +XORG_DOC=doc + +inherit python-any-r1 xorg-3 + +DESCRIPTION="X C-language Bindings library" +HOMEPAGE="https://xcb.freedesktop.org/ https://gitlab.freedesktop.org/xorg/lib/libxcb" + +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="doc selinux test +xkb" +RESTRICT="!test? ( test )" +SLOT="0/1.12" + +RDEPEND=" + >=x11-libs/libXau-1.0.7-r1[${MULTILIB_USEDEP}] + >=x11-libs/libXdmcp-1.1.1-r1[${MULTILIB_USEDEP}] +" +DEPEND="${RDEPEND} + x11-base/xorg-proto + >=x11-base/xcb-proto-1.16.0 + elibc_Darwin? ( dev-libs/libpthread-stubs ) + test? ( dev-libs/check[${MULTILIB_USEDEP}] ) +" +# Note: ${PYTHON_USEDEP} needs to go verbatim +BDEPEND="${PYTHON_DEPS} + $(python_gen_any_dep '>=x11-base/xcb-proto-1.16.0[${PYTHON_USEDEP}]') + doc? ( app-doc/doxygen[dot] ) + test? ( dev-libs/libxslt ) + >=x11-misc/util-macros-1.18 +" + +PATCHES=( + "${FILESDIR}/${PN}-1.16-Enable-large-file-support.patch" +) + +python_check_deps() { + python_has_version ">=x11-base/xcb-proto-1.16.0[${PYTHON_USEDEP}]" +} + +pkg_setup() { + python-any-r1_pkg_setup + xorg-3_pkg_setup +} + +src_prepare() { + default + + eautoreconf +} + +src_configure() { + local XORG_CONFIGURE_OPTIONS=( + $(use_enable doc devel-docs) + $(use_enable selinux) + ) + xorg-3_src_configure +} |