Sync with portage [Tue Jan 21 10:20:57 MSK 2020].
This commit is contained in:
parent
aaeee9c2ba
commit
4617350cf7
1901 changed files with 8394 additions and 2919 deletions
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-${PV}-Source.zip"
|
|||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
KEYWORDS="amd64 ~x86"
|
||||
IUSE="aot"
|
||||
|
||||
COMMON_DEPEND="dev-lang/mono"
|
||||
|
|
|
@ -8,7 +8,7 @@ PYTHON_REQ_USE="sqlite?"
|
|||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A lightweight password-manager with multiple database backends"
|
||||
HOMEPAGE="https://pwman3.github.io"
|
||||
HOMEPAGE="https://pwman3.github.io/pwman3/"
|
||||
SRC_URI="https://github.com/pwman3/pwman3/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_6} )
|
||||
PYTHON_COMPAT=( python2_7 python3_{6,7,8} )
|
||||
|
||||
inherit python-r1
|
||||
|
||||
|
|
Binary file not shown.
|
@ -3,7 +3,7 @@
|
|||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_6} )
|
||||
PYTHON_COMPAT=( python2_7 python3_{6,7,8} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
|
|
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
@ -14,7 +14,7 @@ SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz"
|
|||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
||||
KEYWORDS="amd64 ~ppc ~sparc ~x86"
|
||||
IUSE="acl bacula-clientonly bacula-nodir bacula-nosd +batch-insert examples ipv6 libressl logwatch mysql postgres qt5 readline +sqlite ssl static tcpd vim-syntax X"
|
||||
|
||||
DEPEND="
|
||||
|
|
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
@ -7,7 +7,7 @@ DESCRIPTION="A Cross-Platform Benchmark for Android, iOS, Linux, MacOS and Windo
|
|||
HOMEPAGE="https://www.geekbench.com/"
|
||||
SRC_URI="https://cdn.geekbench.com/Geekbench-${PV}-Linux.tar.gz"
|
||||
|
||||
KEYWORDS="-* ~amd64"
|
||||
KEYWORDS="-* amd64"
|
||||
LICENSE="geekbench"
|
||||
SLOT="5"
|
||||
|
||||
|
|
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
@ -11,7 +11,7 @@ SRC_URI="http://pogostick.net/~pnh/ntpasswd/${PN}-source-${PV}.zip"
|
|||
|
||||
LICENSE="GPL-2 LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
KEYWORDS="amd64 ~ppc ~x86"
|
||||
IUSE="libressl static"
|
||||
|
||||
RDEPEND="!libressl? ( dev-libs/openssl:0= )
|
||||
|
|
Binary file not shown.
|
@ -2,3 +2,4 @@ DIST docker-compose-1.24.0.tar.gz 307601 BLAKE2B cb2a6f96e14c04d0279b25c075182d8
|
|||
DIST docker-compose-1.24.1.tar.gz 307749 BLAKE2B 7ded0a4b82a7a9beb9de38752f38998ca4ea9421e5ed5630627820ec7e250ad6f03f6788bcbebe8bc0dd4c064d275bb4ca5a6055a95b6a0f72d7ae9038ec7f22 SHA512 9b8632ef263b8dfa678e8b99b46e00441f779716a524280ce25f62fcd2605f400723b7790c466338374c34653946dc2c5d7f09593ddd892fee3409c2a2fd1a5f
|
||||
DIST docker-compose-1.25.0.tar.gz 320048 BLAKE2B a0615c9d81f897f551d664799e2a7cd4d72c3e0b70ceb0ff9bfb533a81799d2d524824ead27bff2391c5e98fc34430fb2ba724bba663ece66417ac72181241f0 SHA512 38be153a8ba1bf1a4a5c63dc794db3344c93c0819fba0c38feb791067e0aa72142205e4255b5fd31bf2f8159dfa04cde09fdcdabe0511bc0e2865974dff5433d
|
||||
DIST docker-compose-1.25.1.tar.gz 321627 BLAKE2B 9056b0e359ff6cccba16b7ea5fc96de363f242103c48d15e3ed19ed5291878f7a5c81f99b7fd3eff46eaff5b271e883125ab02ff22bf592c4a5dd12792790fdc SHA512 5e58edd3364caecc9b6ec0e92e629e624694e42f96da836378648918dfaa41ddc0c99b107f2d3f11d1dd6ab86a516a7b2da3783b542623440d8c0c6628c05020
|
||||
DIST docker-compose-1.25.2.tar.gz 306196 BLAKE2B 6bf9c1ae14b25f41a7b3893f5ddc5b654743b29eb17c3d1b23e47d004e8e3feaf021b67c2419632faa6b11713ad1bd956b9f756e36fcd8efc7e60404a1de53a7 SHA512 ce045c6af233d6d03fd26100bce836444abb3022d6661ac6073cd8c6b8ed1cc0bbef9cbfad73672c8d3b6f3a12ee98e6e60c5f1b90360f778d5fa8d18e00179e
|
||||
|
|
73
app-emulation/docker-compose/docker-compose-1.25.2.ebuild
Normal file
73
app-emulation/docker-compose/docker-compose-1.25.2.ebuild
Normal file
|
@ -0,0 +1,73 @@
|
|||
# Copyright 2018-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_6} )
|
||||
|
||||
inherit bash-completion-r1 distutils-r1
|
||||
|
||||
DESCRIPTION="Multi-container orchestration for Docker"
|
||||
HOMEPAGE="https://github.com/docker/compose"
|
||||
SRC_URI="https://github.com/docker/compose/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/cached-property-1.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/docker-py-3.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/dockerpty-0.4.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/docopt-0.6.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/jsonschema-2.5.1[${PYTHON_USEDEP}]
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
>=dev-python/PySocks-1.6.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.20.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/texttable-0.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/websocket-client-0.32.0[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '>=dev-python/backports-shutil_get_terminal_size-1.0.0[${PYTHON_USEDEP}]' 'python2_7' )
|
||||
$(python_gen_cond_dep '>=dev-python/backports-ssl-match-hostname-3.5[${PYTHON_USEDEP}]' 'python2_7' )
|
||||
$(python_gen_cond_dep '>=dev-python/enum34-1.0.4[${PYTHON_USEDEP}]' 'python2_7' )
|
||||
$(python_gen_cond_dep '>=dev-python/ipaddress-1.0.16[${PYTHON_USEDEP}]' 'python2_7' )
|
||||
$(python_gen_cond_dep '>=dev-python/subprocess32-3.5.4[${PYTHON_USEDEP}]' 'python2_7' )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
<dev-python/pytest-4[${PYTHON_USEDEP}]
|
||||
dev-python/ddt[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '>=dev-python/mock-1.0.1[${PYTHON_USEDEP}]' 'python2_7' )
|
||||
)"
|
||||
|
||||
S="${WORKDIR}/compose-${PV}"
|
||||
|
||||
PATCHES=(
|
||||
# Bug #679968 -- https://bugs.gentoo.org/679968
|
||||
# Bug #681002 -- https://bugs.gentoo.org/681002
|
||||
"${FILESDIR}"/${PN}-1.25.2-setup-py.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
# Address QA issue "docker-compose.exe: missing alias (symlink) for completed command."
|
||||
sed 's,^\(complete.*\) docker-compose\.exe\(.*\),\1\2,' -i contrib/completion/bash/docker-compose || die
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
python_test() {
|
||||
distutils_install_for_testing
|
||||
${PYTHON} -m pytest tests/unit/ || die "tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp contrib/completion/bash/docker-compose ${PN}
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
doins contrib/completion/zsh/*
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
From 19d9b58b97127f24e2280e3119e420393e7d239f Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Pipping <sebastian@pipping.org>
|
||||
Date: Mon, 20 Jan 2020 19:27:46 +0100
|
||||
Subject: [PATCH] setup.py: Drop generic upper version boundaries
|
||||
|
||||
---
|
||||
setup.py | 38 +++++++++++++++++++-------------------
|
||||
1 file changed, 19 insertions(+), 19 deletions(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 110441d..3f6a46f 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -30,35 +30,35 @@ def find_version(*file_paths):
|
||||
|
||||
|
||||
install_requires = [
|
||||
- 'cached-property >= 1.2.0, < 2',
|
||||
- 'docopt >= 0.6.1, < 1',
|
||||
- 'PyYAML >= 3.10, < 6',
|
||||
- 'requests >= 2.20.0, < 3',
|
||||
- 'texttable >= 0.9.0, < 2',
|
||||
- 'websocket-client >= 0.32.0, < 1',
|
||||
- 'docker[ssh] >= 3.7.0, < 5',
|
||||
- 'dockerpty >= 0.4.1, < 1',
|
||||
- 'six >= 1.3.0, < 2',
|
||||
- 'jsonschema >= 2.5.1, < 4',
|
||||
+ 'cached-property >= 1.2.0',
|
||||
+ 'docopt >= 0.6.1',
|
||||
+ 'PyYAML >= 3.10',
|
||||
+ 'requests >= 2.20.0',
|
||||
+ 'texttable >= 0.9.0',
|
||||
+ 'websocket-client >= 0.32.0',
|
||||
+ 'docker[ssh] >= 3.7.0',
|
||||
+ 'dockerpty >= 0.4.1',
|
||||
+ 'six >= 1.3.0',
|
||||
+ 'jsonschema >= 2.5.1',
|
||||
]
|
||||
|
||||
|
||||
tests_require = [
|
||||
- 'pytest < 6',
|
||||
+ 'pytest',
|
||||
]
|
||||
|
||||
|
||||
if sys.version_info[:2] < (3, 4):
|
||||
- tests_require.append('mock >= 1.0.1, < 4')
|
||||
+ tests_require.append('mock >= 1.0.1')
|
||||
|
||||
extras_require = {
|
||||
- ':python_version < "3.2"': ['subprocess32 >= 3.5.4, < 4'],
|
||||
- ':python_version < "3.4"': ['enum34 >= 1.0.4, < 2'],
|
||||
- ':python_version < "3.5"': ['backports.ssl_match_hostname >= 3.5, < 4'],
|
||||
- ':python_version < "3.3"': ['backports.shutil_get_terminal_size == 1.0.0',
|
||||
- 'ipaddress >= 1.0.16, < 2'],
|
||||
- ':sys_platform == "win32"': ['colorama >= 0.4, < 1'],
|
||||
- 'socks': ['PySocks >= 1.5.6, != 1.5.7, < 2'],
|
||||
+ ':python_version < "3.2"': ['subprocess32 >= 3.5.4'],
|
||||
+ ':python_version < "3.4"': ['enum34 >= 1.0.4'],
|
||||
+ ':python_version < "3.5"': ['backports.ssl_match_hostname >= 3.5'],
|
||||
+ ':python_version < "3.3"': ['backports.shutil_get_terminal_size >= 1.0.0',
|
||||
+ 'ipaddress >= 1.0.16'],
|
||||
+ ':sys_platform == "win32"': ['colorama >= 0.4'],
|
||||
+ 'socks': ['PySocks >= 1.5.6, != 1.5.7'],
|
||||
}
|
||||
|
||||
|
||||
--
|
||||
2.24.1
|
||||
|
|
@ -58,7 +58,7 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
|||
qemu_softmmu_targets_ppc? ( fdt )
|
||||
qemu_softmmu_targets_riscv32? ( fdt )
|
||||
qemu_softmmu_targets_riscv64? ( fdt )
|
||||
static? ( static-user !alsa !gtk !opengl !pulseaudio !snappy )
|
||||
static? ( static-user !alsa !gtk !opengl !pulseaudio !rbd !snappy )
|
||||
virtfs? ( xattr )
|
||||
vte? ( gtk )"
|
||||
|
||||
|
@ -126,7 +126,7 @@ SOFTMMU_TOOLS_DEPEND="
|
|||
)
|
||||
png? ( media-libs/libpng:0=[static-libs(+)] )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
rbd? ( sys-cluster/ceph[static-libs(+)] )
|
||||
rbd? ( sys-cluster/ceph )
|
||||
sasl? ( dev-libs/cyrus-sasl[static-libs(+)] )
|
||||
sdl? (
|
||||
media-libs/libsdl2[X]
|
||||
|
|
|
@ -64,7 +64,7 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
|||
qemu_softmmu_targets_ppc? ( fdt )
|
||||
qemu_softmmu_targets_riscv32? ( fdt )
|
||||
qemu_softmmu_targets_riscv64? ( fdt )
|
||||
static? ( static-user !alsa !gtk !opengl !pulseaudio !snappy )
|
||||
static? ( static-user !alsa !gtk !opengl !pulseaudio !rbd !snappy )
|
||||
virtfs? ( xattr )
|
||||
vte? ( gtk )"
|
||||
|
||||
|
@ -132,7 +132,7 @@ SOFTMMU_TOOLS_DEPEND="
|
|||
)
|
||||
png? ( media-libs/libpng:0=[static-libs(+)] )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
rbd? ( sys-cluster/ceph[static-libs(+)] )
|
||||
rbd? ( sys-cluster/ceph )
|
||||
sasl? ( dev-libs/cyrus-sasl[static-libs(+)] )
|
||||
sdl? (
|
||||
media-libs/libsdl2[X]
|
||||
|
|
|
@ -64,7 +64,7 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
|||
qemu_softmmu_targets_ppc? ( fdt )
|
||||
qemu_softmmu_targets_riscv32? ( fdt )
|
||||
qemu_softmmu_targets_riscv64? ( fdt )
|
||||
static? ( static-user !alsa !gtk !opengl !pulseaudio !snappy !plugins )
|
||||
static? ( static-user !alsa !gtk !opengl !pulseaudio !plugins !rbd !snappy )
|
||||
static-user? ( !plugins )
|
||||
virtfs? ( xattr )
|
||||
vte? ( gtk )
|
||||
|
@ -135,7 +135,7 @@ SOFTMMU_TOOLS_DEPEND="
|
|||
)
|
||||
png? ( media-libs/libpng:0=[static-libs(+)] )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
rbd? ( sys-cluster/ceph[static-libs(+)] )
|
||||
rbd? ( sys-cluster/ceph )
|
||||
sasl? ( dev-libs/cyrus-sasl[static-libs(+)] )
|
||||
sdl? (
|
||||
media-libs/libsdl2[X]
|
||||
|
|
|
@ -64,7 +64,7 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
|||
qemu_softmmu_targets_ppc? ( fdt )
|
||||
qemu_softmmu_targets_riscv32? ( fdt )
|
||||
qemu_softmmu_targets_riscv64? ( fdt )
|
||||
static? ( static-user !alsa !gtk !opengl !pulseaudio !snappy !plugins )
|
||||
static? ( static-user !alsa !gtk !opengl !pulseaudio !plugins !rbd !snappy )
|
||||
static-user? ( !plugins )
|
||||
virtfs? ( xattr )
|
||||
vte? ( gtk )
|
||||
|
@ -135,7 +135,7 @@ SOFTMMU_TOOLS_DEPEND="
|
|||
)
|
||||
png? ( media-libs/libpng:0=[static-libs(+)] )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
rbd? ( sys-cluster/ceph[static-libs(+)] )
|
||||
rbd? ( sys-cluster/ceph )
|
||||
sasl? ( dev-libs/cyrus-sasl[static-libs(+)] )
|
||||
sdl? (
|
||||
media-libs/libsdl2[X]
|
||||
|
|
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
# Copyright 2019 Gentoo Authors
|
||||
# Copyright 2019-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
@ -16,7 +16,7 @@ SRC_URI="
|
|||
|
||||
LICENSE="Flightradar24"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
KEYWORDS="-* amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
net-wireless/dump1090
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
@ -12,7 +12,7 @@ SRC_URI="
|
|||
x86? ( https://www.batronix.com/exe/Batronix/Prog-Express/deb/${P}-1.i386.deb )
|
||||
"
|
||||
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
KEYWORDS="-* amd64 ~x86"
|
||||
LICENSE="prog-express"
|
||||
SLOT="0"
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
@ -11,7 +11,7 @@ SRC_URI="https://github.com/hjelmn/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|||
|
||||
LICENSE="GPL-2+ LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
KEYWORDS="amd64 ~ppc ~x86"
|
||||
|
||||
RDEPEND="virtual/libusb:1"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
|
Binary file not shown.
|
@ -1,3 +1,2 @@
|
|||
DIST repoman-2.3.11.tar.bz2 86807 BLAKE2B f5bf8e9b7bac7816ee9b1139d0e0d30e99fc06da4fb742e430c237d9be0e6261bcf5d8f3412f1c20a34e2766c5acc86176b4731f20adc9554de9949bd5622a5d SHA512 331614554bb7ba49b8b63b8612642426fb458aa84de78bb9958be85d03e43d662fc094ecd2472a6f06c6b4f0368ec0542083b04c25f7d8b6aabb432cd2b32367
|
||||
DIST repoman-2.3.16.tar.bz2 86739 BLAKE2B dc3e3b5e72df751cfacc17e6f5c847160438a4d6f5d86b4dd17ab8a3a69cd0502f2965934c456ea7538f228c40364535e861c489ab2a09a0df14183b111e9a38 SHA512 d0e8bee1e3bd6dd8aecb1278fc7877768552612c4638488b61a9b8856ad9cd7333c7d52f0c334925d90170a1d8af20e9ead6533edbc10cae02baec629dece121
|
||||
DIST repoman-2.3.20.tar.bz2 87313 BLAKE2B cc0ff9b651e01b12202b32d48979f42ffde6e8a7c72095a3f75228a54892bc11c521f015738443133bec223f9ca0faf5687388680ddfd19e07514f873094b0f9 SHA512 edb5564de920156fd89b4df136d86b73401d4d5cf591abc2fbbf97f0ebb7bb43ed17d076560a76a1f3269d19a64c7c52d48540134a9fb86d9fa952d1702e01e2
|
||||
|
|
|
@ -1,63 +0,0 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{6,7} )
|
||||
PYTHON_REQ_USE='bzip2(+)'
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/portage.git"
|
||||
S="${WORKDIR}/${P}/repoman"
|
||||
else
|
||||
SRC_URI="https://dev.gentoo.org/~zmedico/portage/archives/${P}.tar.bz2"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Repoman is a Quality Assurance tool for Gentoo ebuilds"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
>=sys-apps/portage-2.3.43[${PYTHON_USEDEP}]
|
||||
>=dev-python/lxml-3.6.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
||||
|
||||
python_install() {
|
||||
# Install sbin scripts to bindir for python-exec linking
|
||||
# they will be relocated in pkg_preinst()
|
||||
distutils-r1_python_install \
|
||||
--system-prefix="${EPREFIX}/usr" \
|
||||
--bindir="$(python_get_scriptdir)" \
|
||||
--docdir="${EPREFIX}/usr/share/doc/${PF}" \
|
||||
--htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
|
||||
--sbindir="$(python_get_scriptdir)" \
|
||||
--sysconfdir="${EPREFIX}/etc" \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z {REPLACING_VERSIONS} ]]; then
|
||||
elog ""
|
||||
elog "This release of repoman is from the new portage/repoman split"
|
||||
elog "release code base."
|
||||
elog "This new repoman code base is still being developed. So its API's"
|
||||
elog "are not to be considered stable and are subject to change."
|
||||
elog "The code released has been tested and considered ready for use."
|
||||
elog "This however does not guarantee it to be completely bug free."
|
||||
elog "Please report any bugs you may encounter."
|
||||
elog ""
|
||||
fi
|
||||
}
|
|
@ -15,7 +15,7 @@ if [[ ${PV} == *9999 ]]; then
|
|||
S="${WORKDIR}/${P}/repoman"
|
||||
else
|
||||
SRC_URI="https://dev.gentoo.org/~zmedico/portage/archives/${P}.tar.bz2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Repoman is a Quality Assurance tool for Gentoo ebuilds"
|
||||
|
|
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
@ -9,7 +9,7 @@ if [[ ${PV} == 9999* ]] ; then
|
|||
inherit git-r3
|
||||
EGIT_REPO_URI="https://git.code.sf.net/p/zsh/code"
|
||||
else
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
SRC_URI="https://www.zsh.org/pub/${P}.tar.xz
|
||||
https://www.zsh.org/pub/old/${P}.tar.xz
|
||||
mirror://sourceforge/${PN}/${P}.tar.xz
|
||||
|
|
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
@ -11,7 +11,7 @@ SRC_URI="http://www.andre-simon.de/zip/${P}.tar.bz2"
|
|||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc64 ~x86"
|
||||
KEYWORDS="amd64 ~ppc64 ~x86"
|
||||
IUSE="qt5"
|
||||
|
||||
RDEPEND="
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
DIST grip-4.2.0.zip 43079 BLAKE2B b7aa31c554d646fdedee88f54e2ad825d56eed26cb18ec364cc0e2638f3d002f2fb3192daa15085b2db5a9d608e37df8c74b19466042c57fa62b80f7bc259eef SHA512 2989a1cc2cb98254e932d5bf6679a205992e74802e68fe45d11cf087747d2379778df254bbf1cf980bb8993dc5568c5112707c645babbb32aae49f443319ff6b
|
||||
DIST grip-4.5.2.tar.gz 145644 BLAKE2B a353a74d55d6496f3dad362b74e434ff22c8130368f6773ab2bfdf66e43c62e8dcba0e3a786157d37b81d7c7e49d0c83a60c847100169684ede9c09f4eb06c3f SHA512 a8937d8ba3633a2d47587eb5c1b0583df7e8a8cacebb87fd50dab3fd2deb91981b38a83a3ed182f4e5e7435c8e2c8d87829e45fa9d32d8823c821f6217c7ccc9
|
||||
|
|
27
app-text/grip/grip-4.5.2.ebuild
Normal file
27
app-text/grip/grip-4.5.2.ebuild
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( pypy3 python3_{6,7,8} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Preview GitHub Markdown files like Readme locally before committing them"
|
||||
HOMEPAGE="https://github.com/joeyespo/grip"
|
||||
LICENSE="MIT"
|
||||
|
||||
SLOT="0"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND="
|
||||
>=dev-python/docopt-0.4.0
|
||||
>=dev-python/flask-0.10.1
|
||||
>=dev-python/markdown-2.5.1
|
||||
>=dev-python/path-and-address-2.0.1
|
||||
>=dev-python/pygments-1.6
|
||||
>=dev-python/requests-2.4.1
|
||||
"
|
|
@ -1,7 +1,10 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<maintainer type="person">
|
||||
<email>bkohler@gentoo.org</email>
|
||||
<name>Ben Kohler</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">joeyespo/grip</remote-id>
|
||||
<remote-id type="pypi">grip</remote-id>
|
||||
|
|
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
@ -11,7 +11,7 @@ SRC_URI="https://fallabs.com/kyotocabinet/pkg/${P}.tar.gz"
|
|||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ia64 ppc ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
|
||||
IUSE="debug doc examples +lzma +lzo static-libs"
|
||||
|
||||
DEPEND="sys-libs/zlib[static-libs?]
|
||||
|
|
|
@ -1,5 +1,2 @@
|
|||
DIST mysql-connector-c++-1.1.11.tar.gz 504872 BLAKE2B 16a265ce291d18d3e76f6654b42271d8c6cc9329f047d9eb0c6cdfaea37e1c13f04932e595e4333882b26154f0940949bc9bdab9d8af8e25d2bfff43be0030fa SHA512 d6839ecda12d1f088f24b20c08f3e9a757e9907d3375dba39e0f247b6a11de59817739644201e74d782d4c900aa18bf60910fe60a9ee98a2c0138104fb55dc22
|
||||
DIST mysql-connector-c++-1.1.12.tar.gz 518615 BLAKE2B 386a4753ca3f03999a49a89507da1b1172b3db89797c38403fee4eea86e7108a5e4f91f24a17de86d585c2a3d9e5742a117fa84d9b14aad649f938a597f3dae9 SHA512 d7e132dbc2efda4a77f8ae00c24006a1ade1d0a50f22d89ece453505e6d206427ee7988df29c0d6ef8b396ad6b8d326b6d263a1d4fa08ef5db0966fb4f1479f4
|
||||
DIST mysql-connector-c++-1.1.9.tar.gz 508255 BLAKE2B e2cd300946a873a94beab13d9d1cb64ecb5bd9a9a56ef2217b1f7aff1643adc9afc0aa22c2ff1e0f6b8318cd34d12a7fe95f0584c96c212307fa9bd0cb54a2a1 SHA512 ec4d6cb7f21d52e786de3bff951e65ea5ad7391ba097b599d0094d3e8356cf17f700dee618e38e79d7a9e562684a6c51cca95fb8e2e225942766d33f8d0a5646
|
||||
DIST mysql-connector-c++-8.0.15-src.tar.gz 2210243 BLAKE2B 45e0ffa2134c9df5a7e311963c7f2c58b5d7cfc0eefd80a5dc323bbe34ba60d40c79154f932e19c5f8e18ae45d0b61d304b7b7daba4955f92f830cf20c718931 SHA512 9a217b8f61babe5dac405be19b12d34b22673e779433d880a3aa31ea2e128f93434599a3fe0c1150b3f7b8c4d03f595d545d8cc33342a60561a2f60bff71ef14
|
||||
DIST mysql-connector-c++-8.0.18-src.tar.gz 3115736 BLAKE2B f28229593d20f4a401a3e9d0e636ee896a90fb7573f06d9b60340540d6c4d577b4f44daa287c7896a03a60d75dec343413cba981e63a22607ce60eb20f4de122 SHA512 f5b202677392bcf5c5bdd4c3433332e57aa20c1a140de81b57ce3ce69709661d572e2466ae022926fc220b20159c90f09f15b5e44f384529103a24fd592de60d
|
||||
DIST mysql-connector-c++-8.0.19-src.tar.gz 3137484 BLAKE2B 82a2900b0daa00bcfd72d562818ada25fe15901991a896a46ecdd9304e03066c4e7a3804287540559df1c74dbd1b3983b450ab783ee8cb7f0d7ec152f3cdc6b0 SHA512 5987ae31cda3a5db18ceded201ccbe66263b8ab7665ceacf70af6bb6b99130377b40514b96644b0768fd809b36ee02580520923c11c1edecccc75da15d7bb0bd
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
https://bugs.mysql.com/bug.php?id=90727
|
||||
|
||||
--- a/FindMySQL.cmake
|
||||
+++ b/FindMySQL.cmake
|
||||
@@ -700,8 +700,10 @@ endif()
|
||||
|
||||
# For dynamic linking use the built-in sys and strings
|
||||
if(NOT MYSQLCLIENT_STATIC_LINKING)
|
||||
+IF(CMAKE_SYSTEM_NAME MATCHES "SunOS")
|
||||
list(APPEND SYS_LIBRARIES "mysql_sys")
|
||||
list(APPEND SYS_LIBRARIES "mysql_strings")
|
||||
+endif()
|
||||
list(APPEND SYS_LIBRARIES ${MYSQL_LIBRARIES})
|
||||
SET(MYSQL_LIBRARIES ${SYS_LIBRARIES})
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
diff -aurN a/driver/mysql_connection.cpp b/driver/mysql_connection.cpp
|
||||
--- a/driver/mysql_connection.cpp 2016-12-14 04:58:54.000000000 -0500
|
||||
+++ b/driver/mysql_connection.cpp 2017-01-26 16:33:58.086005627 -0500
|
||||
@@ -1023,6 +1023,7 @@
|
||||
proxy->get_character_set_info(&cs);
|
||||
*(static_cast<int *>(optionValue)) = cs.mbmaxlen;
|
||||
/* mysql_get_option() was added in mysql 5.7.3 version */
|
||||
+#if !defined( MARIADB_BASE_VERSION ) && !defined ( MARIADB_VERSION_ID )
|
||||
} else if ( proxy->get_server_version() >= 50703 ) {
|
||||
try {
|
||||
if (GET_CONN_OPTION(optionName, optionValue, intOptions)) {
|
||||
@@ -1036,6 +1037,7 @@
|
||||
CPP_ERR_FMT("Unsupported option : %d:(%s) %s", proxy->errNo(), proxy->sqlstate().c_str(), proxy->error().c_str());
|
||||
throw e;
|
||||
}
|
||||
+#endif
|
||||
}
|
||||
}
|
||||
/* }}} */
|
||||
@@ -1053,11 +1055,13 @@
|
||||
MY_CHARSET_INFO cs;
|
||||
proxy->get_character_set_info(&cs);
|
||||
return cs.dir ? sql::SQLString(cs.dir) : "";
|
||||
+#if !defined( MARIADB_BASE_VERSION ) && !defined ( MARIADB_VERSION_ID )
|
||||
} else if ( proxy->get_server_version() >= 50703 ) {
|
||||
const char* optionValue= NULL;
|
||||
if (GET_CONN_OPTION(optionName, &optionValue, stringOptions)) {
|
||||
return optionValue ? sql::SQLString(optionValue) : "";
|
||||
}
|
||||
+#endif
|
||||
}
|
||||
return "";
|
||||
}
|
||||
diff -aurN a/driver/nativeapi/libmysql_static_proxy.cpp b/driver/nativeapi/libmysql_static_proxy.cpp
|
||||
--- a/driver/nativeapi/libmysql_static_proxy.cpp 2017-01-26 16:35:46.256038741 -0500
|
||||
+++ b/driver/nativeapi/libmysql_static_proxy.cpp 2017-01-26 16:28:34.114915809 -0500
|
||||
@@ -319,7 +319,7 @@
|
||||
int
|
||||
LibmysqlStaticProxy::get_option(MYSQL * mysql, enum mysql_option option, const void *arg)
|
||||
{
|
||||
-#if MYSQL_VERSION_ID >= 50703
|
||||
+#if MYSQL_VERSION_ID >= 50703 && !defined( MARIADB_BASE_VERSION ) && !defined ( MARIADB_VERSION_ID )
|
||||
if (::mysql_get_option(mysql, option, arg)) {
|
||||
throw sql::InvalidArgumentException("Unsupported option provided to mysql_get_option()");
|
||||
} else {
|
|
@ -1,307 +0,0 @@
|
|||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -666,7 +666,7 @@ set_target_properties(connector PROPERTIES
|
||||
|
||||
|
||||
install(TARGETS connector
|
||||
- CONFIGURATIONS Release RelWithDebInfo
|
||||
+ CONFIGURATIONS Release RelWithDebInfo Gentoo
|
||||
ARCHIVE DESTINATION "${INSTALL_LIB_DIR_STATIC}" COMPONENT XDevAPIDev
|
||||
RUNTIME DESTINATION "${INSTALL_LIB_DIR}" COMPONENT XDevAPIDll
|
||||
LIBRARY DESTINATION "${INSTALL_LIB_DIR}" COMPONENT XDevAPIDll
|
||||
@@ -737,6 +737,12 @@ TARGET_LINK_LIBRARIES(try connector)
|
||||
SET_INTERFACE_OPTIONS(try devapi)
|
||||
# ADD_GCOV(try)
|
||||
|
||||
+IF(WITH_SSL STREQUAL "system")
|
||||
+ find_package(OpenSSL REQUIRED)
|
||||
+ TARGET_LINK_LIBRARIES(try ${OPENSSL_LIBRARIES})
|
||||
+ENDIF()
|
||||
+
|
||||
+
|
||||
if(WITH_JDBC)
|
||||
|
||||
add_executable(try_jdbc EXCLUDE_FROM_ALL try_jdbc.cc)
|
||||
--- a/cdk/cmake/install_macros.cmake
|
||||
+++ b/cdk/cmake/install_macros.cmake
|
||||
@@ -327,7 +327,7 @@ FUNCTION(INSTALL_DEBUG_TARGET target)
|
||||
DESTINATION ${ARG_DESTINATION}
|
||||
${RENAME_PARAM}
|
||||
${PERMISSIONS_${target_type}}
|
||||
- CONFIGURATIONS Release RelWithDebInfo
|
||||
+ CONFIGURATIONS Release RelWithDebInfo Gentoo
|
||||
COMPONENT ${ARG_COMPONENT}
|
||||
OPTIONAL)
|
||||
|
||||
@@ -346,7 +346,7 @@ FUNCTION(INSTALL_DEBUG_TARGET target)
|
||||
INSTALL(FILES ${debug_pdb_target_location}
|
||||
DESTINATION ${ARG_PDB_DESTINATION}
|
||||
${PDB_RENAME_PARAM}
|
||||
- CONFIGURATIONS Release RelWithDebInfo
|
||||
+ CONFIGURATIONS Release RelWithDebInfo Gentoo
|
||||
COMPONENT ${ARG_COMPONENT}
|
||||
OPTIONAL)
|
||||
ENDIF()
|
||||
--- a/cdk/cmake/libutils.cmake
|
||||
+++ b/cdk/cmake/libutils.cmake
|
||||
@@ -282,14 +282,7 @@ function(add_library_ex TARGET)
|
||||
endforeach()
|
||||
|
||||
if(libs)
|
||||
-
|
||||
- if(${type} STREQUAL "STATIC")
|
||||
- merge_static_libraries(${TARGET} ${libs})
|
||||
- add_dependencies(${TARGET} ${libs})
|
||||
- else()
|
||||
target_link_libraries(${TARGET} PRIVATE ${libs})
|
||||
- endif()
|
||||
-
|
||||
endif()
|
||||
|
||||
#
|
||||
--- a/cdk/cmake/protobuf.cmake
|
||||
+++ b/cdk/cmake/protobuf.cmake
|
||||
@@ -26,201 +26,8 @@
|
||||
# along with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
-#
|
||||
-# Usage:
|
||||
-#
|
||||
-# INCLUDE(protobuf)
|
||||
-# [USE_FULL_PROTOBUF()]
|
||||
-#
|
||||
-# MYSQLX_PROTOBUF_GENERATE_CPP(SRCS HDRS <protobuf definitions>)
|
||||
-# ADD_LIBRARY(target ... ${SRCS})
|
||||
-#
|
||||
-
|
||||
-if(DEFINED WITH_PROTOBUF)
|
||||
-
|
||||
- #
|
||||
- # If WITH_PROTOBUF is defined, it should point at external location where
|
||||
- # protobuf libraries were built using our CMakeLists.txt (so that
|
||||
- # exports.cmake was produced).
|
||||
- #
|
||||
-
|
||||
- if (NOT EXISTS "${WITH_PROTOBUF}/exports.cmake")
|
||||
- message(FATAL_ERROR
|
||||
- "Valid protobuf build not found at the given location"
|
||||
- " (could not find exports.cmake): ${WITH_PROTOBUF}"
|
||||
- )
|
||||
- endif()
|
||||
-
|
||||
- message("Using protobuf build at: ${WITH_PROTOBUF}")
|
||||
-
|
||||
-else(DEFINED WITH_PROTOBUF)
|
||||
-
|
||||
- #
|
||||
- # If external WITH_PROTOBUF location is not given, then we arrange for
|
||||
- # building of protbuf from bundled sources in ${PROJECT_BINARY_DIR}/protobuf.
|
||||
- #
|
||||
-
|
||||
- message("Configuring Protobuf build using cmake generator: ${CMAKE_GENERATOR}")
|
||||
- file(REMOVE "${PROJECT_BINARY_DIR}/protobuf/CMakeCache.txt")
|
||||
- file(MAKE_DIRECTORY "${PROJECT_BINARY_DIR}/protobuf")
|
||||
-
|
||||
- #
|
||||
- # Pick build configuration for the protobuf build. Normally we build using the
|
||||
- # same build configuration that is used for building CDK (Release/Debug/etc.).
|
||||
- # But we also support building CDK under non-standard build configuration
|
||||
- # named 'Static' (this is a dirty trick we use to simplify building our MSIs).
|
||||
- # Since protobuf does not know 'Static' build configuration, we build protobuf
|
||||
- # under 'Release' configuration in that case.
|
||||
- #
|
||||
- # We need to handle two cases. For some build systems, like Makefiles,
|
||||
- # the build configuration is specified at cmake time using CMAKE_BUILD_TYPE
|
||||
- # variable. In that case we also set it during protobuf build configuration.
|
||||
- # Another case is a multi-configuration build system like MSVC. In this case
|
||||
- # we use generator expression to pick correct configuration when the build
|
||||
- # command is invoked below.
|
||||
- #
|
||||
-
|
||||
- if(CMAKE_BUILD_TYPE)
|
||||
- if(CMAKE_BUILD_TYPE MATCHES "[Ss][Tt][Aa][Tt][Ii][Cc]")
|
||||
- set(set_build_type -DCMAKE_BUILD_TYPE=Release)
|
||||
- else()
|
||||
- set(set_build_type -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE})
|
||||
- endif()
|
||||
- endif()
|
||||
-
|
||||
- set(CONFIG_EXPR
|
||||
- $<$<CONFIG:Static>:Release>$<$<NOT:$<CONFIG:Static>>:$<CONFIG>>
|
||||
- )
|
||||
-
|
||||
- execute_process(
|
||||
- COMMAND ${CMAKE_COMMAND}
|
||||
- -G "${CMAKE_GENERATOR}"
|
||||
- ${set_build_type}
|
||||
- -DSTATIC_MSVCRT=${STATIC_MSVCRT}
|
||||
- -DCMAKE_POSITION_INDEPENDENT_CODE=${CMAKE_POSITION_INDEPENDENT_CODE}
|
||||
- -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
|
||||
- -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}
|
||||
- -DCMAKE_CXX_FLAGS_DEBUG=${CMAKE_CXX_FLAGS_DEBUG}
|
||||
- -DCMAKE_CXX_FLAGS_RELEASE=${CMAKE_CXX_FLAGS_RELEASE}
|
||||
- -DCMAKE_CXX_FLAGS_RELWITHDEBINFO=${CMAKE_CXX_FLAGS_RELWITHDEBINFO}
|
||||
- -DCMAKE_CXX_FLAGS_MINSIZEREL=${CMAKE_CXX_FLAGS_MINSIZEREL}
|
||||
- -DCMAKE_STATIC_LINKER_FLAGS=${CMAKE_STATIC_LINKER_FLAGS}
|
||||
- ${PROJECT_SOURCE_DIR}/protobuf
|
||||
- WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/protobuf
|
||||
- RESULT_VARIABLE protobuf_config
|
||||
- )
|
||||
-
|
||||
- if(protobuf_config)
|
||||
- message(FATAL_ERROR "Could not configure Protobuf build: ${protobuf_config}")
|
||||
- endif()
|
||||
-
|
||||
- set(WITH_PROTOBUF "${PROJECT_BINARY_DIR}/protobuf")
|
||||
-
|
||||
-endif(DEFINED WITH_PROTOBUF)
|
||||
-
|
||||
-# Import targets exported by protobuf
|
||||
-
|
||||
-include(${WITH_PROTOBUF}/exports.cmake)
|
||||
-
|
||||
-#
|
||||
-# Protobuf library targets imported above (pb_protobuf
|
||||
-# and pb_protobuf-lite) are local to the directory from which
|
||||
-# they were imported. This is not good if cdk is used as
|
||||
-# a sub-project of a parent project, because the parent project
|
||||
-# must have access to these targets.
|
||||
-#
|
||||
-# For that reason below we create global protobuf/protobuf-lite targets
|
||||
-# and copy their locations from the imported targets.
|
||||
-#
|
||||
-# Note: we can't use ALIAS library because it does not work with imported
|
||||
-# targets
|
||||
-#
|
||||
-
|
||||
-add_library(protobuf STATIC IMPORTED GLOBAL)
|
||||
-add_library(protobuf-lite STATIC IMPORTED GLOBAL)
|
||||
-
|
||||
-foreach(lib protobuf protobuf-lite)
|
||||
- #message("processing: ${lib}")
|
||||
-
|
||||
- foreach(CONF NOCONFIG DEBUG RELEASE MINSIZEREL RELWITHDEBINFO)
|
||||
- #message("- CONF: ${CONF}")
|
||||
-
|
||||
- get_target_property(LOC pb_${lib} IMPORTED_LOCATION_${CONF})
|
||||
- if(LOC)
|
||||
- #message("- setting imported location to: ${LOC}")
|
||||
- set_target_properties(${lib} PROPERTIES
|
||||
- IMPORTED_LOCATION_${CONF} "${LOC}"
|
||||
- )
|
||||
- set_property(TARGET ${lib} APPEND PROPERTY
|
||||
- IMPORTED_CONFIGURATIONS ${CONF}
|
||||
- )
|
||||
- endif()
|
||||
-
|
||||
- endforeach(CONF)
|
||||
-
|
||||
-endforeach(lib)
|
||||
-
|
||||
-#
|
||||
-# To support 'Static' build configuration the targets imported from the
|
||||
-# Protobuf project need to have IMPORTED_LOCATION_STATIC defined. We use
|
||||
-# 'Release' locations as Protobuf is built using 'Release' configuration in
|
||||
-# that case.
|
||||
-#
|
||||
-
|
||||
-foreach(tgt protobuf protobuf-lite pb_protoc)
|
||||
-
|
||||
- get_target_property(LOC ${tgt} IMPORTED_LOCATION_RELEASE)
|
||||
- set_property(TARGET ${tgt} PROPERTY IMPORTED_LOCATION_STATIC ${LOC})
|
||||
-
|
||||
-endforeach(tgt)
|
||||
-
|
||||
-
|
||||
-# protobuf depends on protobuf-lite
|
||||
-
|
||||
-set_target_properties(protobuf PROPERTIES
|
||||
- INTERFACE_LINK_LIBRARIES "protobuf-lite"
|
||||
-)
|
||||
-
|
||||
-
|
||||
-message("Protobuf include path: ${PROTOBUF_INCLUDE_DIR}")
|
||||
-
|
||||
-set(PROTOBUF_INCLUDE_DIRS ${PROTOBUF_INCLUDE_DIR}
|
||||
- CACHE INTERNAL "Protobuf include path" FORCE)
|
||||
-set(PROTOBUF_PROTOC_EXECUTABLE pb_protoc
|
||||
- CACHE INTERNAL "Protobuf compiler" FORCE)
|
||||
-
|
||||
-#
|
||||
-# Custom target build_protobuf ensures that Protobuf project is built.
|
||||
-#
|
||||
-# Note: this depends on Protobuf project generating the stamp file
|
||||
-#
|
||||
-
|
||||
-if(NOT DEFINED PROTOBUF_BUILD_STAMP)
|
||||
- message(FATAL_ERROR "Protobuf build stamp file not defined")
|
||||
-endif()
|
||||
-
|
||||
-
|
||||
-if(CMAKE_VERSION VERSION_LESS 3.0)
|
||||
- add_custom_command(OUTPUT ${PROTOBUF_BUILD_STAMP}
|
||||
- COMMAND ${CMAKE_COMMAND} --build . --config $<CONFIGURATION>
|
||||
- WORKING_DIRECTORY ${WITH_PROTOBUF}
|
||||
- COMMENT "Building protobuf using configuration: $(Configuration)"
|
||||
- )
|
||||
-else()
|
||||
- add_custom_command(OUTPUT ${PROTOBUF_BUILD_STAMP}
|
||||
- COMMAND ${CMAKE_COMMAND} --build . --config ${CONFIG_EXPR}
|
||||
- WORKING_DIRECTORY ${WITH_PROTOBUF}
|
||||
- COMMENT "Building protobuf using configuration: $(Configuration)"
|
||||
- )
|
||||
-endif()
|
||||
-
|
||||
-add_custom_target(build_protobuf
|
||||
- DEPENDS ${PROTOBUF_BUILD_STAMP}
|
||||
-)
|
||||
-
|
||||
-add_dependencies(protobuf build_protobuf)
|
||||
-add_dependencies(protobuf-lite build_protobuf)
|
||||
-add_dependencies(pb_protoc build_protobuf)
|
||||
+#SET(Protobuf_USE_STATIC_LIBS ON)
|
||||
+find_package(Protobuf REQUIRED)
|
||||
|
||||
#
|
||||
# Choice between full and lite version of the library.
|
||||
--- a/cdk/protocol/mysqlx/crud.cc
|
||||
+++ b/cdk/protocol/mysqlx/crud.cc
|
||||
@@ -295,7 +295,7 @@ public:
|
||||
class Placeholder_conv_imp
|
||||
: public Args_conv
|
||||
{
|
||||
- map<string, unsigned> m_map;
|
||||
+ std::map<string, unsigned> m_map;
|
||||
|
||||
public:
|
||||
|
||||
@@ -303,7 +303,7 @@ public:
|
||||
|
||||
unsigned conv_placeholder(const string &name)
|
||||
{
|
||||
- map<string, unsigned>::const_iterator it = m_map.find(name);
|
||||
+ std::map<string, unsigned>::const_iterator it = m_map.find(name);
|
||||
if (it == m_map.end())
|
||||
throw_error("Placeholder converter: Placeholder was not defined on args");
|
||||
//throw Generic_error((boost::format("Placeholder %s was not defined on args.")
|
||||
@@ -314,7 +314,7 @@ public:
|
||||
|
||||
void add_placeholder(const string &name)
|
||||
{
|
||||
- map<string, unsigned>::const_iterator it = m_map.find(name);
|
||||
+ std::map<string, unsigned>::const_iterator it = m_map.find(name);
|
||||
if (it != m_map.end())
|
||||
throw_error("Placeholder converter: Redefined placeholder");
|
||||
//throw Generic_error((boost::format("Redifined placeholder %s.")
|
||||
--- a/jdbc.cmake
|
||||
+++ b/jdbc.cmake
|
||||
@@ -66,7 +66,7 @@ if(MYSQL_CONFIG_EXECUTABLE)
|
||||
list(APPEND jdbc_cmake_opts -DMYSQL_CONFIG_EXECUTABLE=${MYSQL_CONFIG_EXECUTABLE})
|
||||
endif()
|
||||
|
||||
-list(APPEND jdbc_cmake_opts -DMYSQLCLIENT_STATIC_LINKING=ON)
|
||||
+list(APPEND jdbc_cmake_opts -DMYSQLCLIENT_STATIC_LINKING=OFF)
|
||||
|
||||
if(CMAKE_BUILD_TYPE)
|
||||
if(CMAKE_BUILD_TYPE MATCHES "[Ss][Tt][Aa][Tt][Ii][Cc]")
|
|
@ -1,6 +1,6 @@
|
|||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -463,7 +463,7 @@ set_target_properties(connector PROPERTIES
|
||||
@@ -475,7 +475,7 @@ set_target_properties(connector PROPERTIES
|
||||
|
||||
|
||||
install(TARGETS connector
|
||||
|
@ -11,7 +11,7 @@
|
|||
LIBRARY DESTINATION "${INSTALL_LIB_DIR}" COMPONENT XDevAPIDll
|
||||
--- a/cdk/cmake/DepFindProtobuf.cmake
|
||||
+++ b/cdk/cmake/DepFindProtobuf.cmake
|
||||
@@ -48,197 +48,7 @@ if(TARGET Protobuf::pb)
|
||||
@@ -48,229 +48,7 @@ if(TARGET Protobuf::pb)
|
||||
return()
|
||||
endif()
|
||||
|
||||
|
@ -52,10 +52,19 @@
|
|||
- $<$<CONFIG:Static>:Release>$<$<NOT:$<CONFIG:Static>>:$<CONFIG>>
|
||||
-)
|
||||
-
|
||||
-set(set_arch)
|
||||
-if(CMAKE_GENERATOR_PLATFORM)
|
||||
- set(set_arch -A ${CMAKE_GENERATOR_PLATFORM})
|
||||
-endif()
|
||||
-
|
||||
-set(set_toolset)
|
||||
-if(CMAKE_GENERATOR_TOOLSET)
|
||||
- set(set_toolset -T ${CMAKE_GENERATOR_TOOLSET})
|
||||
-endif()
|
||||
-
|
||||
-if(NOT EXISTS "${PB_BINARY_DIR}/exports.cmake")
|
||||
-
|
||||
- message("==== Configuring Protobuf build using cmake generator: ${CMAKE_GENERATOR}")
|
||||
- message("==== Configuring Protobuf build using cmake generator: ${CMAKE_GENERATOR} ${set_arch} ${set_toolset}")
|
||||
-
|
||||
- file(REMOVE "${PB_BINARY_DIR}/CMakeCache.txt")
|
||||
- file(MAKE_DIRECTORY "${PB_BINARY_DIR}")
|
||||
|
@ -69,6 +78,8 @@
|
|||
- execute_process(
|
||||
- COMMAND ${CMAKE_COMMAND}
|
||||
- -G "${CMAKE_GENERATOR}"
|
||||
- ${set_arch}
|
||||
- ${set_toolset}
|
||||
- ${set_build_type}
|
||||
- -DSTATIC_MSVCRT=${STATIC_MSVCRT}
|
||||
- -DCMAKE_POSITION_INDEPENDENT_CODE=${CMAKE_POSITION_INDEPENDENT_CODE}
|
||||
|
@ -188,9 +199,27 @@
|
|||
- )
|
||||
-endif()
|
||||
-
|
||||
-#
|
||||
-# Try using parallel builds for protobuf.
|
||||
-#
|
||||
-
|
||||
-include(ProcessorCount)
|
||||
-ProcessorCount(N)
|
||||
-
|
||||
-MESSAGE("Processor Count: ${N}")
|
||||
-
|
||||
-set(opt_build)
|
||||
-set(opt_tool)
|
||||
-if(NOT N EQUAL 0)
|
||||
- if(NOT CMAKE_VERSION VERSION_LESS 3.12)
|
||||
- set(opt_build --parallel ${N})
|
||||
- elseif(CMAKE_MAKE_PROGRAM MATCHES "make")
|
||||
- set(opt_tool -j${N})
|
||||
- endif()
|
||||
-endif()
|
||||
-
|
||||
-add_custom_command(OUTPUT "${build_stamp}"
|
||||
- COMMAND ${CMAKE_COMMAND} --build . --config ${CONFIG_EXPR}
|
||||
- COMMAND ${CMAKE_COMMAND} --build . ${opt_build} --config ${CONFIG_EXPR} -- ${opt_tool}
|
||||
- COMMAND ${CMAKE_COMMAND} -E touch "${build_stamp}"
|
||||
- WORKING_DIRECTORY "${PB_BINARY_DIR}"
|
||||
- COMMENT "Building protobuf"
|
||||
|
@ -200,17 +229,20 @@
|
|||
- SOURCES "${build_stamp}"
|
||||
-)
|
||||
-
|
||||
-set_target_properties(build_protobuf PROPERTIES FOLDER "Misc")
|
||||
-
|
||||
-add_dependencies(Protobuf::pb-full build_protobuf)
|
||||
-add_dependencies(Protobuf::pb-lite build_protobuf)
|
||||
-add_dependencies(Protobuf::protoc build_protobuf)
|
||||
-
|
||||
-# TODO: Handle lite/full version
|
||||
-
|
||||
-
|
||||
+find_package(Protobuf REQUIRED)
|
||||
|
||||
|
||||
# Standard PROTOBUF_GENERATE_CPP modified to our usage
|
||||
@@ -268,11 +78,11 @@ function(mysqlx_protobuf_generate_cpp SRCS HDRS)
|
||||
|
||||
@@ -299,11 +77,11 @@ function(mysqlx_protobuf_generate_cpp SRCS HDRS)
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/protobuf/${FIL_WE}.pb.h"
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-E make_directory "${CMAKE_CURRENT_BINARY_DIR}/protobuf"
|
||||
|
@ -238,7 +270,7 @@
|
|||
add_coverage(cdk)
|
||||
--- a/cdk/protocol/mysqlx/CMakeLists.txt
|
||||
+++ b/cdk/protocol/mysqlx/CMakeLists.txt
|
||||
@@ -125,11 +125,7 @@ target_include_directories(cdk_proto_mysqlx PRIVATE
|
||||
@@ -126,11 +126,7 @@ target_include_directories(cdk_proto_mysqlx PRIVATE
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
)
|
||||
|
|
@ -0,0 +1,89 @@
|
|||
--- a/cdk/cmake/DepFindSSL.cmake
|
||||
+++ b/cdk/cmake/DepFindSSL.cmake
|
||||
@@ -88,7 +88,7 @@ function(main)
|
||||
|
||||
set(OPENSSL_LIB_DIR "${OPENSSL_LIB_DIR}" CACHE INTERNAL "")
|
||||
|
||||
- if(NOT OPENSSL_VERSION_MAJOR EQUAL 1)
|
||||
+ if(NOT OPENSSL_VERSION_MAJOR VERSION_GREATER_EQUAL 1)
|
||||
message(SEND_ERROR "OpenSSL version 1.x is required but version ${OPENSSL_VERSION} was found")
|
||||
else()
|
||||
message(STATUS "Using OpenSSL version: ${OPENSSL_VERSION}")
|
||||
@@ -182,42 +182,33 @@ function(find_openssl)
|
||||
set(OPENSSL_INCLUDE_DIR "${OPENSSL_INCLUDE_DIR}" PARENT_SCOPE)
|
||||
message("-- found OpenSSL headers at: ${OPENSSL_INCLUDE_DIR}")
|
||||
|
||||
-
|
||||
# Verify version number. Version information looks like:
|
||||
- # #define OPENSSL_VERSION_TEXT "OpenSSL 1.1.1a 20 Nov 2018"
|
||||
-
|
||||
+ # #define OPENSSL_VERSION_NUMBER 0x1000103fL
|
||||
+ # Encoded as MNNFFPPS: major minor fix patch status
|
||||
FILE(STRINGS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h"
|
||||
OPENSSL_VERSION_NUMBER
|
||||
- REGEX "#[ ]*define[\t ]+OPENSSL_VERSION_TEXT"
|
||||
+ REGEX "^#[ ]*define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x[0-9].*"
|
||||
)
|
||||
-
|
||||
- #message("== OPENSSL_VERSION_NUMBER: ${OPENSSL_VERSION_NUMBER}")
|
||||
STRING(REGEX REPLACE
|
||||
- "^.*OPENSSL_VERSION_TEXT[\t ]+\"OpenSSL[\t ]([0-9]+)\\.([0-9]+)\\.([0-9]+)([a-z]*)[\t ].*$"
|
||||
- "\\1;\\2;\\3;\\4"
|
||||
- version_list "${OPENSSL_VERSION_NUMBER}"
|
||||
+ "^.*OPENSSL_VERSION_NUMBER[\t ]+0x([0-9]).*$" "\\1"
|
||||
+ OPENSSL_VERSION_MAJOR "${OPENSSL_VERSION_NUMBER}"
|
||||
+ )
|
||||
+ STRING(REGEX REPLACE
|
||||
+ "^.*OPENSSL_VERSION_NUMBER[\t ]+0x[0-9]([0-9][0-9]).*$" "\\1"
|
||||
+ OPENSSL_VERSION_MINOR "${OPENSSL_VERSION_NUMBER}"
|
||||
+ )
|
||||
+ STRING(REGEX REPLACE
|
||||
+ "^.*OPENSSL_VERSION_NUMBER[\t ]+0x[0-9][0-9][0-9]([0-9][0-9]).*$" "\\1"
|
||||
+ OPENSSL_VERSION_FIX "${OPENSSL_VERSION_NUMBER}"
|
||||
)
|
||||
- #message("-- OPENSSL_VERSION: ${version_list}")
|
||||
-
|
||||
- list(GET version_list 0 OPENSSL_VERSION_MAJOR)
|
||||
- math(EXPR OPENSSL_VERSION_MAJOR ${OPENSSL_VERSION_MAJOR})
|
||||
-
|
||||
- list(GET version_list 1 OPENSSL_VERSION_MINOR)
|
||||
- math(EXPR OPENSSL_VERSION_MINOR ${OPENSSL_VERSION_MINOR})
|
||||
-
|
||||
- list(GET version_list 2 OPENSSL_VERSION_FIX)
|
||||
- math(EXPR OPENSSL_VERSION_FIX ${OPENSSL_VERSION_FIX})
|
||||
-
|
||||
- list(GET version_list 3 OPENSSL_VERSION_PATCH)
|
||||
-
|
||||
-
|
||||
|
||||
set(OPENSSL_VERSION
|
||||
- "${OPENSSL_VERSION_MAJOR}.${OPENSSL_VERSION_MINOR}.${OPENSSL_VERSION_FIX}${OPENSSL_VERSION_PATCH}"
|
||||
+ "${OPENSSL_VERSION_MAJOR}.${OPENSSL_VERSION_MINOR}.${OPENSSL_VERSION_FIX}"
|
||||
PARENT_SCOPE
|
||||
)
|
||||
set(OPENSSL_VERSION_MAJOR ${OPENSSL_VERSION_MAJOR} PARENT_SCOPE)
|
||||
|
||||
+ CHECK_SYMBOL_EXISTS(TLS1_3_VERSION "openssl/tls1.h" HAVE_TLS1_3_VERSION)
|
||||
|
||||
find_library(OPENSSL_LIBRARY
|
||||
NAMES ssl ssleay32 ssleay32MD libssl
|
||||
--- a/cdk/foundation/connection_openssl.cc
|
||||
+++ b/cdk/foundation/connection_openssl.cc
|
||||
@@ -211,7 +211,7 @@ static void throw_ssl_error(SSL* tls, int err)
|
||||
case SSL_ERROR_WANT_CONNECT:
|
||||
case SSL_ERROR_WANT_ACCEPT:
|
||||
case SSL_ERROR_WANT_X509_LOOKUP:
|
||||
-# if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
||||
+# if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
case SSL_ERROR_WANT_ASYNC:
|
||||
case SSL_ERROR_WANT_ASYNC_JOB:
|
||||
# endif
|
||||
@@ -387,7 +387,7 @@ void TLS_helper::setup(SSL_CTX *ctx)
|
||||
|
||||
SSL_CTX_set_cipher_list(ctx, m_cipher_list.c_str());
|
||||
|
||||
-#if OPENSSL_VERSION_NUMBER>=0x1010100fL
|
||||
+#if HAVE_TLS1_3_VERSION
|
||||
|
||||
/*
|
||||
Note: If TLSv1.3 is not enabled, there is no need to restrict
|
|
@ -1,63 +0,0 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
inherit cmake-utils flag-o-matic
|
||||
|
||||
DESCRIPTION="MySQL database connector for C++ (mimics JDBC 4.0 API)"
|
||||
HOMEPAGE="https://dev.mysql.com/downloads/connector/cpp/"
|
||||
URI_DIR="Connector-C++"
|
||||
SRC_URI="https://dev.mysql.com/get/Downloads/${URI_DIR}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm ~arm64 ppc ppc64 sparc x86"
|
||||
IUSE="debug examples gcov static-libs"
|
||||
|
||||
DEPEND="dev-db/mysql-connector-c:=
|
||||
dev-libs/boost:=
|
||||
dev-libs/openssl:0=
|
||||
!<dev-db/mysql-connector-c-6.1.8"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.1.6-fix-cmake.patch"
|
||||
"${FILESDIR}/${PN}-1.1.11-fix-mariadb.patch"
|
||||
"${FILESDIR}/${PN}-1.1.11-fix-cpp-linking.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
# native lib/wrapper needs this!
|
||||
append-flags "-fno-strict-aliasing"
|
||||
|
||||
local mycmakeargs=(
|
||||
-DMYSQLCPPCONN_BUILD_EXAMPLES=OFF
|
||||
-DMYSQLCPPCONN_ICU_ENABLE=OFF
|
||||
-DMYSQLCPPCONN_TRACE_ENABLE=$(usex debug ON OFF)
|
||||
-DMYSQLCPPCONN_GCOV_ENABLE=$(usex gcov ON OFF)
|
||||
-DINSTALL_DOCS="/usr/share/doc/${PF}"
|
||||
-DMYSQL_CXX_LINKAGE=0
|
||||
-DMYSQL_INCLUDE_DIR=$(mysql_config --variable=pkgincludedir)
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
# static lib has wrong name so we need to rename it
|
||||
if use static-libs; then
|
||||
mv "${ED%/}"/usr/$(get_libdir)/libmysqlcppconn-static.a \
|
||||
"${ED%/}"/usr/$(get_libdir)/libmysqlcppconn.a || die
|
||||
else
|
||||
rm -f "${ED%/}"/usr/$(get_libdir)/libmysqlcppconn-static.a
|
||||
fi
|
||||
|
||||
# examples
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins "${S}"/examples/*
|
||||
fi
|
||||
}
|
|
@ -1,62 +0,0 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils flag-o-matic
|
||||
|
||||
DESCRIPTION="MySQL database connector for C++ (mimics JDBC 4.0 API)"
|
||||
HOMEPAGE="https://dev.mysql.com/downloads/connector/cpp/"
|
||||
URI_DIR="Connector-C++"
|
||||
SRC_URI="https://dev.mysql.com/get/Downloads/${URI_DIR}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm ~arm64 ppc ppc64 sparc x86"
|
||||
IUSE="debug examples gcov static-libs"
|
||||
|
||||
DEPEND="dev-db/mysql-connector-c:=
|
||||
dev-libs/boost:=
|
||||
dev-libs/openssl:0=
|
||||
!<dev-db/mysql-connector-c-6.1.8"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.1.6-fix-cmake.patch"
|
||||
"${FILESDIR}/${PN}-1.1.8-fix-mariadb.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
# native lib/wrapper needs this!
|
||||
append-flags "-fno-strict-aliasing"
|
||||
|
||||
local mycmakeargs=(
|
||||
-DMYSQLCPPCONN_BUILD_EXAMPLES=OFF
|
||||
-DMYSQLCPPCONN_ICU_ENABLE=OFF
|
||||
-DUSE_MYSQLCPPCONN_TRACE_ENABLE=$(usex debug ON OFF)
|
||||
-DUSE_MYSQLCPPCONN_GCOV_ENABLE=$(usex gcov ON OFF)
|
||||
-DINSTALL_DOCS="/usr/share/doc/${PF}"
|
||||
-DMYSQL_CXX_LINKAGE=0
|
||||
-DMYSQL_INCLUDE_DIR=$(mysql_config --variable=pkgincludedir)
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
# static lib has wrong name so we need to rename it
|
||||
if use static-libs; then
|
||||
mv "${ED}"/usr/$(get_libdir)/libmysqlcppconn-static.a \
|
||||
"${ED}"/usr/$(get_libdir)/libmysqlcppconn.a || die
|
||||
else
|
||||
rm -f "${ED}"/usr/$(get_libdir)/libmysqlcppconn-static.a
|
||||
fi
|
||||
|
||||
# examples
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins "${S}"/examples/*
|
||||
fi
|
||||
}
|
|
@ -1,41 +0,0 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
CMAKE_MAKEFILE_GENERATOR=emake
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="MySQL database connector for C++ (mimics JDBC 4.0 API)"
|
||||
HOMEPAGE="https://dev.mysql.com/downloads/connector/cpp/"
|
||||
URI_DIR="Connector-C++"
|
||||
SRC_URI="https://dev.mysql.com/get/Downloads/${URI_DIR}/${P}-src.tar.gz"
|
||||
|
||||
LICENSE="Artistic GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="+legacy libressl"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/protobuf:=
|
||||
legacy? (
|
||||
dev-libs/boost:=
|
||||
>=dev-db/mysql-connector-c-6.1.8:=
|
||||
)
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )"
|
||||
DEPEND="${RDEPEND}"
|
||||
S="${WORKDIR}/${P}-src"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-8.0.15-fix-build.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DWITH_SSL=system
|
||||
-DWITH_JDBC=$(usex legacy ON OFF)
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
@ -28,7 +28,8 @@ DEPEND="${RDEPEND}"
|
|||
S="${WORKDIR}/${P}-src"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-8.0.18-fix-build.patch"
|
||||
"${FILESDIR}"/${PN}-8.0.19-fix-build.patch
|
||||
"${FILESDIR}"/${PN}-8.0.19-fix-libressl-support.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
|
@ -1,3 +1,2 @@
|
|||
DIST mysql-boost-8.0.17.tar.gz 189322239 BLAKE2B f9f46e5fdc3e9869b203626bc09edfbcdbabcd68eba43f9c6a33b9a52cffb3a32f39704c6d22a66899aac16fa2efb271c5dc7af7522768b45542ac8dc615cd8a SHA512 a278ee263670cb1f79d67c4b87c4b88632569c3b20a4297a6e77d550155db20902f22992ea851cf59ea523bb97d5e08707e3457f71a678e9f1ac2fa4ca5b7a2d
|
||||
DIST mysql-boost-8.0.18.tar.gz 194953221 BLAKE2B e3622cccd8f60487a5e643e522e9cdc763d63ad2a5eda86a7a7db37f48a4e1288fea88ef7097c6c4b51bd5e8fd8ba26a5b8aea3501ae847180066e2d0aa2b5dc SHA512 180091ad3e74e2afa28ecb914850e6b4e8c92b8981f32b161f53381b92120d87dbd2c2fc073feb2543bb71702bac7368e9fb992821cfd3e3ca888019423b89f5
|
||||
DIST mysql-boost-8.0.19.tar.gz 264147972 BLAKE2B 61a5ccbef1a7a675c85e4e6bda8e5285bdb931e6ee14d4710bf13dfd9157d1095200db2886dc93ea7251d3d59245f35c0bef5ba88ba6aac209b1e080f3b07dc4 SHA512 5ffc03f005ab2585694902e926b6cb2b10059b2b030549eccd3949f9c3b2f02626d02529f940dec003f2d69683856fd1c720ff12f89dfbdc48befaf24a9c4d01
|
||||
DIST mysql-connector-c-6.1.11-src.tar.gz 3489345 BLAKE2B 813512520ef660521221565a4466e81d902629d0ee731f746b68eed2b9129ea8361fcabe184537ec8ba91aed5a4b02dfb3450b36524c2e98f81fba148eee0cf1 SHA512 271395c888a93b833e0bbe1840b9987ecdb37d0f1cf89904207cc9aa99ed32e538aee8c9529ff39b6533947159776a8f5aa079da86ed51b1d26b086f4ffdd7c6
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
--- a/utilities/CMakeLists.txt
|
||||
+++ b/utilities/CMakeLists.txt
|
||||
@@ -101,15 +101,11 @@ MYSQL_ADD_EXECUTABLE(perror perror.cc)
|
||||
ADD_DEPENDENCIES(perror GenError)
|
||||
TARGET_LINK_LIBRARIES(perror mysys)
|
||||
|
||||
-IF (BUILD_BUNDLED_LZ4)
|
||||
- MYSQL_ADD_EXECUTABLE(lz4_decompress lz4_decompress.cc)
|
||||
- TARGET_LINK_LIBRARIES(lz4_decompress ${LZ4_LIBRARY} mysys)
|
||||
-ENDIF()
|
||||
+MYSQL_ADD_EXECUTABLE(lz4_decompress lz4_decompress.cc)
|
||||
+TARGET_LINK_LIBRARIES(lz4_decompress ${LZ4_LIBRARY} mysys)
|
||||
|
||||
-IF (BUILD_BUNDLED_ZLIB OR NOT OPENSSL_EXECUTABLE_HAS_ZLIB)
|
||||
- MYSQL_ADD_EXECUTABLE(zlib_decompress zlib_decompress.cc)
|
||||
- TARGET_LINK_LIBRARIES(zlib_decompress ${ZLIB_LIBRARY} mysys)
|
||||
-ENDIF()
|
||||
+MYSQL_ADD_EXECUTABLE(zlib_decompress zlib_decompress.cc)
|
||||
+TARGET_LINK_LIBRARIES(zlib_decompress ${ZLIB_LIBRARY} mysys)
|
||||
|
||||
IF(WITH_INNOBASE_STORAGE_ENGINE)
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
diff --git a/utilities/CMakeLists.txt b/utilities/CMakeLists.txt
|
||||
index c855f8ab..0ebef451 100644
|
||||
--- a/utilities/CMakeLists.txt
|
||||
+++ b/utilities/CMakeLists.txt
|
||||
@@ -27,6 +27,7 @@ IF(NOT CMAKE_CROSSCOMPILING)
|
||||
comp_err.cc
|
||||
COMPONENT Server
|
||||
LINK_LIBRARIES mysys
|
||||
+ SKIP_INSTALL
|
||||
)
|
||||
ENDIF()
|
||||
|
|
@ -1,17 +1,6 @@
|
|||
From: Stefan Strogin <steils@gentoo.org>
|
||||
Date: Sat, 8 Jun 2019 15:52:26 +0300
|
||||
Subject: [PATCH] Fix build with LibreSSL
|
||||
|
||||
- Fix version checks as OPENSSL_VERSION_NUMBER in OpenSSL is always
|
||||
0x20000000L.
|
||||
- FIPS support is removed from LibreSSL, do not use it.
|
||||
- Check for TLS1_3_VERSION define, not OpenSSL/LibreSSL version.
|
||||
Theoretically even OpenSSL >=1.1.1 can be built with TLS 1.3 disabled.
|
||||
|
||||
|
||||
--- a/cmake/ssl.cmake
|
||||
+++ b/cmake/ssl.cmake
|
||||
@@ -304,13 +304,14 @@ MACRO (MYSQL_CHECK_SSL)
|
||||
@@ -229,13 +229,14 @@ MACRO (MYSQL_CHECK_SSL)
|
||||
OPENSSL_FIX_VERSION "${OPENSSL_VERSION_NUMBER}"
|
||||
)
|
||||
ENDIF()
|
||||
|
@ -28,76 +17,91 @@ Subject: [PATCH] Fix build with LibreSSL
|
|||
)
|
||||
SET(OPENSSL_FOUND TRUE)
|
||||
FIND_PROGRAM(OPENSSL_EXECUTABLE openssl
|
||||
--- a/extra/libevent/openssl-compat.h
|
||||
+++ b/extra/libevent/openssl-compat.h
|
||||
@@ -24,7 +24,6 @@ static inline BIO_METHOD *BIO_meth_new(int type, const char *name)
|
||||
#define BIO_set_init(b, val) (b)->init = (val)
|
||||
#define BIO_set_data(b, val) (b)->ptr = (val)
|
||||
#define BIO_set_shutdown(b, val) (b)->shutdown = (val)
|
||||
-#define BIO_get_init(b) (b)->init
|
||||
#define BIO_get_data(b) (b)->ptr
|
||||
#define BIO_get_shutdown(b) (b)->shutdown
|
||||
|
||||
@@ -32,4 +31,8 @@ static inline BIO_METHOD *BIO_meth_new(int type, const char *name)
|
||||
|
||||
#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */
|
||||
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||||
+#define BIO_get_init(b) (b)->init
|
||||
+#endif
|
||||
+
|
||||
#endif /* OPENSSL_COMPAT_H */
|
||||
--- a/mysys/my_md5.cc
|
||||
+++ b/mysys/my_md5.cc
|
||||
@@ -56,7 +56,7 @@ static void my_md5_hash(unsigned char *digest, unsigned const char *buf,
|
||||
@@ -56,7 +56,9 @@ static void my_md5_hash(unsigned char *digest, unsigned const char *buf,
|
||||
int compute_md5_hash(char *digest, const char *buf, int len) {
|
||||
int retval = 0;
|
||||
int fips_mode = 0;
|
||||
-#if !defined(HAVE_WOLFSSL)
|
||||
+#if !defined(HAVE_WOLFSSL) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
+#ifndef LIBRESSL_VERSION_NUMBER
|
||||
fips_mode = FIPS_mode();
|
||||
#endif /* HAVE_WOLFSSL */
|
||||
+#endif
|
||||
/* If fips mode is ON/STRICT restricted method calls will result into abort,
|
||||
* skipping call. */
|
||||
if (fips_mode == 0) {
|
||||
--- a/plugin/group_replication/libmysqlgcs/src/bindings/xcom/xcom/xcom_ssl_transport.c
|
||||
+++ b/plugin/group_replication/libmysqlgcs/src/bindings/xcom/xcom/xcom_ssl_transport.c
|
||||
@@ -297,7 +297,7 @@ error:
|
||||
@@ -329,6 +329,7 @@ error:
|
||||
return 1;
|
||||
}
|
||||
|
||||
-#ifndef HAVE_WOLFSSL
|
||||
+#if !defined(HAVE_WOLFSSL) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
+#ifndef LIBRESSL_VERSION_NUMBER
|
||||
#define OPENSSL_ERROR_LENGTH 512
|
||||
static int configure_ssl_fips_mode(const uint fips_mode) {
|
||||
int rc = -1;
|
||||
@@ -521,7 +521,7 @@ int xcom_init_ssl(const char *server_key_file, const char *server_cert_file,
|
||||
@@ -352,6 +353,7 @@ static int configure_ssl_fips_mode(const uint fips_mode) {
|
||||
EXIT:
|
||||
return rc;
|
||||
}
|
||||
+#endif
|
||||
|
||||
static int configure_ssl_ca(SSL_CTX *ssl_ctx, const char *ca_file,
|
||||
const char *ca_path) {
|
||||
@@ -555,10 +557,12 @@ int xcom_init_ssl(const char *server_key_file, const char *server_cert_file,
|
||||
int verify_server = SSL_VERIFY_NONE;
|
||||
int verify_client = SSL_VERIFY_NONE;
|
||||
|
||||
-#ifndef HAVE_WOLFSSL
|
||||
+#if !defined(HAVE_WOLFSSL) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
+#ifndef LIBRESSL_VERSION_NUMBER
|
||||
if (configure_ssl_fips_mode(ssl_fips_mode) != 1) {
|
||||
G_ERROR("Error setting the ssl fips mode");
|
||||
goto error;
|
||||
}
|
||||
+#endif
|
||||
|
||||
SSL_library_init();
|
||||
SSL_load_error_strings();
|
||||
@@ -622,7 +626,7 @@ error:
|
||||
void xcom_cleanup_ssl() {
|
||||
if (!xcom_use_ssl()) return;
|
||||
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||||
ERR_remove_thread_state(0);
|
||||
#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */
|
||||
}
|
||||
--- a/plugin/x/client/xconnection_impl.cc
|
||||
+++ b/plugin/x/client/xconnection_impl.cc
|
||||
@@ -523,7 +523,7 @@ XError Connection_impl::get_ssl_error(const int error_id) {
|
||||
@@ -520,6 +520,7 @@ XError Connection_impl::get_ssl_error(const int error_id) {
|
||||
return XError(CR_SSL_CONNECTION_ERROR, buffer);
|
||||
}
|
||||
|
||||
-#ifndef HAVE_WOLFSSL
|
||||
+#if !defined(HAVE_WOLFSSL) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
+#ifndef LIBRESSL_VERSION_NUMBER
|
||||
/**
|
||||
Set fips mode in openssl library,
|
||||
When we set fips mode ON/STRICT, it will perform following operations:
|
||||
@@ -573,7 +573,7 @@ XError Connection_impl::activate_tls() {
|
||||
if (!m_context->m_ssl_config.is_configured())
|
||||
return XError{CR_SSL_CONNECTION_ERROR, ER_TEXT_TLS_NOT_CONFIGURATED};
|
||||
@@ -559,6 +560,7 @@ int set_fips_mode(const uint32_t fips_mode,
|
||||
EXIT:
|
||||
return rc;
|
||||
}
|
||||
+#endif
|
||||
|
||||
-#ifndef HAVE_WOLFSSL
|
||||
+#if !defined(HAVE_WOLFSSL) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
XError Connection_impl::activate_tls() {
|
||||
if (nullptr == m_vio) return get_socket_error(SOCKET_ECONNRESET);
|
||||
@@ -569,12 +571,14 @@ XError Connection_impl::activate_tls() {
|
||||
if (!m_context->m_ssl_config.is_configured())
|
||||
return XError{CR_SSL_CONNECTION_ERROR, ER_TEXT_TLS_NOT_CONFIGURATED, true};
|
||||
|
||||
+#ifndef LIBRESSL_VERSION_NUMBER
|
||||
char err_string[OPENSSL_ERROR_LENGTH] = {'\0'};
|
||||
if (set_fips_mode((int)m_context->m_ssl_config.m_ssl_fips_mode, err_string) !=
|
||||
1) {
|
||||
if (set_fips_mode(
|
||||
static_cast<uint32_t>(m_context->m_ssl_config.m_ssl_fips_mode),
|
||||
err_string) != 1) {
|
||||
return XError{CR_SSL_CONNECTION_ERROR, err_string, true};
|
||||
}
|
||||
+#endif
|
||||
auto ssl_ctx_flags = process_tls_version(
|
||||
details::null_when_empty(m_context->m_ssl_config.m_tls_version));
|
||||
|
||||
--- a/router/src/http/src/tls_client_context.cc
|
||||
+++ b/router/src/http/src/tls_client_context.cc
|
||||
@@ -54,7 +54,7 @@ void TlsClientContext::verify(TlsVerify verify) {
|
||||
|
@ -111,7 +115,7 @@ Subject: [PATCH] Fix build with LibreSSL
|
|||
}
|
||||
--- a/router/src/http/src/tls_context.cc
|
||||
+++ b/router/src/http/src/tls_context.cc
|
||||
@@ -93,7 +93,7 @@ static constexpr int o11x_version(TlsVersion version) {
|
||||
@@ -91,7 +91,7 @@ static int o11x_version(TlsVersion version) {
|
||||
return TLS1_1_VERSION;
|
||||
case TlsVersion::TLS_1_2:
|
||||
return TLS1_2_VERSION;
|
||||
|
@ -120,19 +124,19 @@ Subject: [PATCH] Fix build with LibreSSL
|
|||
case TlsVersion::TLS_1_3:
|
||||
return TLS1_3_VERSION;
|
||||
#endif
|
||||
@@ -123,9 +123,11 @@ void TlsContext::version_range(TlsVersion min_version, TlsVersion max_version) {
|
||||
@@ -120,9 +120,11 @@ void TlsContext::version_range(TlsVersion min_version, TlsVersion max_version) {
|
||||
switch (min_version) {
|
||||
default:
|
||||
// unknown, leave all disabled
|
||||
// fallthrough
|
||||
+#ifdef TLS1_3_VERSION
|
||||
// fallthrough
|
||||
case TlsVersion::TLS_1_3:
|
||||
opts |= SSL_OP_NO_TLSv1_2;
|
||||
// fallthrough
|
||||
+#endif
|
||||
// fallthrough
|
||||
case TlsVersion::TLS_1_2:
|
||||
opts |= SSL_OP_NO_TLSv1_1;
|
||||
// fallthrough
|
||||
@@ -172,8 +174,10 @@ TlsVersion TlsContext::min_version() const {
|
||||
@@ -170,8 +172,10 @@ TlsVersion TlsContext::min_version() const {
|
||||
return TlsVersion::TLS_1_1;
|
||||
case TLS1_2_VERSION:
|
||||
return TlsVersion::TLS_1_2;
|
||||
|
@ -143,9 +147,19 @@ Subject: [PATCH] Fix build with LibreSSL
|
|||
case 0:
|
||||
return TlsVersion::AUTO;
|
||||
default:
|
||||
@@ -230,7 +234,8 @@ TlsContext::InfoCallback TlsContext::info_callback() const {
|
||||
}
|
||||
|
||||
int TlsContext::security_level() const {
|
||||
-#if OPENSSL_VERSION_NUMBER >= ROUTER_OPENSSL_VERSION(1, 1, 0)
|
||||
+#if OPENSSL_VERSION_NUMBER >= ROUTER_OPENSSL_VERSION(1, 1, 0) && \
|
||||
+ !defined(LIBRESSL_VERSION_NUMBER)
|
||||
return SSL_CTX_get_security_level(ssl_ctx_.get());
|
||||
#else
|
||||
return 0;
|
||||
--- a/router/src/http/src/tls_server_context.cc
|
||||
+++ b/router/src/http/src/tls_server_context.cc
|
||||
@@ -170,7 +170,8 @@ void TlsServerContext::init_tmp_dh(const std::string &dh_params) {
|
||||
@@ -166,7 +166,8 @@ void TlsServerContext::init_tmp_dh(const std::string &dh_params) {
|
||||
}
|
||||
|
||||
} else {
|
||||
|
@ -157,19 +171,18 @@ Subject: [PATCH] Fix build with LibreSSL
|
|||
/*
|
||||
--- a/sql-common/client.cc
|
||||
+++ b/sql-common/client.cc
|
||||
@@ -7602,7 +7602,8 @@ int STDCALL mysql_options(MYSQL *mysql, enum mysql_option option,
|
||||
@@ -7730,7 +7730,7 @@ int STDCALL mysql_options(MYSQL *mysql, enum mysql_option option,
|
||||
#endif
|
||||
break;
|
||||
case MYSQL_OPT_SSL_FIPS_MODE: {
|
||||
-#if defined(HAVE_OPENSSL) && !defined(HAVE_WOLFSSL)
|
||||
+#if defined(HAVE_OPENSSL) && \
|
||||
+ !defined(HAVE_WOLFSSL) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
-#if defined(HAVE_OPENSSL)
|
||||
+#if defined(HAVE_OPENSSL) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
char ssl_err_string[OPENSSL_ERROR_LENGTH] = {'\0'};
|
||||
ENSURE_EXTENSIONS_PRESENT(&mysql->options);
|
||||
mysql->options.extension->ssl_fips_mode = *static_cast<const uint *>(arg);
|
||||
--- a/sql/mysqld.cc
|
||||
+++ b/sql/mysqld.cc
|
||||
@@ -4795,7 +4795,7 @@ static int init_thread_environment() {
|
||||
@@ -4818,7 +4818,7 @@ static int init_thread_environment() {
|
||||
|
||||
static PSI_memory_key key_memory_openssl = PSI_NOT_INSTRUMENTED;
|
||||
|
||||
|
@ -178,57 +191,76 @@ Subject: [PATCH] Fix build with LibreSSL
|
|||
#define FILE_LINE_ARGS
|
||||
#else
|
||||
#define FILE_LINE_ARGS , const char *, int
|
||||
@@ -4831,7 +4831,7 @@ static void init_ssl() {
|
||||
@@ -4854,12 +4854,14 @@ static void init_ssl() {
|
||||
}
|
||||
|
||||
static int init_ssl_communication() {
|
||||
-#ifndef HAVE_WOLFSSL
|
||||
+#if !defined(HAVE_WOLFSSL) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
+#ifndef LIBRESSL_VERSION_NUMBER
|
||||
char ssl_err_string[OPENSSL_ERROR_LENGTH] = {'\0'};
|
||||
int ret_fips_mode = set_fips_mode(opt_ssl_fips_mode, ssl_err_string);
|
||||
if (ret_fips_mode != 1) {
|
||||
LogErr(ERROR_LEVEL, ER_SSL_FIPS_MODE_ERROR, ssl_err_string);
|
||||
return 1;
|
||||
}
|
||||
+#endif
|
||||
if (SslAcceptorContext::singleton_init(opt_use_ssl)) return 1;
|
||||
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
--- a/sql/sys_vars.cc
|
||||
+++ b/sql/sys_vars.cc
|
||||
@@ -4377,7 +4377,7 @@ static Sys_var_ulong Sys_max_execution_time(
|
||||
@@ -4417,6 +4417,7 @@ static Sys_var_ulong Sys_max_execution_time(
|
||||
HINT_UPDATEABLE SESSION_VAR(max_execution_time), CMD_LINE(REQUIRED_ARG),
|
||||
VALID_RANGE(0, ULONG_MAX), DEFAULT(0), BLOCK_SIZE(1));
|
||||
|
||||
-#ifndef HAVE_WOLFSSL
|
||||
+#if !defined(HAVE_WOLFSSL) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
+#ifndef LIBRESSL_VERSION_NUMBER
|
||||
static bool update_fips_mode(sys_var *, THD *, enum_var_type) {
|
||||
char ssl_err_string[OPENSSL_ERROR_LENGTH] = {'\0'};
|
||||
if (set_fips_mode(opt_ssl_fips_mode, ssl_err_string) != 1) {
|
||||
@@ -4390,7 +4390,7 @@ static bool update_fips_mode(sys_var *, THD *, enum_var_type) {
|
||||
@@ -4427,15 +4428,30 @@ static bool update_fips_mode(sys_var *, THD *, enum_var_type) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
-#ifdef HAVE_WOLFSSL
|
||||
+#if defined(HAVE_WOLFSSL) || defined(LIBRESSL_VERSION_NUMBER)
|
||||
static const char *ssl_fips_mode_names[] = {"OFF", 0};
|
||||
#else
|
||||
+#if defined(LIBRESSL_VERSION_NUMBER)
|
||||
+static const char *ssl_fips_mode_names[] = {"OFF", 0};
|
||||
+#else
|
||||
static const char *ssl_fips_mode_names[] = {"OFF", "ON", "STRICT", 0};
|
||||
@@ -4398,7 +4398,7 @@ static const char *ssl_fips_mode_names[] = {"OFF", "ON", "STRICT", 0};
|
||||
+#endif
|
||||
static Sys_var_enum Sys_ssl_fips_mode(
|
||||
"ssl_fips_mode",
|
||||
"SSL FIPS mode (applies only for OpenSSL); "
|
||||
-#ifndef HAVE_WOLFSSL
|
||||
+#if !defined(HAVE_WOLFSSL) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
+#ifndef LIBRESSL_VERSION_NUMBER
|
||||
"permitted values are: OFF, ON, STRICT",
|
||||
#else
|
||||
"permitted values are: OFF",
|
||||
@@ -4406,7 +4406,7 @@ static Sys_var_enum Sys_ssl_fips_mode(
|
||||
+#else
|
||||
+ "permitted values are: OFF",
|
||||
+#endif
|
||||
GLOBAL_VAR(opt_ssl_fips_mode), CMD_LINE(REQUIRED_ARG, OPT_SSL_FIPS_MODE),
|
||||
ssl_fips_mode_names, DEFAULT(0), NO_MUTEX_GUARD, NOT_IN_BINLOG,
|
||||
ON_CHECK(NULL),
|
||||
-#ifndef HAVE_WOLFSSL
|
||||
+#if !defined(HAVE_WOLFSSL) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
ON_UPDATE(update_fips_mode),
|
||||
#else
|
||||
ON_UPDATE(NULL),
|
||||
- ON_CHECK(NULL), ON_UPDATE(update_fips_mode), NULL);
|
||||
+ ON_CHECK(NULL),
|
||||
+#ifndef LIBRESSL_VERSION_NUMBER
|
||||
+ ON_UPDATE(update_fips_mode),
|
||||
+#else
|
||||
+ ON_UPDATE(NULL),
|
||||
+#endif
|
||||
+ NULL);
|
||||
|
||||
#if defined(HAVE_OPENSSL)
|
||||
static Sys_var_bool Sys_auto_generate_certs(
|
||||
--- a/vio/viossl.cc
|
||||
+++ b/vio/viossl.cc
|
||||
@@ -507,7 +507,7 @@ static int ssl_do(struct st_VioSSLFd *ptr, Vio *vio, long timeout,
|
||||
#if !defined(HAVE_WOLFSSL) && !defined(DBUG_OFF)
|
||||
@@ -45,7 +45,7 @@
|
||||
BIO_set_callback_ex was added in openSSL 1.1.1
|
||||
For older openSSL, use the deprecated BIO_set_callback.
|
||||
*/
|
||||
-#if OPENSSL_VERSION_NUMBER >= 0x10101000L
|
||||
+#if OPENSSL_VERSION_NUMBER >= 0x10101000L && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
#define HAVE_BIO_SET_CALLBACK_EX
|
||||
#endif
|
||||
|
||||
@@ -637,7 +637,7 @@ static int ssl_do(struct st_VioSSLFd *ptr, Vio *vio, long timeout,
|
||||
#if !defined(DBUG_OFF)
|
||||
{
|
||||
STACK_OF(SSL_COMP) *ssl_comp_methods = NULL;
|
||||
- ssl_comp_methods = SSL_COMP_get_compression_methods();
|
||||
|
@ -236,7 +268,7 @@ Subject: [PATCH] Fix build with LibreSSL
|
|||
n = sk_SSL_COMP_num(ssl_comp_methods);
|
||||
DBUG_PRINT("info", ("Available compression methods:\n"));
|
||||
if (n == 0)
|
||||
@@ -515,7 +515,7 @@ static int ssl_do(struct st_VioSSLFd *ptr, Vio *vio, long timeout,
|
||||
@@ -645,7 +645,7 @@ static int ssl_do(struct st_VioSSLFd *ptr, Vio *vio, long timeout,
|
||||
else
|
||||
for (j = 0; j < n; j++) {
|
||||
SSL_COMP *c = sk_SSL_COMP_value(ssl_comp_methods, j);
|
||||
|
@ -247,12 +279,19 @@ Subject: [PATCH] Fix build with LibreSSL
|
|||
DBUG_PRINT("info",
|
||||
--- a/vio/viosslfactories.cc
|
||||
+++ b/vio/viosslfactories.cc
|
||||
@@ -429,7 +429,7 @@ void ssl_start() {
|
||||
@@ -420,6 +420,7 @@ void ssl_start() {
|
||||
}
|
||||
}
|
||||
|
||||
-#ifndef HAVE_WOLFSSL
|
||||
+#if !defined(HAVE_WOLFSSL) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
+#ifndef LIBRESSL_VERSION_NUMBER
|
||||
/**
|
||||
Set fips mode in openssl library,
|
||||
When we set fips mode ON/STRICT, it will perform following operations:
|
||||
@@ -473,6 +474,7 @@ EXIT:
|
||||
@returns openssl current fips mode
|
||||
*/
|
||||
uint get_fips_mode() { return FIPS_mode(); }
|
||||
+#endif
|
||||
|
||||
long process_tls_version(const char *tls_version) {
|
||||
const char *separator = ",";
|
|
@ -1,111 +0,0 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit cmake-multilib
|
||||
|
||||
# wrap the config script
|
||||
MULTILIB_CHOST_TOOLS=( /usr/bin/mysql_config )
|
||||
|
||||
DESCRIPTION="C client library for MariaDB/MySQL"
|
||||
HOMEPAGE="https://dev.mysql.com/downloads/"
|
||||
LICENSE="GPL-2"
|
||||
|
||||
SRC_URI="https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-boost-${PV}.tar.gz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
||||
|
||||
SLOT="0/21"
|
||||
IUSE="ldap libressl static-libs"
|
||||
|
||||
RDEPEND="
|
||||
>=app-arch/lz4-0_p131:=
|
||||
sys-libs/zlib:=[${MULTILIB_USEDEP}]
|
||||
ldap? ( dev-libs/cyrus-sasl:=[${MULTILIB_USEDEP}] )
|
||||
libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
|
||||
!libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
# Avoid file collisions, #692580
|
||||
RDEPEND+=" !<dev-db/mysql-5.6.45-r1"
|
||||
RDEPEND+=" !=dev-db/mysql-5.7.23*"
|
||||
RDEPEND+=" !=dev-db/mysql-5.7.24*"
|
||||
RDEPEND+=" !=dev-db/mysql-5.7.25*"
|
||||
RDEPEND+=" !=dev-db/mysql-5.7.26-r0"
|
||||
RDEPEND+=" !=dev-db/mysql-5.7.27-r0"
|
||||
RDEPEND+=" !<dev-db/percona-server-5.7.26.29-r1"
|
||||
|
||||
DOCS=( README )
|
||||
|
||||
S="${WORKDIR}/mysql-${PV}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-8.0.17-always-build-decompress-utilities.patch
|
||||
"${FILESDIR}"/${PN}-8.0.17-use-relative-include-path-for-udf_registration_types-h.patch
|
||||
"${FILESDIR}"/${PN}-8.0.17-libressl.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e 's/CLIENT_LIBS/CONFIG_CLIENT_LIBS/' "${S}/scripts/CMakeLists.txt" || die
|
||||
|
||||
# All these are for the server only.
|
||||
# Disable rpm call which would trigger sandbox, #692368
|
||||
sed -i \
|
||||
-e '/MYSQL_CHECK_LIBEVENT/d' \
|
||||
-e '/MYSQL_CHECK_RAPIDJSON/d' \
|
||||
-e '/MYSQL_CHECK_ICU/d' \
|
||||
-e '/MYSQL_CHECK_RE2/d' \
|
||||
-e '/MYSQL_CHECK_EDITLINE/d' \
|
||||
-e '/MYSQL_CHECK_CURL/d' \
|
||||
-e '/ADD_SUBDIRECTORY(man)/d' \
|
||||
-e '/ADD_SUBDIRECTORY(share)/d' \
|
||||
-e '/INCLUDE(cmake\/boost/d' \
|
||||
-e 's/MY_RPM rpm/MY_RPM rpmNOTEXISTENT/' \
|
||||
CMakeLists.txt || die
|
||||
|
||||
# Skip building clients
|
||||
echo > client/CMakeLists.txt || die
|
||||
|
||||
# Forcefully disable auth plugin
|
||||
if ! use ldap ; then
|
||||
sed -i -e '/MYSQL_CHECK_SASL/d' CMakeLists.txt || die
|
||||
echo > libmysql/authentication_ldap/CMakeLists.txt || die
|
||||
fi
|
||||
|
||||
cmake-utils_src_prepare
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DINSTALL_LAYOUT=RPM
|
||||
-DINSTALL_LIBDIR=$(get_libdir)
|
||||
-DWITH_DEFAULT_COMPILER_OPTIONS=OFF
|
||||
-DWITH_DEFAULT_FEATURE_SET=OFF
|
||||
-DENABLED_LOCAL_INFILE=ON
|
||||
-DMYSQL_UNIX_ADDR="${EPREFIX}/run/mysqld/mysqld.sock"
|
||||
-DWITH_ZLIB=system
|
||||
-DWITH_SSL=system
|
||||
-DWITH_NUMA=OFF
|
||||
-DLIBMYSQL_OS_OUTPUT_NAME=mysqlclient
|
||||
-DSHARED_LIB_PATCH_VERSION="0"
|
||||
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
||||
-DWITHOUT_SERVER=ON
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
cmake-utils_src_install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
doman \
|
||||
man/my_print_defaults.1 \
|
||||
man/perror.1 \
|
||||
man/zlib_decompress.1
|
||||
|
||||
if ! use static-libs ; then
|
||||
find "${ED}" -name "*.a" -delete || die
|
||||
fi
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
@ -43,7 +43,8 @@ S="${WORKDIR}/mysql-${PV}"
|
|||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-8.0.18-always-build-decompress-utilities.patch
|
||||
"${FILESDIR}"/${PN}-8.0.17-use-relative-include-path-for-udf_registration_types-h.patch
|
||||
#"${FILESDIR}"/${PN}-8.0.17-libressl.patch
|
||||
"${FILESDIR}"/${PN}-8.0.19-do-not-install-comp_err.patch
|
||||
"${FILESDIR}"/${PN}-8.0.19-libressl.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
|
@ -2,7 +2,7 @@ DIST mysql-5.6.44.tar.gz 32531507 BLAKE2B 28fbf49f699eb9f43223ffa186671b119d1601
|
|||
DIST mysql-5.6.45.tar.gz 32525559 BLAKE2B 3c629aed1de808acdea6654c7413e6851507c9c5be939ca4b4f5e2796da317e9b518a749bfc03d2b0ef05bd604b39f72e24b751076b9f206b462d21fa5db4f50 SHA512 f9d8bb72e96cc83f1064fe7df2e5fe8317ca9d44c4e776cf7827a61292fbcfccec716806c80d565958383d78fef93a19d61c726687b57680d5f93299291ff168
|
||||
DIST mysql-boost-5.7.26.tar.gz 51098338 BLAKE2B 1263cd75814a7293b26b0f44fd2b7d20d983f3c6a62725df9515ecac2ef252f6644810cb4bf0d6f36b98e55317f1c67ea7541228cb38d896dfedc476a5755f26 SHA512 a5f9871dc5a8e5fffc1467c3dd542533a63fe553c029120475f8fd5530d884c76ab0c33ad260daf317faf318ccef01464f6ac2dc3468efceb6bf2b6c06c54cfd
|
||||
DIST mysql-boost-5.7.27.tar.gz 51436383 BLAKE2B 6db64ab5fa659aae9baa3725a0de9465e48c37618ffd69f34809880c06a00ce55dce77f507810c6fa52d86901facfa42d3d1bd8db1914a779fbc88a69be82497 SHA512 573f4555f3d62bcd3dc2228bcfba023518d462bb6689114a3505ccf7c7c3061d2775a8e7a37ec3c8b9dea6e8fbc56ba599610f237abc38cedff58e75799bdc52
|
||||
DIST mysql-boost-8.0.18.tar.gz 194953221 BLAKE2B e3622cccd8f60487a5e643e522e9cdc763d63ad2a5eda86a7a7db37f48a4e1288fea88ef7097c6c4b51bd5e8fd8ba26a5b8aea3501ae847180066e2d0aa2b5dc SHA512 180091ad3e74e2afa28ecb914850e6b4e8c92b8981f32b161f53381b92120d87dbd2c2fc073feb2543bb71702bac7368e9fb992821cfd3e3ca888019423b89f5
|
||||
DIST mysql-boost-8.0.19.tar.gz 264147972 BLAKE2B 61a5ccbef1a7a675c85e4e6bda8e5285bdb931e6ee14d4710bf13dfd9157d1095200db2886dc93ea7251d3d59245f35c0bef5ba88ba6aac209b1e080f3b07dc4 SHA512 5ffc03f005ab2585694902e926b6cb2b10059b2b030549eccd3949f9c3b2f02626d02529f940dec003f2d69683856fd1c720ff12f89dfbdc48befaf24a9c4d01
|
||||
DIST mysql-extras-20190817-0024Z.tar.bz2 337793 BLAKE2B dfd51a708654aff5bdbbaf2acad7ef966869a8e3adcba544ee15f217d2ba942827445841e73981bccc6c1f145b6225bfa7245114219f0cf52f0dfb85494a6830 SHA512 c2ff81be1c55636f0a2700033af030149f312f0383217054a4b8c65aef174626299fcb4539eaae967ea7d096a5bb09f5b5122dce344b44b0a135d886ba0fdf28
|
||||
DIST mysql-extras-20190822-1908Z.tar.bz2 338830 BLAKE2B bc197f8e541206548d8982814e82e028d699ba9c41aec8d5191bcc46581f7880ed2741dbe2206fde44a5e8d8d54bbcf40efbd0709b357636c4c8fdb2ccc3a7bb SHA512 be469e55f7e9966638600d6836a44258c74e5600240fafe2d79eaeebe7d1695b043678184b5d18ee9946f28154bc2529586a7f860b510180a30c82454ed575c8
|
||||
DIST mysql-extras-20191016-1722Z.tar.bz2 340442 BLAKE2B fa38fc455693b940cfb96f69a35c190f7edb3fdfa7bf0e3f4e444032843ca1ad1d4767fecaf3b080f7f8885335ffe81f2355e9fe0fdebe77ac90d7fb1a0d2121 SHA512 1b4d3fb1cda63471807e37ecdd6a663672149a9eac9497d6b864a9ecdd57d179950176da2db0668892567994bd2fc1e98ea499f16dc689738331a1e319c9131c
|
||||
DIST mysql-extras-20200120-1919Z.tar.bz2 342474 BLAKE2B 9c75ec0cb05fc8f86d46bc9308f07c4105c3ab228ef94c0e9e2ab9b83d03362e4ef07c4dac866350ea012c03c111e7012e0b12270b30304a988b9b54bad74864 SHA512 2739c193e9595781b742af9fdb6e0f9c9a5fde87ca652c355d3f630c8c0b45b45967e5c8cf7635fb8615174775e34ae3270b149de7ba8a9d778979c2c66069ef
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
MY_EXTRAS_VER="20191016-1722Z"
|
||||
MY_EXTRAS_VER="20200120-1919Z"
|
||||
|
||||
CMAKE_MAKEFILE_GENERATOR=emake
|
||||
|
||||
|
@ -35,7 +35,13 @@ IUSE="cjk cracklib debug jemalloc latin1 libressl numa +perl profiling
|
|||
# Tests always fail when libressl is enabled due to hard-coded ciphers in the tests
|
||||
RESTRICT="!test? ( test ) libressl? ( test )"
|
||||
|
||||
REQUIRED_USE="?? ( tcmalloc jemalloc )"
|
||||
REQUIRED_USE="?? ( tcmalloc jemalloc )
|
||||
cjk? ( server )
|
||||
jemalloc? ( server )
|
||||
numa? ( server )
|
||||
profiling? ( server )
|
||||
router? ( server )
|
||||
tcmalloc? ( server )"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
|
||||
|
@ -57,36 +63,38 @@ PATCHES=(
|
|||
"${MY_PATCH_DIR}"/20001_all_fix-minimal-build-cmake-mysql-8.0.17.patch
|
||||
"${MY_PATCH_DIR}"/20007_all_cmake-debug-werror-8.0.18.patch
|
||||
"${MY_PATCH_DIR}"/20018_all_mysql-5.7.23-fix-grant_user_lock-a-root.patch
|
||||
"${MY_PATCH_DIR}"/20018_all_mysql-8.0.18-without-clientlibs-tools.patch
|
||||
"${MY_PATCH_DIR}"/20018_all_mysql-8.0.17-add-protobuf-3.8+-support.patch
|
||||
"${MY_PATCH_DIR}"/20018_all_mysql-8.0.18-fix-libressl-support.patch
|
||||
"${MY_PATCH_DIR}"/20018_all_mysql-8.0.19-without-clientlibs-tools.patch
|
||||
"${MY_PATCH_DIR}"/20018_all_mysql-8.0.19-fix-libressl-support.patch
|
||||
"${MY_PATCH_DIR}"/20018_all_mysql-8.0.19-fix-events_bugs-test.patch
|
||||
)
|
||||
|
||||
# Be warned, *DEPEND are version-dependant
|
||||
# These are used for both runtime and compiletime
|
||||
COMMON_DEPEND="
|
||||
>=app-arch/lz4-0_p131:=
|
||||
dev-libs/icu:=
|
||||
dev-libs/libedit
|
||||
>=dev-libs/protobuf-3.8:=
|
||||
dev-libs/libevent:=
|
||||
net-libs/libtirpc:=
|
||||
>=sys-libs/zlib-1.2.3:0=
|
||||
cjk? ( app-text/mecab:= )
|
||||
jemalloc? ( dev-libs/jemalloc:0= )
|
||||
kernel_linux? (
|
||||
dev-libs/libaio:0=
|
||||
sys-process/procps:0=
|
||||
)
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
!libressl? ( >=dev-libs/openssl-1.0.0:0= )
|
||||
numa? ( sys-process/numactl )
|
||||
tcmalloc? ( dev-util/google-perftools:0= )
|
||||
server? (
|
||||
dev-libs/icu:=
|
||||
dev-libs/libevent:=
|
||||
>=dev-libs/protobuf-3.8:=
|
||||
net-libs/libtirpc:=
|
||||
cjk? ( app-text/mecab:= )
|
||||
kernel_linux? (
|
||||
dev-libs/libaio:0=
|
||||
sys-process/procps:0=
|
||||
)
|
||||
numa? ( sys-process/numactl )
|
||||
jemalloc? ( dev-libs/jemalloc:0= )
|
||||
tcmalloc? ( dev-util/google-perftools:0= )
|
||||
)
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )
|
||||
net-libs/rpcsvc-proto
|
||||
virtual/yacc
|
||||
server? ( net-libs/rpcsvc-proto )
|
||||
test? (
|
||||
acct-group/mysql acct-user/mysql
|
||||
dev-perl/JSON
|
||||
|
@ -255,20 +263,9 @@ src_configure(){
|
|||
|
||||
mycmakeargs+=( -DWITHOUT_CLIENTLIBS=YES )
|
||||
|
||||
# client/mysql.cc:1131:16: error: redefinition of ‘struct _hist_entry’
|
||||
mycmakeargs+=(
|
||||
-DUSE_LIBEDIT_INTERFACE=0
|
||||
-DUSE_NEW_EDITLINE_INTERFACE=1
|
||||
-DHAVE_HIST_ENTRY=1
|
||||
)
|
||||
|
||||
mycmakeargs+=(
|
||||
-DWITH_ICU=system
|
||||
-DWITH_LIBEVENT=system
|
||||
-DWITH_LZ4=system
|
||||
-DWITH_PROTOBUF=system
|
||||
-DWITH_MECAB=$(usex cjk system OFF)
|
||||
-DWITH_NUMA=$(usex numa ON OFF)
|
||||
# Our dev-libs/rapidjson doesn't carry necessary fixes for std::regex
|
||||
-DWITH_RAPIDJSON=bundled
|
||||
)
|
||||
|
@ -299,6 +296,10 @@ src_configure(){
|
|||
mycmakeargs+=(
|
||||
-DWITH_EXTRA_CHARSETS=all
|
||||
-DWITH_DEBUG=$(usex debug)
|
||||
-DWITH_MECAB=$(usex cjk system OFF)
|
||||
-DWITH_LIBEVENT=system
|
||||
-DWITH_PROTOBUF=system
|
||||
-DWITH_NUMA=$(usex numa ON OFF)
|
||||
)
|
||||
|
||||
if use profiling ; then
|
||||
|
@ -404,6 +405,8 @@ src_test() {
|
|||
disabled_tests+=( "sys_vars.myisam_data_pointer_size_func;87935;Test will fail on slow hardware")
|
||||
disabled_tests+=( "x.connection;0;Known failure - no upstream bug yet" )
|
||||
disabled_tests+=( "main.mysqlpump_basic_lz4;0;Extra tool output causes false positive" )
|
||||
disabled_tests+=( "x.message_compressed_payload;0;False positive caused by protobuff-3.11+" )
|
||||
disabled_tests+=( "x.message_protobuf_nested;0;False positive caused by protobuff-3.11+" )
|
||||
|
||||
local test_ds
|
||||
for test_infos_str in "${disabled_tests[@]}" ; do
|
Binary file not shown.
|
@ -3,6 +3,7 @@ DIST erlang-22.1.4.tar.gz 54957524 BLAKE2B 8960dd63eb7ae18544d8b6809760543b276ec
|
|||
DIST erlang-22.1.8.tar.gz 54967877 BLAKE2B cb022e3c5f577605872e7689639fced6c1f6cb7600314f5939107605f0767ca080c65c2f9e0695a04bf53a9e0727553d854a9df57f09ce5f4a958ebd035756e7 SHA512 4260fab3f6cd9338ca167371cd982bcf9557729e93d58c3911e485529ed8ee97089e1de3466745d21206c94276f9865ac4fddcb2803afe915494b43feda46dda
|
||||
DIST erlang-22.2.1.tar.gz 55742915 BLAKE2B cfb49a07289f66ee8bcdc37452c88ec60c90b92febb7d41538166916989e80b612f13bae4ae2ba305aa12c790a74bcd9dc8412207413ba512537193811d177ad SHA512 4c0e5b963def01e02f8550414bee9e15a79681ac19547c4707d4cf3a67924e252dde7f8f94dfeca5eb3d34730acaffd193603711531bdf7c22d47d8880c5e5f4
|
||||
DIST erlang-22.2.2.tar.gz 55743605 BLAKE2B f316b78f33d81f05d22eb4eab52756a46c39df31ce93bf57ddbc6d663d0165f6cdcb4de2e4a70308024e7648a54267364ec19c94c425d643d03dc741112acaff SHA512 c38ecfcbc7ca66d45b5a2dad9a03d9c2a3a504d9ac85635de93975b03056a3d59edf462c296349f657534d935bcc1ea4321b771fb216f54f723d9db438437e42
|
||||
DIST erlang-22.2.3.tar.gz 55742102 BLAKE2B 85c1f9a2f6ae05e8e3c0f4c71c0dc4f1dd14f5a91e35070f20631b9349fd5d884a9c5390a0159bafcfda8464253bb3636a735f05f4d286ce2bf0518bdb3f3b50 SHA512 4ec29abfba875ddff700ed19095bf5709e75083530216ac8f3b24147e06d098675d1b4e5c0674aef44bc7391fe8e3fbcfc2e17d8083cd006e5ddb5c910010e44
|
||||
DIST erlang-22.2.tar.gz 55736930 BLAKE2B bcd67ea4ef5c358d4f0bcbec977e2c60a3b0f1ccccb2d38c35ba1908ed9d96727c83ab6cb6dc69ce90ffc6772e34de68014cc66ec8c3bfcda852844a4f6b1548 SHA512 a192da8ee02588c44e5c04bf2933c95672f596ca10f485c2c41d0c97563c90b5ea24fa02da61e007595f25a80557e6513372db3059bb7e394647a4c11f4cd41e
|
||||
DIST erlang_doc_html_21.1.tar.gz 32692731 BLAKE2B a7fa8ebe1c876ab7eecd2dd46ffd4d288db6d308e0f131d53c26ee4b67a92cb6fcb89b6c880ef34df395c7ad61fcdc81eac32e0fcf7336be7d517263218146bc SHA512 0d659f55bfb01eecf140a310154724489ef56b6ccbe9ac30f6b053f598276721b80de7b5b3200707cf8a6e77b8854eae5453f655225f431fcc982550539f767f
|
||||
DIST erlang_doc_html_22.1.tar.gz 33824830 BLAKE2B 2d50802fff81eba8bcf5f630da49d68d7cb2098175012e12f13941e69949a109c9f601c3cfaa2700b669415cd0c6c15961d8e4dd94b9b228cee17b661fe5400a SHA512 cc24927a4ff98b04d8f93fbc46bb36ffb34570521e4f31154b778dc17cf1cff60869239c26c327d7a9360c06528f9b380a302b39fa47285e50dfd4656b508202
|
||||
|
|
155
dev-lang/erlang/erlang-22.2.3.ebuild
Normal file
155
dev-lang/erlang/erlang-22.2.3.ebuild
Normal file
|
@ -0,0 +1,155 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
WX_GTK_VER="3.0"
|
||||
|
||||
inherit elisp-common java-pkg-opt-2 systemd wxwidgets
|
||||
|
||||
# NOTE: If you need symlinks for binaries please tell maintainers or
|
||||
# open up a bug to let it be created.
|
||||
|
||||
UPSTREAM_V="$(ver_cut 1-2)"
|
||||
|
||||
DESCRIPTION="Erlang programming language, runtime environment and libraries (OTP)"
|
||||
HOMEPAGE="https://www.erlang.org/"
|
||||
SRC_URI="https://github.com/erlang/otp/archive/OTP-${PV}.tar.gz -> ${P}.tar.gz
|
||||
http://erlang.org/download/otp_doc_man_${UPSTREAM_V}.tar.gz -> ${PN}_doc_man_${UPSTREAM_V}.tar.gz
|
||||
doc? ( http://erlang.org/download/otp_doc_html_${UPSTREAM_V}.tar.gz -> ${PN}_doc_html_${UPSTREAM_V}.tar.gz )"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
# We use this subslot because Compiled HiPE Code can be loaded on the exact
|
||||
# same build of ERTS that was used when compiling the code. See
|
||||
# http://erlang.org/doc/system_principles/misc.html for more information.
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
|
||||
IUSE="doc emacs +hipe java +kpoll libressl odbc sctp ssl systemd tk wxwidgets"
|
||||
|
||||
RDEPEND="
|
||||
acct-group/epmd
|
||||
acct-user/epmd
|
||||
sys-libs/ncurses:0
|
||||
sys-libs/zlib
|
||||
emacs? ( >=app-editors/emacs-23.1:* )
|
||||
java? ( >=virtual/jdk-1.8:* )
|
||||
odbc? ( dev-db/unixODBC )
|
||||
sctp? ( net-misc/lksctp-tools )
|
||||
ssl? (
|
||||
!libressl? ( >=dev-libs/openssl-0.9.7d:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
)
|
||||
systemd? ( sys-apps/systemd )
|
||||
tk? ( dev-lang/tk:0 )
|
||||
wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/perl
|
||||
"
|
||||
|
||||
S="${WORKDIR}/otp-OTP-${PV}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/18.2.1-wx3.0.patch"
|
||||
"${FILESDIR}/${PN}-22.0-dont-ignore-LDFLAGS.patch"
|
||||
"${FILESDIR}/${PN}-22.2.2-gcc-10.patch"
|
||||
"${FILESDIR}/${PN}-22.1.4-asn1-dep.patch"
|
||||
)
|
||||
|
||||
SITEFILE=50"${PN}"-gentoo.el
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
./otp_build autoconf || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use wxwidgets && setup-wxwidgets
|
||||
|
||||
local myconf=(
|
||||
--disable-builtin-zlib
|
||||
$(use_enable hipe)
|
||||
$(use_enable kpoll kernel-poll)
|
||||
$(use_with java javac)
|
||||
$(use_enable sctp)
|
||||
$(use_with ssl ssl "${EPREFIX}"/usr)
|
||||
$(use_enable ssl dynamic-ssl-lib)
|
||||
$(use_enable systemd)
|
||||
$(usex wxwidgets "--with-wx-config=${WX_CONFIG}" "--with-wxdir=/dev/null")
|
||||
)
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
|
||||
if use emacs ; then
|
||||
pushd lib/tools/emacs &>/dev/null || die
|
||||
elisp-compile *.el
|
||||
popd &>/dev/null || die
|
||||
fi
|
||||
}
|
||||
|
||||
extract_version() {
|
||||
local path="$1"
|
||||
local var_name="$2"
|
||||
sed -n -e "/^${var_name} = \(.*\)$/s::\1:p" "${S}/${path}/vsn.mk" || die "extract_version() failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local erl_libdir_rel="$(get_libdir)/erlang"
|
||||
local erl_libdir="/usr/${erl_libdir_rel}"
|
||||
local erl_interface_ver="$(extract_version lib/erl_interface EI_VSN)"
|
||||
local erl_erts_ver="$(extract_version erts VSN)"
|
||||
local my_manpath="/usr/share/${PN}/man"
|
||||
|
||||
[[ -z "${erl_erts_ver}" ]] && die "Couldn't determine erts version"
|
||||
[[ -z "${erl_interface_ver}" ]] && die "Couldn't determine interface version"
|
||||
|
||||
emake INSTALL_PREFIX="${D}" install
|
||||
|
||||
if use doc ; then
|
||||
local DOCS=( "AUTHORS" "HOWTO"/* "README.md" "CONTRIBUTING.md" "${WORKDIR}"/doc/. "${WORKDIR}"/lib/. "${WORKDIR}"/erts-* )
|
||||
docompress -x /usr/share/doc/${PF}
|
||||
else
|
||||
local DOCS=("README.md")
|
||||
fi
|
||||
|
||||
einstalldocs
|
||||
|
||||
dosym "../${erl_libdir_rel}/bin/erl" /usr/bin/erl
|
||||
dosym "../${erl_libdir_rel}/bin/erlc" /usr/bin/erlc
|
||||
dosym "../${erl_libdir_rel}/bin/escript" /usr/bin/escript
|
||||
dosym "../${erl_libdir_rel}/lib/erl_interface-${erl_interface_ver}/bin/erl_call" /usr/bin/erl_call
|
||||
dosym "../${erl_libdir_rel}/erts-${erl_erts_ver}/bin/beam.smp" /usr/bin/beam.smp
|
||||
|
||||
## Clean up the no longer needed files
|
||||
rm "${ED}/${erl_libdir}/Install" || die
|
||||
|
||||
insinto "${my_manpath}"
|
||||
doins -r "${WORKDIR}"/man/*
|
||||
# extend MANPATH, so the normal man command can find it
|
||||
# see bug 189639
|
||||
newenvd - "90erlang" <<-_EOF_
|
||||
MANPATH="${my_manpath}"
|
||||
_EOF_
|
||||
|
||||
if use emacs ; then
|
||||
elisp-install erlang lib/tools/emacs/*.{el,elc}
|
||||
sed -e "s:/usr/share:${EPREFIX}/usr/share:g" \
|
||||
"${FILESDIR}/${SITEFILE}" > "${T}/${SITEFILE}" || die
|
||||
elisp-site-file-install "${T}/${SITEFILE}"
|
||||
fi
|
||||
|
||||
newinitd "${FILESDIR}"/epmd.init-r2 epmd
|
||||
newconfd "${FILESDIR}"/epmd.confd-r2 epmd
|
||||
use systemd && systemd_newunit "${FILESDIR}"/epmd.service-r1 epmd.service
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
@ -12,7 +12,7 @@ if [[ "${PV}" == *9999 ]] ; then
|
|||
EGIT_REPO_URI="https://git.kernel.org/pub/scm/libs/ell/ell.git"
|
||||
else
|
||||
SRC_URI="https://mirrors.edge.kernel.org/pub/linux/libs/${PN}/${P}.tar.xz"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~mips ppc ppc64 ~sparc x86"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~sparc x86"
|
||||
fi
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
@ -12,7 +12,7 @@ if [[ "${PV}" == *9999 ]] ; then
|
|||
EGIT_REPO_URI="https://git.kernel.org/pub/scm/libs/ell/ell.git"
|
||||
else
|
||||
SRC_URI="https://mirrors.edge.kernel.org/pub/linux/libs/${PN}/${P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||
fi
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
@ -12,7 +12,7 @@ if [[ "${PV}" == *9999 ]] ; then
|
|||
EGIT_REPO_URI="https://git.kernel.org/pub/scm/libs/ell/ell.git"
|
||||
else
|
||||
SRC_URI="https://mirrors.edge.kernel.org/pub/linux/libs/${PN}/${P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||
fi
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
|
|
|
@ -12,7 +12,7 @@ SRC_URI="http://downloads.grantlee.org/${P}.tar.gz"
|
|||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="5"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 x86"
|
||||
KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86"
|
||||
IUSE="debug doc test"
|
||||
|
||||
BDEPEND="
|
||||
|
|
|
@ -3,3 +3,4 @@ DIST pigpio-68.tar.gz 371251 BLAKE2B c0118854d18ce158a3d5c96380289cc8bc68f35f72c
|
|||
DIST pigpio-70.tar.gz 374569 BLAKE2B a2caadf0e1307c8c3ce936d5fd4d31e18185aa53900f6b2cf8b92a31f423b9a82bf4d2b7212fa8cd5b2d26773598a138ef8331884410f3f418542f43ca1fe2d4 SHA512 00db37b9c0f9751e6179b19e7018583abd9e11d78d01ff9f99b713004cf4e6a224e93644206599378a34dd46fd75c08557021b706015b0bc2bd8b34e363691db
|
||||
DIST pigpio-71.tar.gz 374952 BLAKE2B a79a408915285674211e50e30d3cafa433a9ee364cacced501e109d6c31a3a03c14f9d25c3c18e3df252801de65c60ca67cd5f1a8e08f05be8098ad591a14fee SHA512 c3bf029bebff9a7ee02b48597f624a5dcdf277c5c1a7ffa2f6cb83885a93cd6713935d9502127d11c4e9c11e7f6f6be49c8af367707eca2fff469728b5248e2f
|
||||
DIST pigpio-72.tar.gz 384220 BLAKE2B ff3466df80adb6ee9bb2f6bc8aa9589bb6789746eedfab410d2a23dcd4986c29297f71469c8330c55603d8aabba7a4b2171390a63c21a12464b45cc4e24645d8 SHA512 c090962cb11204774e4a97a3dec37146882d66abef4d3e4de62e116b64650d6c66f95646f6350e3a45d8b2ba261a8d16c74f7648869cd0e94f42a80d88bb6d6e
|
||||
DIST pigpio-73.tar.gz 385233 BLAKE2B 5b58b399ffccab456d64decea4190e326c70cfe36b5513d0c69aa68c5ebfe2667ec5b4a028d19ec987d948c7b94dd23d67903bbae901d61f751dd606540324ea SHA512 bc6d2bbc2f2067c851a74a6137913b9abf2a7424bc2f78cf4086a1210f5c1116f71dcfa94a1268c137f4181e2db39af0bd2025caa1a7f98374b2043a166af746
|
||||
|
|
39
dev-libs/pigpio/pigpio-73.ebuild
Normal file
39
dev-libs/pigpio/pigpio-73.ebuild
Normal file
|
@ -0,0 +1,39 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
inherit distutils-r1 systemd toolchain-funcs
|
||||
|
||||
DESCRIPTION="A library for the Raspberry which allows control of the GPIOs"
|
||||
HOMEPAGE="http://abyz.me.uk/rpi/pigpio/index.html"
|
||||
SRC_URI="https://github.com/joan2937/pigpio/archive/V${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Unlicense"
|
||||
SLOT="0"
|
||||
KEYWORDS="~arm"
|
||||
IUSE="python"
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
src_prepare() {
|
||||
eapply "${FILESDIR}/${PN}-70-makefile.patch"
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" STRIP=: STRIPLIB=: SIZE=:
|
||||
use python && distutils-r1_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" LDCONFIG=: PYTHON2=: PYTHON3=: \
|
||||
libdir="${EPREFIX}/usr/$(get_libdir)" prefix="${EPREFIX}/usr" \
|
||||
mandir="${EPREFIX}/usr/share/man" install
|
||||
einstalldocs
|
||||
newinitd "${FILESDIR}"/pigpiod.initd pigpiod
|
||||
newconfd "${FILESDIR}"/pigpiod.confd pigpiod
|
||||
systemd_newunit "${FILESDIR}"/pigpiod.systemd pigpiod.service
|
||||
use python && distutils-r1_src_install
|
||||
}
|
|
@ -1,3 +1,2 @@
|
|||
DIST spdlog-1.2.1.tar.gz 188284 BLAKE2B c3491a9c44d8a94c51d50c9ef36a2105f77e8fb61bb7b2b81a341609f433abbe3a74e7b4a467dd715a5d906f976740716488d07b4510f366556ab59d160ceefe SHA512 418f91efc207fa227558212d82c41639c0bb59e84ea47447e0b6276c4842e97f1f8aaf5802c071ef15d80ec525e317e70b6a39661a6c96ab39d33d9bd1570da1
|
||||
DIST spdlog-1.3.0.tar.gz 202637 BLAKE2B 97027a3672b826e294dbdc202afa913a42ddae5a02a569ac28c41d79b96128de045ac5df30a76d888d6b3bea5093fb75b006365d7b1b296842750a39f43835d6 SHA512 019a52d4b6c66287ee2a6e8177457ecbbb78e1cb894f4a0a90b83a84d66cd37b397cdf77892d9116e4c34113bd3277d606d578bc96ec6521ae7745f08b1aa54f
|
||||
DIST spdlog-1.3.1.tar.gz 202634 BLAKE2B 2465a8d1a38af1527ae66d92f5dd91ad504d01e44ac47702e315f7448e19f01743627357132f0561e48807315df9b102f337f95cab5a7aae3ec0ae7ceff940b9 SHA512 a851a44b6384f493dd312ae0a611d068af46bbfe8daf1c2f61f13d8836a3801f41b339074fbe8da8e428131c82fa5c4a9e3320a55cbdd4b7aff8bb349dfff7dd
|
||||
DIST spdlog-1.5.0.tar.gz 270416 BLAKE2B bac6c6650f8347458dd2dd66f318b43a769b0896d68f6a6f1310754527a69feaa52b2f6f48d67c7e811c2dafa5d3863a9a07c738df8c12abed2718fb06254b28 SHA512 78991c943dd95af563c4b29545b9b5d635caf1af5031262dde734ecf70c0b4ae866d954ee77b050f9f0cc089a3bc57ee9583895e51cb00dd1cc6c10ff905ca34
|
||||
|
|
|
@ -1,45 +0,0 @@
|
|||
diff --git a/include/spdlog/fmt/fmt.h b/include/spdlog/fmt/fmt.h
|
||||
index 5d039b8c..8107b19a 100644
|
||||
--- a/include/spdlog/fmt/fmt.h
|
||||
+++ b/include/spdlog/fmt/fmt.h
|
||||
@@ -19,9 +19,6 @@
|
||||
#ifndef FMT_USE_WINDOWS_H
|
||||
#define FMT_USE_WINDOWS_H 0
|
||||
#endif
|
||||
-#include "bundled/core.h"
|
||||
-#include "bundled/format.h"
|
||||
-#else // SPDLOG_FMT_EXTERNAL is defined - use external fmtlib
|
||||
-#include "fmt/core.h"
|
||||
-#include "fmt/format.h"
|
||||
-#endif
|
||||
+#endif // SPDLOG_FMT_EXTERNAL is defined - use external fmtlib
|
||||
+#include <fmt/core.h>
|
||||
+#include <fmt/format.h>
|
||||
diff --git a/include/spdlog/fmt/ostr.h b/include/spdlog/fmt/ostr.h
|
||||
index 9902898f..5e92a592 100644
|
||||
--- a/include/spdlog/fmt/ostr.h
|
||||
+++ b/include/spdlog/fmt/ostr.h
|
||||
@@ -11,8 +11,6 @@
|
||||
#ifndef FMT_HEADER_ONLY
|
||||
#define FMT_HEADER_ONLY
|
||||
#endif
|
||||
-#include "bundled/ostream.h"
|
||||
-#include "fmt.h"
|
||||
-#else
|
||||
-#include <fmt/ostream.h>
|
||||
#endif
|
||||
+
|
||||
+#include <fmt/ostream.h>
|
||||
diff --git a/src/spdlog.cpp b/src/spdlog.cpp
|
||||
index be91412d..d68dd522 100644
|
||||
--- a/src/spdlog.cpp
|
||||
+++ b/src/spdlog.cpp
|
||||
@@ -104,7 +104,7 @@ template std::shared_ptr<spdlog::logger> spdlog::stderr_logger_st<spdlog::async_
|
||||
// All rights reserved.
|
||||
|
||||
#if !defined(SPDLOG_FMT_EXTERNAL)
|
||||
-#include "spdlog/fmt/bundled/format-inl.h"
|
||||
+#include <fmt/format-inl.h>
|
||||
|
||||
FMT_BEGIN_NAMESPACE
|
||||
template struct internal::basic_data<void>;
|
|
@ -1,40 +0,0 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="Very fast, header only, C++ logging library"
|
||||
HOMEPAGE="https://github.com/gabime/spdlog"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/gabime/spdlog"
|
||||
else
|
||||
SRC_URI="https://github.com/gabime/spdlog/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="amd64"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/1"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/libfmt:0/5
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-1.0.0-unbundle-fmt.patch" )
|
||||
|
||||
src_configure() {
|
||||
rm -r include/spdlog/fmt/bundled || die
|
||||
|
||||
local mycmakeargs=(
|
||||
-DSPDLOG_BUILD_EXAMPLES=no
|
||||
-DSPDLOG_BUILD_TESTING=$(usex test)
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
|
@ -10,9 +10,9 @@ HOMEPAGE="https://github.com/gabime/spdlog"
|
|||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/gabime/spdlog"
|
||||
EGIT_REPO_URI="https://github.com/gabime/${PN}"
|
||||
else
|
||||
SRC_URI="https://github.com/gabime/spdlog/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI="https://github.com/gabime/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
|
@ -21,19 +21,25 @@ SLOT="0/1"
|
|||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
DEPEND="
|
||||
>=dev-libs/libfmt-5.0.0
|
||||
>=dev-libs/libfmt-5.3.0:=
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-1.0.0-unbundle-fmt.patch" )
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
rm -r include/spdlog/fmt/bundled || die "Failed to delete bundled libfmt"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
rm -r include/spdlog/fmt/bundled || die
|
||||
|
||||
local mycmakeargs=(
|
||||
-DSPDLOG_BUILD_EXAMPLES=no
|
||||
-DSPDLOG_BUILD_BENCH=no
|
||||
-DSPDLOG_BUILD_EXAMPLE=no
|
||||
-DSPDLOG_FMT_EXTERNAL=yes
|
||||
-DSPDLOG_BUILD_SHARED=no
|
||||
-DSPDLOG_BUILD_TESTS=$(usex test)
|
||||
)
|
||||
|
|
@ -10,9 +10,9 @@ HOMEPAGE="https://github.com/gabime/spdlog"
|
|||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/gabime/spdlog"
|
||||
EGIT_REPO_URI="https://github.com/gabime/${PN}"
|
||||
else
|
||||
SRC_URI="https://github.com/gabime/spdlog/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI="https://github.com/gabime/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
|
@ -21,19 +21,25 @@ SLOT="0/1"
|
|||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
DEPEND="
|
||||
>=dev-libs/libfmt-5.0.0
|
||||
>=dev-libs/libfmt-5.3.0:=
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-9999-unbundle-fmt.patch" )
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
rm -r include/spdlog/fmt/bundled || die "Failed to delete bundled libfmt"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
rm -r include/spdlog/fmt/bundled || die
|
||||
|
||||
local mycmakeargs=(
|
||||
-DSPDLOG_BUILD_EXAMPLE=no
|
||||
-DSPDLOG_BUILD_BENCH=no
|
||||
-DSPDLOG_BUILD_EXAMPLE=no
|
||||
-DSPDLOG_FMT_EXTERNAL=yes
|
||||
-DSPDLOG_BUILD_SHARED=no
|
||||
-DSPDLOG_BUILD_TESTS=$(usex test)
|
||||
)
|
||||
|
||||
|
|
Binary file not shown.
39
dev-python/doit-py/doit-py-0.4.0-r1.ebuild
Normal file
39
dev-python/doit-py/doit-py-0.4.0-r1.ebuild
Normal file
|
@ -0,0 +1,39 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python{2_7,3_6} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="doit tasks for python stuff"
|
||||
HOMEPAGE="https://pythonhosted.org/doit-py/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="test? (
|
||||
dev-python/pyflakes[${PYTHON_USEDEP}]
|
||||
dev-python/coverage[${PYTHON_USEDEP}]
|
||||
virtual/python-singledispatch[${PYTHON_USEDEP}]
|
||||
app-text/hunspell )
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
|
||||
RDEPEND="
|
||||
virtual/python-pathlib[${PYTHON_USEDEP}]
|
||||
dev-python/doit[${PYTHON_USEDEP}]
|
||||
dev-python/configclass[${PYTHON_USEDEP}]"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C doc html
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/_build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
|
@ -1 +1,2 @@
|
|||
DIST doit-0.29.0.tar.gz 222341 BLAKE2B 8489568fe9236af04f87debfb4889840aa162d17d20f82ac0a9a22d1034b4c58976cd6829486a15b941ac1f50e7137c052fe332657c2b3f529fe2345bbcba2fc SHA512 a686457df31b414d0c3797789e0ae1ae5cdfa3674025236419cb59b254f342cd2db07911ef18b2cb576d8d817b44035b9372265b34b786b2779fb7074b394de1
|
||||
DIST doit-0.32.0.tar.gz 1437939 BLAKE2B 39134341582cd964630a1667c78b0e44eeb32406a06e3567123b820fb61cbee0f6a7c8879a84eed750860a365aa4c792e461bb1534c66e4f20a6289522dc8183 SHA512 d5c28a0c6a38648aeef58027b2246fc26360e133e91933f2244bd484f70d6d26110acbfec19c74d53c796e0bbae07a4bf6d76542d45e8b1a6b503c186bf2a68a
|
||||
|
|
70
dev-python/doit/doit-0.32.0.ebuild
Normal file
70
dev-python/doit/doit-0.32.0.ebuild
Normal file
|
@ -0,0 +1,70 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
|
||||
inherit eutils distutils-r1
|
||||
|
||||
DESCRIPTION="Automation tool"
|
||||
HOMEPAGE="http://python-doit.sourceforge.net/ https://pypi.org/project/doit/"
|
||||
SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/cloudpickle[${PYTHON_USEDEP}]
|
||||
dev-python/pyinotify[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep 'dev-python/configparser[${PYTHON_USEDEP}]' python2_7 pypy)
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
"
|
||||
DEPEND="test? ( ${RDEPEND}
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/pyflakes[${PYTHON_USEDEP}]
|
||||
dev-python/coverage[${PYTHON_USEDEP}] )
|
||||
"
|
||||
PDEPEND=">=dev-python/doit-py-0.3.0[${PYTHON_USEDEP}]"
|
||||
|
||||
# Required for test phase
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
python_prepare_all() {
|
||||
# Disable test failing due to impact on PATH run in a sandbox
|
||||
sed -e s':test_target:_&:' -i tests/test_cmd_strace.py || die
|
||||
|
||||
# Test requires connection to an absent database
|
||||
sed -e s':testIgnoreAll:_&:' -i tests/test_cmd_ignore.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C doc html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local -x TMPDIR="${T}"
|
||||
# disable tests where pypy's treatment of some tests' use of a db is incompatible
|
||||
|
||||
if [[ "${EPYTHON}" == pypy ]]; then
|
||||
sed -e 's:test_remove_all:_&:' -i tests/test_dependency.py || die
|
||||
sed -e 's:testForgetAll:_&:' -i tests/test_cmd_forget.py || die
|
||||
sed -e 's:test_not_picklable:_&:' \
|
||||
-e 's:test_task_not_picklabe_multiprocess:_&:' \
|
||||
-i tests/test_runner.py || die
|
||||
fi
|
||||
|
||||
py.test || die "Tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use doc && HTML_DOCS=( doc/_build/html/. )
|
||||
|
||||
distutils-r1_src_install
|
||||
}
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{6,7} pypy3 )
|
||||
PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
|
|
60
dev-python/mergedict/files/mergedict-0.2.0-py34.patch
Normal file
60
dev-python/mergedict/files/mergedict-0.2.0-py34.patch
Normal file
|
@ -0,0 +1,60 @@
|
|||
From c3f6333298c86e5681af282c7210eb1047a991dd Mon Sep 17 00:00:00 2001
|
||||
From: schettino72 <schettino72@gmail.com>
|
||||
Date: Sat, 30 Aug 2014 10:51:26 +0800
|
||||
Subject: [PATCH] install sigledispatch only when required.
|
||||
|
||||
---
|
||||
mergedict.py | 7 +++++--
|
||||
setup.py | 7 ++++++-
|
||||
2 files changed, 11 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/mergedict.py b/mergedict.py
|
||||
index 5dcd994..ad80a16 100644
|
||||
--- a/mergedict.py
|
||||
+++ b/mergedict.py
|
||||
@@ -26,8 +26,11 @@
|
||||
|
||||
import sys
|
||||
import inspect
|
||||
-from singledispatch import singledispatch
|
||||
-
|
||||
+try:
|
||||
+ from functools import singledispatch
|
||||
+# singledispatch was added on python 3.4
|
||||
+except ImportError: # pragma: no cover
|
||||
+ from singledispatch import singledispatch
|
||||
|
||||
class MergeDict(dict):
|
||||
"""Base class for a dict that implements a merge() method.
|
||||
diff --git a/setup.py b/setup.py
|
||||
index b37319e..1966b9a 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -1,6 +1,7 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
+import sys
|
||||
import os
|
||||
import codecs
|
||||
from setuptools import setup
|
||||
@@ -11,6 +12,10 @@
|
||||
long_description = ld_file.read()
|
||||
|
||||
|
||||
+install_requires = []
|
||||
+if sys.version_info[0] < 3 or sys.version_info[1] < 4:
|
||||
+ install_requires.append('singledispatch')
|
||||
+
|
||||
setup (
|
||||
name = 'mergedict',
|
||||
version = '0.2.0',
|
||||
@@ -23,7 +28,7 @@
|
||||
platforms = ['any'],
|
||||
license = 'MIT',
|
||||
py_modules = ['mergedict'],
|
||||
- install_requires = ['singledispatch'],
|
||||
+ install_requires = install_requires,
|
||||
classifiers = [
|
||||
'Development Status :: 4 - Beta',
|
||||
'Intended Audience :: Developers',
|
24
dev-python/mergedict/mergedict-0.2.0-r1.ebuild
Normal file
24
dev-python/mergedict/mergedict-0.2.0-r1.ebuild
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_{6,7,8}} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A Python 'dict' with a merge() method"
|
||||
HOMEPAGE="https://github.com/schettino72/mergedict/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="virtual/python-singledispatch[${PYTHON_USEDEP}]"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-py34.patch
|
||||
)
|
|
@ -1 +1,2 @@
|
|||
DIST path-and-address-1.1.0.zip 7652 BLAKE2B fcf80494a2969d4b59a96ca6cd6f9dbc03a56b11e4374e64ea59fba18859b50eb8621d506b28472713bce8aaec6e8d9f26ba763b82b726df439967aa3c8a75be SHA512 eb60fabce6a71401b4681bcc1db5253c2043c33bd25f9bc8bf678d45aa459e2398ed482166fa0f85a0365ba8762a46e75c6c497ea25b6c1ba5c91d6a37618062
|
||||
DIST path-and-address-2.0.1.zip 6503 BLAKE2B 146e73b5b54ea536f8b94da8ebbb923441564cf2137a55f3938552493b6fffe28c4e90c908a3fef2acb55e76f320519c7f59c0b2c99f144ebb29ca90d32e590a SHA512 11b2352389662412451e1e9f3e2997e81d36acbef7ad18c50328b9e9bb395f2f5fc8bca988ef14a7d9b76f5213cbfa17bb82df0e00f6989671181b104e4f1406
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>bkohler@gentoo.org</email>
|
||||
<name>Ben Kohler</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">joeyespo/path-and-address</remote-id>
|
||||
<remote-id type="pypi">path-and-address</remote-id>
|
||||
|
|
20
dev-python/path-and-address/path-and-address-2.0.1.ebuild
Normal file
20
dev-python/path-and-address/path-and-address-2.0.1.ebuild
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( pypy3 python3_{6,7,8} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Functions for server CLI applications used by humans"
|
||||
HOMEPAGE="https://github.com/joeyespo/path-and-address"
|
||||
LICENSE="MIT"
|
||||
|
||||
SLOT="0"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
BDEPEND="app-arch/unzip"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
|
@ -12,7 +12,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 x86"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="vies test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
|
|
|
@ -20,6 +20,13 @@ RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
|||
DEPEND="${RDEPEND}"
|
||||
S="${WORKDIR}/python-${PV}"
|
||||
|
||||
python_prepare_all() {
|
||||
distutils-r1_python_prepare_all
|
||||
|
||||
sed -e 's|^[[:space:]]*setuptools_scm$||' \
|
||||
-i setup.cfg || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
esetup.py test || die "tests failed with ${EPYTHON}"
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
|||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
|
||||
IUSE="doc examples +sqlite test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${MY_PN::1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
|
|||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 sparc ~x86"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~mips ~ppc ~ppc64 ~s390 sparc ~x86"
|
||||
IUSE="test yaml"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 x86"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="async -tornado"
|
||||
|
||||
DEPEND="dev-python/setuptools"
|
||||
|
|
Binary file not shown.
|
@ -1,7 +1,7 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
EAPI=7
|
||||
|
||||
ROS_REPO_URI="https://github.com/ros/ros_comm"
|
||||
KEYWORDS="~amd64 ~arm"
|
||||
|
|
Binary file not shown.
|
@ -1 +1 @@
|
|||
DIST clion-2019.3.tar.gz 499054562 BLAKE2B 5655d39a573915431d296e5cc0a0aee1e0aaa95878e885b578a961b53b001ff8327338cf7e8e9a6eb71d758336cb8d71f7b21d94b4aa72504cc8f73df274dee6 SHA512 9d16ae4e2219d5cecb165934a8c378df2125ae6b14f924d04cad6776b985e19ea1957d1fb15e1c75d078eac56b47eaed2dfed02efedbf0d5ff649bab519ecc1c
|
||||
DIST clion-2019.3.2.tar.gz 504918530 BLAKE2B fd209977752f2e97c42113d082f0e57de0a4c73c3f18d29ba00872f19f753843c719abc96e1e7c1ba2d8afdfd724ef929e803d1ec009019ee9bef735347ae8a0 SHA512 def10008f685c5bac523c2a15920b41482f4877cdfcc26f3aac2dfdfe2cf0e23ebff236750d4f1b04f0076ec6967c127abaf61f0cb1da5a51d873fd0cd029f2a
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
@ -18,13 +18,16 @@ IUSE="debug"
|
|||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
>=dev-libs/elfutils-0.131
|
||||
<=dev-libs/elfutils-0.177
|
||||
>=dev-libs/elfutils-0.178
|
||||
sys-libs/zlib"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
DOCS=( README README.ctracer NEWS )
|
||||
PATCHES=( "${FILESDIR}"/${PN}-1.10-python-import.patch )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.10-python-import.patch
|
||||
"${FILESDIR}"/${PN}-1.16-no-libebl.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=( "-D__LIB=$(get_libdir)" )
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
@ -11,7 +11,7 @@ SRC_URI="https://github.com/acaudwell/Gource/releases/download/${P}/${P}.tar.gz"
|
|||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
KEYWORDS="amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEPEND="
|
||||
|
|
Binary file not shown.
|
@ -12,11 +12,21 @@
|
|||
# Provides function for building ROS packages on Gentoo.
|
||||
# It supports selectively building messages, multi-python installation, live ebuilds (git only).
|
||||
|
||||
# @ECLASS-VARIABLE: CMAKE_ECLASS
|
||||
# @INTERNAL
|
||||
# @DEFAULT_UNSET
|
||||
# @DESCRIPTION:
|
||||
# Set to "cmake-utils" for EAPI 5 and 6, "cmake" for EAPI-7.
|
||||
|
||||
case "${EAPI:-0}" in
|
||||
0|1|2|3|4)
|
||||
die "EAPI='${EAPI}' is not supported"
|
||||
;;
|
||||
[56])
|
||||
CMAKE_ECLASS=cmake-utils
|
||||
;;
|
||||
*)
|
||||
CMAKE_ECLASS=cmake
|
||||
;;
|
||||
esac
|
||||
|
||||
|
@ -51,7 +61,7 @@ fi
|
|||
# most certainly be something pulling python anyway.
|
||||
PYTHON_COMPAT=( python3_6 )
|
||||
|
||||
inherit ${SCM} python-r1 cmake-utils flag-o-matic
|
||||
inherit ${SCM} python-r1 ${CMAKE_ECLASS} flag-o-matic
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
|
@ -134,13 +144,13 @@ HOMEPAGE="https://wiki.ros.org/${PN} ${ROS_REPO_URI}"
|
|||
|
||||
# @FUNCTION: ros-catkin_src_prepare
|
||||
# @DESCRIPTION:
|
||||
# Calls cmake-utils_src_prepare (so that PATCHES array is handled there) and initialises the workspace
|
||||
# Calls cmake_src_prepare (so that PATCHES array is handled there) and initialises the workspace
|
||||
# by installing a recursive CMakeLists.txt to handle bundles.
|
||||
ros-catkin_src_prepare() {
|
||||
# If no multibuild, just use cmake IN_SOURCE support
|
||||
[ -n "${CATKIN_IN_SOURCE_BUILD}" ] && export CMAKE_IN_SOURCE_BUILD=yes
|
||||
|
||||
cmake-utils_src_prepare
|
||||
${CMAKE_ECLASS}_src_prepare
|
||||
|
||||
if [ ! -f "${S}/CMakeLists.txt" ] ; then
|
||||
catkin_init_workspace || die
|
||||
|
@ -187,7 +197,7 @@ ros-catkin_src_configure() {
|
|||
fi
|
||||
|
||||
local mycmakeargs=(
|
||||
"$(cmake-utils_use test CATKIN_ENABLE_TESTING)"
|
||||
"-DCATKIN_ENABLE_TESTING=$(usex test)"
|
||||
"-DCATKIN_BUILD_BINARY_PACKAGE=ON"
|
||||
"-DCATKIN_PREFIX_PATH=${SYSROOT:-${EROOT}}/usr"
|
||||
"${mycatkincmakeargs[@]}"
|
||||
|
@ -202,7 +212,7 @@ ros-catkin_src_configure() {
|
|||
export CMAKE_USE_DIR="${BUILD_DIR}"
|
||||
fi
|
||||
|
||||
cmake-utils_src_configure "${@}"
|
||||
${CMAKE_ECLASS}_src_configure "${@}"
|
||||
}
|
||||
|
||||
# @FUNCTION: ros-catkin_src_compile
|
||||
|
@ -210,7 +220,7 @@ ros-catkin_src_configure() {
|
|||
# Builds a catkin-based package.
|
||||
ros-catkin_src_compile() {
|
||||
ros-catkin_python_setup
|
||||
cmake-utils_src_compile "${@}"
|
||||
${CMAKE_ECLASS}_src_compile "${@}"
|
||||
}
|
||||
|
||||
# @FUNCTION: ros-catkin_src_test
|
||||
|
@ -226,8 +236,13 @@ ros-catkin_src_test() {
|
|||
einfo "Regenerating setup_cached.sh for tests"
|
||||
${PYTHON:-python} catkin_generated/generate_cached_setup.py || die
|
||||
fi
|
||||
nonfatal cmake-utils_src_make tests
|
||||
cmake-utils_src_test "${@}"
|
||||
|
||||
if [[ ${CMAKE_ECLASS} = cmake-utils ]]; then
|
||||
nonfatal cmake-utils_src_make tests
|
||||
else
|
||||
nonfatal cmake_build tests
|
||||
fi
|
||||
${CMAKE_ECLASS}_src_test "${@}"
|
||||
}
|
||||
|
||||
# @FUNCTION: ros-catkin_src_install
|
||||
|
@ -240,7 +255,7 @@ ros-catkin_src_install() {
|
|||
export CMAKE_USE_DIR="${BUILD_DIR}"
|
||||
fi
|
||||
|
||||
cmake-utils_src_install "${@}"
|
||||
${CMAKE_ECLASS}_src_install "${@}"
|
||||
if [ ! -f "${T}/.catkin_python_symlinks_generated" -a -d "${D}/${PYTHON_SCRIPTDIR}" ]; then
|
||||
dodir /usr/bin
|
||||
for i in "${D}/${PYTHON_SCRIPTDIR}"/* ; do
|
||||
|
|
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
@ -9,7 +9,7 @@ SRC_URI="https://minecraft.azureedge.net/bin-linux/${P}.zip"
|
|||
|
||||
LICENSE="Mojang"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64"
|
||||
KEYWORDS="-* amd64"
|
||||
|
||||
RDEPEND="
|
||||
acct-group/bedrock
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
@ -13,7 +13,7 @@ SRC_URI="https://launcher.mojang.com/v1/objects/${EGIT_COMMIT}/server.jar -> ${P
|
|||
|
||||
LICENSE="Mojang"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
KEYWORDS="amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
acct-group/minecraft
|
||||
|
|
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
@ -24,7 +24,7 @@ SRC_URI="
|
|||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
KEYWORDS="amd64 ~x86"
|
||||
IUSE="dedicated libressl +lightfx +opengl test +truetype twitch"
|
||||
|
||||
COMMON_DEPEND="
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue