diff options
author | Repository mirror & CI <repomirrorci@gentoo.org> | 2020-05-25 16:36:11 +0000 |
---|---|---|
committer | Repository mirror & CI <repomirrorci@gentoo.org> | 2020-05-25 16:36:11 +0000 |
commit | bae9759c2546f8e04d7814a57b99ba7c0242f6db (patch) | |
tree | d8c7ad3c6bf715daaa97895811e0e60311092a72 | |
parent | 2020-05-25 16:05:29 UTC (diff) | |
parent | app-admin/consul: remove old (diff) | |
download | gentoo-bae9759c2546f8e04d7814a57b99ba7c0242f6db.tar.gz gentoo-bae9759c2546f8e04d7814a57b99ba7c0242f6db.tar.bz2 gentoo-bae9759c2546f8e04d7814a57b99ba7c0242f6db.zip |
Merge updates from master
35 files changed, 416 insertions, 274 deletions
diff --git a/app-admin/consul/Manifest b/app-admin/consul/Manifest index 0b11908879fc..751422d31b7d 100644 --- a/app-admin/consul/Manifest +++ b/app-admin/consul/Manifest @@ -1,8 +1,5 @@ DIST cloud.google.com%2Fgo%2F@v%2Fv0.26.0.mod 27 BLAKE2B 814b0fa8f12d5ce6171fa629b5a7eb34e0e882cc0c5430986896bb38c243e08dc83098f271227f4ba019e78f16dc97fbb381e833aff1819833d243b08add916b SHA512 5132f3438533427c0ab0fbb7a12112a7830ea9122662ed46019ff89c71d9cf80c02edc32dd5c892da572031b5a2cce100f2602fa6a19bea6be7c02781f701273 DIST cloud.google.com%2Fgo%2F@v%2Fv0.26.0.zip 2508208 BLAKE2B d17c22f3d8e3f0b52bab350e86c8fe29ea474e104ba89e3238e71dbd29139717a0d26586589f47303da4eb743fe86a76f727b772707584aba5bf76d8f5ef1969 SHA512 6dc6f4229011d8606e1eb3c046640f6938dae2e12a1b0a9e2a22b7d26b4ab50051cee09d17fc05298ef5d4901a6b7e12d4b06b8b8eac6b1e71442653eb25b541 -DIST consul-1.6.2.tar.gz 22041280 BLAKE2B 0b2edcd68fa166c178587a1ed3ca0445847d34510cd4e341f85a370257958a155ef6f976b045fc8e87af39107a3930ccb6d7a798ad142e87362f82d68ece4c3c SHA512 2df67854b85fa27600bf2cd57c913669f784019ee5a25b20a950ab00a403ca0562d74cb73c3402ebcec6cd951d7b9b4eb80c926746bcc27050db85f31192f826 -DIST consul-1.6.3.tar.gz 22065994 BLAKE2B 4d37a8141c097182c66a8ba7ab8f7031125e71b7a1b7dc8c419630504896634d797f4d733ddeb71555a2a988a2418548f40a12f333202833527483cbc8a590f6 SHA512 16a3fb3584d273ca178b213c9f314577d9473c39a5e436108bcae42f8b68803a548a5cc62d0c8426aa82e2b86dd6355f3d86f833ee6ec6fe1a4955589daf039f -DIST consul-1.7.0.tar.gz 22791558 BLAKE2B 005c6c74d7808183b362286f98a2f5cc301c9aabb9afc4db1cd5f160ac0a0bdf9b868ad96b28bd3f1503e6fc2951720c69b5f9e4f888d0c4fb5f9fa534c322af SHA512 ea368335b34498ea92d80240d71424deceb903eab6fb7a22fca2bf6e7a509526c86899b501ac8045ad69b0fa102be6db0a11fa50917fc15ca17f889f948af4e6 DIST consul-1.7.2.tar.gz 22755052 BLAKE2B d863ac756f487004d0c1361bf470c1202bc2e2d1364414d4aad16dc313c7bb5021c45b1c8080ded707d67120ac009afcfc0bba37ccc99eb474049e57779f3db1 SHA512 d13d7750c745aeeb2577ed334bfef1ac8a4e0c6f671a6705c0b8978217d071ebcf32455c0bfc83a77fd03caef68a6e256d95b48d5406deaaaba263f1a97b23c2 DIST github.com%2F!azure%2Fazure-sdk-for-go%2F@v%2Fv16.0.0+incompatible.mod 41 BLAKE2B de145bd0fb63d51b475e0f5d293b9957a170a7c7c206f1cf2d8eb9abdb67a80051b25116b68c5f450bcc8163bb942d34d9bd4ed0b41f4e06d0d510d9b1aeff55 SHA512 be976846ed78cec5b19618c7364c47e66c3475519bed166ad1e6b666399ea08028fa621869ab4980981fc70256acc9a7dd1c1e52c8d3d44cb0ac75f9907b6d3e DIST github.com%2F!azure%2Fazure-sdk-for-go%2F@v%2Fv16.0.0+incompatible.zip 16060635 BLAKE2B 6c358031305d8c8245b52bc58ed08cea5cb07c3e80cb3043f369ac6faf893a95d66c31fec38f07fe9029f53239c509bc060cfdebda8ac8d5ae556dfa0d6851e3 SHA512 bfd8f9859e519d6e45f2324e3907f88a1e661ca597f8bb3b7ae772246ba9972e09d0883abc887346fed55928f5d8422cf4212e32377e9900137cd63f0f9a93b8 diff --git a/app-admin/consul/consul-1.6.2.ebuild b/app-admin/consul/consul-1.6.2.ebuild deleted file mode 100644 index 59342179c2de..000000000000 --- a/app-admin/consul/consul-1.6.2.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit golang-vcs-snapshot systemd user -GIT_COMMIT="1200f25" -KEYWORDS="~amd64" -EGO_PN="github.com/hashicorp/consul" -DESCRIPTION="A tool for service discovery, monitoring and configuration" -HOMEPAGE="https://www.consul.io" -SRC_URI="https://github.com/hashicorp/consul/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -SLOT="0" -LICENSE="MPL-2.0 Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT" -IUSE="" - -RESTRICT="test" - -DEPEND="dev-go/gox - >=dev-lang/go-1.11:= - >=dev-go/go-tools-0_pre20160121" -RDEPEND="" - -pkg_setup() { - enewgroup consul - enewuser consul -1 -1 /var/lib/${PN} consul -} - -src_prepare() { - default - - # avoid network-sandbox violations since go-1.13 - rm src/${EGO_PN}/go.mod || die - grep -rlZ '_ "github.com/envoyproxy/protoc-gen-validate/validate"' . | \ - xargs -0 sed -i '/_ "github.com\/envoyproxy\/protoc-gen-validate\/validate"/d' || die - - sed -e 's:go get -u -v $(GOTOOLS)::' \ - -e 's:vendorfmt dev-build:dev-build:' \ - -i "src/${EGO_PN}/GNUmakefile" || die -} - -src_compile() { - # The dev target sets causes build.sh to set appropriate XC_OS - # and XC_ARCH, and skips generation of an unused zip file, - # avoiding a dependency on app-arch/zip. - GOPATH="${S}" \ - GOBIN="${S}/bin" \ - GIT_DESCRIBE="v${PV}" \ - GIT_DIRTY="" \ - GIT_COMMIT="${GIT_COMMIT}" \ - emake -C "src/${EGO_PN}" dev-build -} - -src_install() { - local x - - dobin bin/consul - - keepdir /etc/consul.d - insinto /etc/consul.d - doins "${FILESDIR}/"*.json.example - - for x in /var/{lib,log}/${PN}; do - keepdir "${x}" - fowners consul:consul "${x}" - done - - newinitd "${FILESDIR}/consul.initd" "${PN}" - newconfd "${FILESDIR}/consul.confd" "${PN}" - insinto /etc/logrotate.d - newins "${FILESDIR}/${PN}.logrotated" "${PN}" - systemd_dounit "${FILESDIR}/consul.service" -} diff --git a/app-admin/consul/consul-1.6.3.ebuild b/app-admin/consul/consul-1.6.3.ebuild deleted file mode 100644 index 61bae7df9634..000000000000 --- a/app-admin/consul/consul-1.6.3.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit golang-vcs-snapshot systemd user -GIT_COMMIT="7f3b5f3" -KEYWORDS="~amd64" -EGO_PN="github.com/hashicorp/consul" -DESCRIPTION="A tool for service discovery, monitoring and configuration" -HOMEPAGE="https://www.consul.io" -SRC_URI="https://github.com/hashicorp/consul/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -SLOT="0" -LICENSE="MPL-2.0 Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT" -IUSE="" - -RESTRICT="test" - -DEPEND="dev-go/gox - >=dev-lang/go-1.11:= - >=dev-go/go-tools-0_pre20160121" -RDEPEND="" - -pkg_setup() { - enewgroup consul - enewuser consul -1 -1 /var/lib/${PN} consul -} - -src_prepare() { - default - - # avoid network-sandbox violations since go-1.13 - rm src/${EGO_PN}/go.mod || die - grep -rlZ '_ "github.com/envoyproxy/protoc-gen-validate/validate"' . | \ - xargs -0 sed -i '/_ "github.com\/envoyproxy\/protoc-gen-validate\/validate"/d' || die - - sed -e 's:go get -u -v $(GOTOOLS)::' \ - -e 's:vendorfmt dev-build:dev-build:' \ - -i "src/${EGO_PN}/GNUmakefile" || die -} - -src_compile() { - # The dev target sets causes build.sh to set appropriate XC_OS - # and XC_ARCH, and skips generation of an unused zip file, - # avoiding a dependency on app-arch/zip. - GOPATH="${S}" \ - GOBIN="${S}/bin" \ - GIT_DESCRIBE="v${PV}" \ - GIT_DIRTY="" \ - GIT_COMMIT="${GIT_COMMIT}" \ - emake -C "src/${EGO_PN}" dev-build -} - -src_install() { - local x - - dobin bin/consul - - keepdir /etc/consul.d - insinto /etc/consul.d - doins "${FILESDIR}/"*.json.example - - for x in /var/{lib,log}/${PN}; do - keepdir "${x}" - fowners consul:consul "${x}" - done - - newinitd "${FILESDIR}/consul.initd" "${PN}" - newconfd "${FILESDIR}/consul.confd" "${PN}" - insinto /etc/logrotate.d - newins "${FILESDIR}/${PN}.logrotated" "${PN}" - systemd_dounit "${FILESDIR}/consul.service" -} diff --git a/app-admin/consul/consul-1.7.0.ebuild b/app-admin/consul/consul-1.7.0.ebuild deleted file mode 100644 index b721d4f0ca37..000000000000 --- a/app-admin/consul/consul-1.7.0.ebuild +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit golang-vcs-snapshot systemd user -GIT_COMMIT="95fb95b" -KEYWORDS="~amd64" -EGO_PN="github.com/hashicorp/consul" -DESCRIPTION="A tool for service discovery, monitoring and configuration" -HOMEPAGE="https://www.consul.io" -SRC_URI="https://github.com/hashicorp/consul/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -SLOT="0" -LICENSE="MPL-2.0 Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT" -IUSE="" - -RESTRICT="test" - -DEPEND="dev-go/gox - >=dev-lang/go-1.11:= - >=dev-go/go-tools-0_pre20160121" -RDEPEND="" - -pkg_setup() { - enewgroup consul - enewuser consul -1 -1 /var/lib/${PN} consul -} - -src_prepare() { - default - - # avoid network-sandbox violations since go-1.13 - rm src/${EGO_PN}/go.mod || die - grep -rlZ '_ "github.com/envoyproxy/protoc-gen-validate/validate"' . | \ - xargs -0 sed -i '/_ "github.com\/envoyproxy\/protoc-gen-validate\/validate"/d' || die - - sed -e 's:go get -u -v $(GOTOOLS)::' \ - -e 's:vendorfmt dev-build:dev-build:' \ - -e '/^GIT.*?=/d' \ - -i "src/${EGO_PN}/GNUmakefile" || die -} - -src_compile() { - # The dev target sets causes build.sh to set appropriate XC_OS - # and XC_ARCH, and skips generation of an unused zip file, - # avoiding a dependency on app-arch/zip. - GOPATH="${S}" \ - GOBIN="${S}/bin" \ - GIT_DESCRIBE="v${PV}" \ - GIT_DIRTY="" \ - GIT_COMMIT="${GIT_COMMIT}" \ - emake -C "src/${EGO_PN}" dev-build -} - -src_install() { - local x - - dobin bin/consul - - keepdir /etc/consul.d - insinto /etc/consul.d - doins "${FILESDIR}/"*.json.example - - for x in /var/{lib,log}/${PN}; do - keepdir "${x}" - fowners consul:consul "${x}" - done - - newinitd "${FILESDIR}/consul.initd" "${PN}" - newconfd "${FILESDIR}/consul.confd" "${PN}" - insinto /etc/logrotate.d - newins "${FILESDIR}/${PN}.logrotated" "${PN}" - systemd_dounit "${FILESDIR}/consul.service" -} diff --git a/dev-python/atomicwrites/atomicwrites-1.3.0.ebuild b/dev-python/atomicwrites/atomicwrites-1.3.0.ebuild index 927489ca20b9..714f4693765f 100644 --- a/dev-python/atomicwrites/atomicwrites-1.3.0.ebuild +++ b/dev-python/atomicwrites/atomicwrites-1.3.0.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( pypy3 python{2_7,3_{6,7,8}} ) +PYTHON_COMPAT=( pypy3 python{2_7,3_{6,7,8,9}} ) inherit distutils-r1 @@ -14,7 +14,12 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 sparc x86 ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +BDEPEND=" + test? ( + $(python_gen_cond_dep ' + dev-python/mock[${PYTHON_USEDEP}] + ' -2) + )" distutils_enable_tests pytest distutils_enable_sphinx docs \ diff --git a/dev-python/attrs/attrs-19.3.0.ebuild b/dev-python/attrs/attrs-19.3.0.ebuild index 31db11a90a1b..c70e9dc60661 100644 --- a/dev-python/attrs/attrs-19.3.0.ebuild +++ b/dev-python/attrs/attrs-19.3.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 ) inherit distutils-r1 diff --git a/dev-python/hypothesis/hypothesis-4.57.1.ebuild b/dev-python/hypothesis/hypothesis-4.57.1.ebuild index b35cbaa84735..4cbbdf0115b1 100644 --- a/dev-python/hypothesis/hypothesis-4.57.1.ebuild +++ b/dev-python/hypothesis/hypothesis-4.57.1.ebuild @@ -4,7 +4,7 @@ EAPI=7 DISTUTILS_USE_SETUPTOOLS=rdepend -PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 ) PYTHON_REQ_USE="threads(+),sqlite" inherit distutils-r1 eutils @@ -40,6 +40,9 @@ src_prepare() { # avoid pytest-xdist dep for one test sed -i -e 's:test_prints_statistics_given_option_under_xdist:_&:' \ tests/pytest/test_statistics.py || die + # broken on py3.9, the code is too awful to debug + rm tests/py3/test_lookup.py || die + distutils-r1_src_prepare } diff --git a/dev-python/hypothesis/hypothesis-5.15.1.ebuild b/dev-python/hypothesis/hypothesis-5.15.1.ebuild index db5d42767265..1671594bdb5a 100644 --- a/dev-python/hypothesis/hypothesis-5.15.1.ebuild +++ b/dev-python/hypothesis/hypothesis-5.15.1.ebuild @@ -4,7 +4,7 @@ EAPI=7 DISTUTILS_USE_SETUPTOOLS=rdepend -PYTHON_COMPAT=( python3_{6,7,8} pypy3 ) +PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 ) PYTHON_REQ_USE="threads(+),sqlite" inherit distutils-r1 eutils diff --git a/dev-python/mock/mock-3.0.5-r1.ebuild b/dev-python/mock/mock-3.0.5-r1.ebuild index 105b0eb75595..93258859435b 100644 --- a/dev-python/mock/mock-3.0.5-r1.ebuild +++ b/dev-python/mock/mock-3.0.5-r1.ebuild @@ -3,7 +3,7 @@ EAPI=6 -PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 ) inherit distutils-r1 diff --git a/dev-python/more-itertools/more-itertools-5.0.0.ebuild b/dev-python/more-itertools/more-itertools-5.0.0.ebuild index 0c2400ec8f8c..fde93fb6d49f 100644 --- a/dev-python/more-itertools/more-itertools-5.0.0.ebuild +++ b/dev-python/more-itertools/more-itertools-5.0.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python{2_7,3_{6,7,8}} pypy3 ) +PYTHON_COMPAT=( python{2_7,3_{6,7,8,9}} pypy3 ) inherit distutils-r1 diff --git a/dev-python/namespace-zope/namespace-zope-1.ebuild b/dev-python/namespace-zope/namespace-zope-1.ebuild index 30545aae674f..241014284a1f 100644 --- a/dev-python/namespace-zope/namespace-zope-1.ebuild +++ b/dev-python/namespace-zope/namespace-zope-1.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -PYTHON_COMPAT=( pypy3 python{2_7,3_{6,7,8}} ) +PYTHON_COMPAT=( pypy3 python{2_7,3_{6,7,8,9}} ) inherit python-r1 DESCRIPTION="Namespace package declaration for zope" diff --git a/dev-python/packaging/packaging-20.4.ebuild b/dev-python/packaging/packaging-20.4.ebuild index f43efba6c98e..37353d3203ec 100644 --- a/dev-python/packaging/packaging-20.4.ebuild +++ b/dev-python/packaging/packaging-20.4.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 ) inherit distutils-r1 diff --git a/dev-python/pexpect/pexpect-4.8.0.ebuild b/dev-python/pexpect/pexpect-4.8.0.ebuild index 076cdb78ac2c..ecae148b976a 100644 --- a/dev-python/pexpect/pexpect-4.8.0.ebuild +++ b/dev-python/pexpect/pexpect-4.8.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 ) PYTHON_REQ_USE="threads(+)" inherit distutils-r1 diff --git a/dev-python/pluggy/pluggy-0.13.1.ebuild b/dev-python/pluggy/pluggy-0.13.1.ebuild index a07bab9bd9f4..f0141a9595e6 100644 --- a/dev-python/pluggy/pluggy-0.13.1.ebuild +++ b/dev-python/pluggy/pluggy-0.13.1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python{2_7,3_{6,7,8}} pypy3 ) +PYTHON_COMPAT=( python{2_7,3_{6,7,8,9}} pypy3 ) inherit distutils-r1 diff --git a/dev-python/pretend/pretend-1.0.9.ebuild b/dev-python/pretend/pretend-1.0.9.ebuild index b77d440fcd17..bc29e4a37109 100644 --- a/dev-python/pretend/pretend-1.0.9.ebuild +++ b/dev-python/pretend/pretend-1.0.9.ebuild @@ -3,7 +3,7 @@ EAPI=6 -PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 ) inherit distutils-r1 diff --git a/dev-python/ptyprocess/ptyprocess-0.6.0.ebuild b/dev-python/ptyprocess/ptyprocess-0.6.0.ebuild index f826f64917fe..1642dd8e28bc 100644 --- a/dev-python/ptyprocess/ptyprocess-0.6.0.ebuild +++ b/dev-python/ptyprocess/ptyprocess-0.6.0.ebuild @@ -4,7 +4,7 @@ EAPI=7 DISTUTILS_USE_SETUPTOOLS=no -PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 ) inherit distutils-r1 diff --git a/dev-python/py/py-1.8.0.ebuild b/dev-python/py/py-1.8.0.ebuild index 1b8d7a669758..f9c73970d315 100644 --- a/dev-python/py/py-1.8.0.ebuild +++ b/dev-python/py/py-1.8.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 ) inherit distutils-r1 @@ -39,6 +39,13 @@ python_prepare_all() { sed -i -e 's:test_syntaxerror_rerepresentation:_&:' \ -e 's:test_comments:_&:' \ testing/code/test_source.py || die + # broken on py3.9, this package is just dead + sed -i -e 's:test_excinfo_\(repr\|set\):_&:' \ + -e 's:test_format_excinfo:_&:' \ + -e 's:test_excinfo_str:_&:' \ + testing/code/test_excinfo.py || die + sed -i -e 's:test_getfslineno:_&:' \ + testing/code/test_source.py || die } python_compile_all() { diff --git a/dev-python/pytest/pytest-4.6.10.ebuild b/dev-python/pytest/pytest-4.6.10.ebuild index ebd5ee838156..f2ba4fb76432 100644 --- a/dev-python/pytest/pytest-4.6.10.ebuild +++ b/dev-python/pytest/pytest-4.6.10.ebuild @@ -4,7 +4,7 @@ EAPI=7 DISTUTILS_USE_SETUPTOOLS=rdepend -PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 ) inherit distutils-r1 @@ -27,8 +27,9 @@ RDEPEND=" >=dev-python/atomicwrites-1.0[${PYTHON_USEDEP}] >=dev-python/attrs-17.4.0[${PYTHON_USEDEP}] >=dev-python/more-itertools-4.0.0[${PYTHON_USEDEP}] - $(python_gen_cond_dep 'dev-python/importlib_metadata[${PYTHON_USEDEP}]' \ - -2 python3_{5,6,7} pypy3) + $(python_gen_cond_dep ' + dev-python/importlib_metadata[${PYTHON_USEDEP}] + ' -2 python3_{5,6,7} pypy3) $(python_gen_cond_dep ' dev-python/pathlib2[${PYTHON_USEDEP}] dev-python/funcsigs[${PYTHON_USEDEP}] @@ -44,17 +45,19 @@ RDEPEND=" DEPEND=" test? ( ${RDEPEND} - dev-python/argcomplete[${PYTHON_USEDEP}] - >=dev-python/hypothesis-3.56[${PYTHON_USEDEP}] - dev-python/nose[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/argcomplete[${PYTHON_USEDEP}] + >=dev-python/hypothesis-3.56[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + dev-python/pexpect[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + !!dev-python/flaky + !!dev-python/pytest-aiohttp + !!dev-python/pytest-asyncio + !!dev-python/pytest-django + ' python2_7 python3_{6,7,8} pypy3) $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' -2) - dev-python/pexpect[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] - !!dev-python/flaky - !!dev-python/pytest-aiohttp - !!dev-python/pytest-asyncio - !!dev-python/pytest-django )" PATCHES=( @@ -72,6 +75,11 @@ python_prepare_all() { } python_test() { + if [[ ${EPYTHON} == python3.9 ]]; then + einfo "Skipping py3.9 due to unported deps" + return + fi + distutils_install_for_testing # In v4.1.1, pytest started being picky about its own verbosity options. diff --git a/dev-python/pytest/pytest-5.4.2.ebuild b/dev-python/pytest/pytest-5.4.2.ebuild index 62074a5c20e2..c53483cbfc67 100644 --- a/dev-python/pytest/pytest-5.4.2.ebuild +++ b/dev-python/pytest/pytest-5.4.2.ebuild @@ -4,7 +4,7 @@ EAPI=7 DISTUTILS_USE_SETUPTOOLS=rdepend -PYTHON_COMPAT=( python3_{6,7,8} pypy3 ) +PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 ) inherit distutils-r1 @@ -25,7 +25,9 @@ PY_VER="1.5.0" # support, which only came in py3.6. RDEPEND=" >=dev-python/attrs-17.4.0[${PYTHON_USEDEP}] - dev-python/importlib_metadata[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/importlib_metadata[${PYTHON_USEDEP}] + ' python3_{6,7} pypy3) >=dev-python/more-itertools-4.0.0[${PYTHON_USEDEP}] dev-python/packaging[${PYTHON_USEDEP}] >=dev-python/pluggy-0.12[${PYTHON_USEDEP}] @@ -37,12 +39,14 @@ RDEPEND=" # flake cause a number of tests to fail DEPEND="${RDEPEND} test? ( - >=dev-python/hypothesis-3.56[${PYTHON_USEDEP}] - dev-python/nose[${PYTHON_USEDEP}] - dev-python/mock[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] - dev-python/xmlschema[${PYTHON_USEDEP}] - !!dev-python/flaky + $(python_gen_cond_dep ' + >=dev-python/hypothesis-3.56[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/xmlschema[${PYTHON_USEDEP}] + !!dev-python/flaky + ' python2_7 python3_{6,7,8} pypy3) )" PATCHES=( @@ -61,6 +65,11 @@ python_prepare_all() { } python_test() { + if [[ ${EPYTHON} == python3.9 ]]; then + einfo "Skipping py3.9 due to unported deps" + return + fi + distutils_install_for_testing "${EPYTHON}" -m pytest -vv --lsof -rfsxX \ diff --git a/dev-python/setuptools_scm/setuptools_scm-3.5.0.ebuild b/dev-python/setuptools_scm/setuptools_scm-3.5.0.ebuild index 16f8f1a5e59b..d433cce41592 100644 --- a/dev-python/setuptools_scm/setuptools_scm-3.5.0.ebuild +++ b/dev-python/setuptools_scm/setuptools_scm-3.5.0.ebuild @@ -4,7 +4,7 @@ EAPI=7 DISTUTILS_USE_SETUPTOOLS=rdepend -PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 ) inherit distutils-r1 diff --git a/dev-python/six/six-1.15.0.ebuild b/dev-python/six/six-1.15.0.ebuild index fce9c6eaf047..cd8f4891597e 100644 --- a/dev-python/six/six-1.15.0.ebuild +++ b/dev-python/six/six-1.15.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 ) inherit distutils-r1 diff --git a/dev-python/sortedcontainers/sortedcontainers-2.1.0.ebuild b/dev-python/sortedcontainers/sortedcontainers-2.1.0.ebuild index 93e13cf87360..ced6f85b6bc5 100644 --- a/dev-python/sortedcontainers/sortedcontainers-2.1.0.ebuild +++ b/dev-python/sortedcontainers/sortedcontainers-2.1.0.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 ) inherit distutils-r1 diff --git a/dev-python/toml/files/toml-0.10.1-skip-numpy.patch b/dev-python/toml/files/toml-0.10.1-skip-numpy.patch new file mode 100644 index 000000000000..5c6808d2daf4 --- /dev/null +++ b/dev-python/toml/files/toml-0.10.1-skip-numpy.patch @@ -0,0 +1,37 @@ +From 93901215b45db2ab9d50987ac109c29acbe34600 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Mon, 25 May 2020 16:38:17 +0200 +Subject: [PATCH] Skip numpy tests when numpy is not available + +Make it possible to successfully run tests without numpy installed. +This package is becoming quite hard profile, and being able to test it +without building numpy first would be a nice feature. +--- + tests/test_api.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tests/test_api.py b/tests/test_api.py +index dd12eb3..67bcd88 100644 +--- a/tests/test_api.py ++++ b/tests/test_api.py +@@ -103,7 +103,7 @@ def test_array_sep(): + + + def test_numpy_floats(): +- import numpy as np ++ np = pytest.importorskip('numpy') + + encoder = toml.TomlNumpyEncoder() + d = {'a': np.array([1, .3], dtype=np.float64)} +@@ -120,7 +120,7 @@ def test_numpy_floats(): + + + def test_numpy_ints(): +- import numpy as np ++ np = pytest.importorskip('numpy') + + encoder = toml.TomlNumpyEncoder() + d = {'a': np.array([1, 3], dtype=np.int64)} +-- +2.26.2 + diff --git a/dev-python/toml/toml-0.10.1.ebuild b/dev-python/toml/toml-0.10.1.ebuild index 2dc1660a0cae..02c4445df242 100644 --- a/dev-python/toml/toml-0.10.1.ebuild +++ b/dev-python/toml/toml-0.10.1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python{2_7,3_{6,7,8}} pypy3 ) +PYTHON_COMPAT=( python{2_7,3_{6,7,8,9}} pypy3 ) inherit distutils-r1 @@ -20,9 +20,16 @@ SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}] - test? ( $(python_gen_cond_dep 'dev-python/numpy[${PYTHON_USEDEP}]' 'python3*') )" + test? ( + $(python_gen_cond_dep ' + dev-python/numpy[${PYTHON_USEDEP}] + ' python3_{6,7,8}) + )" DOCS=( README.rst ) +PATCHES=( + "${FILESDIR}"/toml-0.10.1-skip-numpy.patch +) distutils_enable_tests pytest diff --git a/dev-python/wcwidth/wcwidth-0.1.9.ebuild b/dev-python/wcwidth/wcwidth-0.1.9.ebuild index b4fe043cedd8..a39f60c13cfe 100644 --- a/dev-python/wcwidth/wcwidth-0.1.9.ebuild +++ b/dev-python/wcwidth/wcwidth-0.1.9.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 ) inherit distutils-r1 diff --git a/dev-python/zope-event/zope-event-4.4.ebuild b/dev-python/zope-event/zope-event-4.4.ebuild index fa29e97fc941..e96a0587ae64 100644 --- a/dev-python/zope-event/zope-event-4.4.ebuild +++ b/dev-python/zope-event/zope-event-4.4.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 ) inherit distutils-r1 @@ -10,7 +10,8 @@ MY_PN=${PN/-/.} MY_P=${MY_PN}-${PV} DESCRIPTION="Event publishing / dispatch, used by Zope Component Architecture" -HOMEPAGE="https://github.com/zopefoundation/zope.event http://docs.zope.org/zope.event/" +HOMEPAGE="https://github.com/zopefoundation/zope.event + https://docs.zope.org/zope.event/" SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" LICENSE="ZPL" diff --git a/dev-python/zope-interface/zope-interface-5.1.0.ebuild b/dev-python/zope-interface/zope-interface-5.1.0.ebuild index 62422c2df659..2e38b0fd617e 100644 --- a/dev-python/zope-interface/zope-interface-5.1.0.ebuild +++ b/dev-python/zope-interface/zope-interface-5.1.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 ) inherit distutils-r1 flag-o-matic diff --git a/dev-python/zope-testing/zope-testing-4.7-r1.ebuild b/dev-python/zope-testing/zope-testing-4.7-r1.ebuild index b2a51a95fde9..3a8a22c97b9b 100644 --- a/dev-python/zope-testing/zope-testing-4.7-r1.ebuild +++ b/dev-python/zope-testing/zope-testing-4.7-r1.ebuild @@ -3,7 +3,7 @@ EAPI=6 -PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 ) inherit distutils-r1 MY_PN=${PN/-/.} diff --git a/net-misc/grive/Manifest b/net-misc/grive/Manifest index e3107285d5ce..aa8aae7a56bb 100644 --- a/net-misc/grive/Manifest +++ b/net-misc/grive/Manifest @@ -1 +1,2 @@ +DIST grive-0.5.1.tar.gz 169929 BLAKE2B a8f8fc9f3bcf019b7b713178f6a39ca6c62f6531054329d4ff8ac6fbfdfa5579f9e51aa8f9c493b90005194c3ab77934575e541c0986404a32e807c5c87c4cfd SHA512 609837fc93ad78d143dcb4d1f558743d413c887fec2e9aaac81edd58549b812db859aab5ce7f664f06564779cff4bae32d43529e47fcc36640f1a9b52c5b5888 DIST grive-0.5.1_pre20171005.tar.gz 164450 BLAKE2B e8fde261ec419c1284575032ce326de4953ecf7b4824a70aec07b41f6013b4d26532ba0eae3897c910bd5bb51949dcc13fcb699013557f24c38c75fb251e868c SHA512 d1f2b3bb5206aef3afeebd48f198a287f97a016f5da00f954fbdcf366ea7178c0e2c6e48250cdb0869bc850380ed09790b5bbdc1ecf3cdd7b484fcf9b85c793c diff --git a/net-misc/grive/grive-0.5.1.ebuild b/net-misc/grive/grive-0.5.1.ebuild new file mode 100644 index 000000000000..04bfdf1b8e05 --- /dev/null +++ b/net-misc/grive/grive-0.5.1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils + +if [[ ${PV} = *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/vitalif/${PN}2.git" +else + inherit vcs-snapshot + SRC_URI="https://github.com/vitalif/${PN}2/archive/v${PV}.tar.gz -> ${P}.tar.gz" +fi + +DESCRIPTION="An open source Linux client for Google Drive" +HOMEPAGE="https://github.com/vitalif/grive2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + dev-libs/boost:= + dev-libs/expat + >=dev-libs/json-c-0.11-r1:= + dev-libs/libgcrypt:0= + dev-libs/yajl + || ( net-misc/curl[curl_ssl_openssl] net-misc/curl[curl_ssl_gnutls] ) + sys-libs/binutils-libs:0= + sys-libs/glibc +" +DEPEND="${RDEPEND}" diff --git a/profiles/arch/powerpc/use.mask b/profiles/arch/powerpc/use.mask index c5c30c2fd9f1..f4c5b7743dfb 100644 --- a/profiles/arch/powerpc/use.mask +++ b/profiles/arch/powerpc/use.mask @@ -4,6 +4,10 @@ # PPC Specific use flags # +# Michał Górny <mgorny@gentoo.org> (2020-05-25) +# Unmask once PPC* is FINALLY done with bug #703174. +python_targets_python3_9 + # David Seifert <soap@gentoo.org (2020-05-17) # Mono is hopelessly broken on ppc32 mono diff --git a/profiles/arch/sparc/use.mask b/profiles/arch/sparc/use.mask index b6c50e3dcc58..01f000846f7a 100644 --- a/profiles/arch/sparc/use.mask +++ b/profiles/arch/sparc/use.mask @@ -4,6 +4,10 @@ # Unmask the flag which corresponds to ARCH. -sparc +# Michał Górny <mgorny@gentoo.org> (2020-05-25) +# Unmask once SPARC is FINALLY done with bug #707350. +python_targets_python3_9 + # James Le Cuirot <chewi@gentoo.org> (2020-05-10) # media-libs/allegro is not keyworded. allegro diff --git a/sys-fs/udev/Manifest b/sys-fs/udev/Manifest index d05d70330be8..0e4199a71783 100644 --- a/sys-fs/udev/Manifest +++ b/sys-fs/udev/Manifest @@ -1,3 +1,4 @@ DIST systemd-242.tar.gz 7831435 BLAKE2B 288e65d0a8e133ef5885689eb16118a83d93c730e342da63115cea0892fc999104c3a4856c83f3e7ef909ba2f3311146730b05ee02d84cc0400851ccbdcd54cd SHA512 578f68a3c8f2d454198fc04ff8d943abcfb390531d57f9603d185857f7afa7f4dc641dafecf49ce50fe22f5837b252b181400891e8efd4459fd4f69bb4283cb4 DIST systemd-243.tar.gz 8242522 BLAKE2B 89e3ebbea5a99061329f7c78220a66c1e075d5ba90dfdf5ee8d0d9b762ef4600dc82d8ca2054632e5e343b6272cd8046c92f7f99dcfa8287c5ef2b42fb96d4cb SHA512 56b52a297aa5ac04d9667eb3afb1598725b197de73ff72baa1aabbc2844e36fba7b7fccdf6d214ae8b5b926616b2b7e15772763aaa80ec938d74333ff9c8673e DIST systemd-245.tar.gz 8993479 BLAKE2B be0b1fca5ba8585978f570868bc9135c1fee78ea64dcdf8b1a3419e856a83da90104ed2f86e5f3e5b0b6f29d4b34f603bfe1e4cbc61ccf71bedce547db62ff35 SHA512 1b80d0e02472dfc4197f11dab4f56cf90e8a6e105ce19f837cb11335b6d8577ed49031dad94cdb41aa9bdc06ec8eec62c8e9246272b83935e7bb9dcd3cd8c012 +DIST systemd-stable-245.5.tar.gz 9020836 BLAKE2B 7753eecceffa86c9208c3e71df2037b58b445f9090b73c6ff499b4170b94488a1fd1cabcd17cbb98506a692875a3eef07a40a54d23e09c331a01319f8d03d13d SHA512 47de4a59980643002f325c499eeb4dd76fa9f1d1267686e7564f103690487bf85974590d7cb3e3641409e5bfba567fe2a66efa80320e7e8adc48af4461e2e172 diff --git a/sys-fs/udev/udev-245.5.ebuild b/sys-fs/udev/udev-245.5.ebuild new file mode 100644 index 000000000000..f8ba208e8aef --- /dev/null +++ b/sys-fs/udev/udev-245.5.ebuild @@ -0,0 +1,242 @@ +# Copyright 2003-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit bash-completion-r1 linux-info meson ninja-utils multilib-minimal toolchain-funcs udev usr-ldscript + +if [[ ${PV} = 9999* ]]; then + EGIT_REPO_URI="https://github.com/systemd/systemd.git" + inherit git-r3 +else + if [[ ${PV} == *.* ]]; then + MY_PN=systemd-stable + else + MY_PN=systemd + fi + MY_PV=${PV/_/-} + MY_P=${MY_PN}-${MY_PV} + S=${WORKDIR}/${MY_P} + SRC_URI="https://github.com/systemd/${MY_PN}/archive/v${MY_PV}/${MY_P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +fi + +DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)" +HOMEPAGE="https://www.freedesktop.org/wiki/Software/systemd" + +LICENSE="LGPL-2.1 MIT GPL-2" +SLOT="0" +IUSE="acl +kmod selinux static-libs" + +RESTRICT="test" + +BDEPEND=" + dev-util/gperf + >=dev-util/intltool-0.50 + >=sys-apps/coreutils-8.16 + virtual/pkgconfig[${MULTILIB_USEDEP}] + app-text/docbook-xml-dtd:4.2 + app-text/docbook-xml-dtd:4.5 + app-text/docbook-xsl-stylesheets + dev-libs/libxslt +" +COMMON_DEPEND=" + >=sys-apps/util-linux-2.30[${MULTILIB_USEDEP}] + sys-libs/libcap:0=[${MULTILIB_USEDEP}] + acl? ( sys-apps/acl ) + kmod? ( >=sys-apps/kmod-15 ) + selinux? ( >=sys-libs/libselinux-2.1.9 ) +" +DEPEND="${COMMON_DEPEND} + >=sys-kernel/linux-headers-3.9 +" +RDEPEND="${COMMON_DEPEND} + acct-group/kmem + acct-group/tty + acct-group/audio + acct-group/cdrom + acct-group/dialout + acct-group/disk + acct-group/input + acct-group/kvm + acct-group/lp + acct-group/render + acct-group/tape + acct-group/video + !sys-apps/gentoo-systemd-integration + !sys-apps/systemd +" +PDEPEND=">=sys-apps/hwids-20140304[udev] + >=sys-fs/udev-init-scripts-26" + +pkg_setup() { + if [[ ${MERGE_TYPE} != buildonly ]]; then + CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2 ~SIGNALFD ~EPOLL ~FHANDLE ~NET ~!FW_LOADER_USER_HELPER ~UNIX" + linux-info_pkg_setup + + # CONFIG_FHANDLE was introduced by 2.6.39 + local MINKV=2.6.39 + + if kernel_is -lt ${MINKV//./ }; then + eerror "Your running kernel is too old to run this version of ${P}" + eerror "You need to upgrade kernel at least to ${MINKV}" + fi + + if kernel_is -lt 3 7; then + ewarn "Your running kernel is too old to have firmware loader and" + ewarn "this version of ${P} doesn't have userspace firmware loader" + ewarn "If you need firmware support, you need to upgrade kernel at least to 3.7" + fi + fi +} + +src_prepare() { + cat <<-EOF > "${T}"/40-gentoo.rules + # Gentoo specific floppy and usb groups + ACTION=="add", SUBSYSTEM=="block", KERNEL=="fd[0-9]", GROUP="floppy" + ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="usb" + EOF + + if [[ -d "${WORKDIR}/patches" ]]; then + eapply "${WORKDIR}/patches" + fi + + local PATCHES=( + ) + + default +} + +meson_multilib_native_use() { + if multilib_is_native_abi && use "$1"; then + echo true + else + echo false + fi +} + +multilib_src_configure() { + local emesonargs=( + -Dacl=$(meson_multilib_native_use acl) + -Defi=false + -Dkmod=$(meson_multilib_native_use kmod) + -Dselinux=$(meson_multilib_native_use selinux) + -Dlink-udev-shared=false + -Dsplit-usr=true + -Drootlibdir="${EPREFIX}/usr/$(get_libdir)" + -Dstatic-libudev=$(usex static-libs true false) + + # Prevent automagic deps + -Dgcrypt=false + -Dlibcryptsetup=false + -Dlibidn=false + -Dlibidn2=false + -Dlibiptc=false + -Dseccomp=false + -Dlz4=false + -Dxz=false + ) + meson_src_configure +} + +src_configure() { + # Prevent conflicts with i686 cross toolchain, bug 559726 + tc-export AR CC NM OBJCOPY RANLIB + multilib-minimal_src_configure +} + +multilib_src_compile() { + # meson creates this link + local libudev=$(readlink src/udev/libudev.so.1) + + local targets=( + src/udev/${libudev} + ) + if use static-libs; then + targets+=( src/udev/libudev.a ) + fi + if multilib_is_native_abi; then + targets+=( + systemd-udevd + udevadm + src/udev/ata_id + src/udev/cdrom_id + src/udev/mtd_probe + src/udev/scsi_id + src/udev/v4l_id + man/udev.conf.5 + man/systemd.link.5 + man/hwdb.7 + man/udev.7 + man/systemd-udevd.service.8 + man/udevadm.8 + ) + fi + eninja "${targets[@]}" +} + +multilib_src_install() { + local libudev=$(readlink src/udev/libudev.so.1) + + dolib.so src/udev/{${libudev},libudev.so.1,libudev.so} + gen_usr_ldscript -a udev + use static-libs && dolib.a src/udev/libudev.a + + insinto "/usr/$(get_libdir)/pkgconfig" + doins src/libudev/libudev.pc + + if multilib_is_native_abi; then + into / + dobin udevadm + + exeinto /lib/systemd + doexe systemd-udevd + + exeinto /lib/udev + doexe src/udev/{ata_id,cdrom_id,mtd_probe,scsi_id,v4l_id} + + rm rules.d/99-systemd.rules || die + insinto /lib/udev/rules.d + doins rules.d/*.rules + + insinto /usr/share/pkgconfig + doins src/udev/udev.pc + + mv man/systemd-udevd.service.8 man/systemd-udevd.8 || die + rm man/systemd-udevd-{control,kernel}.socket.8 || die + doman man/*.[0-9] + fi +} + +multilib_src_install_all() { + doheader src/libudev/libudev.h + + insinto /etc/udev + doins src/udev/udev.conf + keepdir /etc/udev/{hwdb.d,rules.d} + + insinto /lib/systemd/network + doins network/99-default.link + + # see src_prepare() for content of 40-gentoo.rules + insinto /lib/udev/rules.d + doins "${T}"/40-gentoo.rules + doins "${S}"/rules.d/*.rules + + dobashcomp shell-completion/bash/udevadm + + insinto /usr/share/zsh/site-functions + doins shell-completion/zsh/_udevadm + + einstalldocs +} + +pkg_postinst() { + # Update hwdb database in case the format is changed by udev version. + if has_version 'sys-apps/hwids[udev]'; then + udevadm hwdb --update --root="${ROOT}" + # Only reload when we are not upgrading to avoid potential race w/ incompatible hwdb.bin and the running udevd + # https://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda + [[ -z ${REPLACING_VERSIONS} ]] && udev_reload + fi +} diff --git a/sys-fs/udev/udev-9999.ebuild b/sys-fs/udev/udev-9999.ebuild index 4cdaa936a654..f8ba208e8aef 100644 --- a/sys-fs/udev/udev-9999.ebuild +++ b/sys-fs/udev/udev-9999.ebuild @@ -9,10 +9,15 @@ if [[ ${PV} = 9999* ]]; then EGIT_REPO_URI="https://github.com/systemd/systemd.git" inherit git-r3 else + if [[ ${PV} == *.* ]]; then + MY_PN=systemd-stable + else + MY_PN=systemd + fi MY_PV=${PV/_/-} - MY_P=systemd-${MY_PV} + MY_P=${MY_PN}-${MY_PV} S=${WORKDIR}/${MY_P} - SRC_URI="https://github.com/systemd/systemd/archive/v${MY_PV}/${MY_P}.tar.gz" + SRC_URI="https://github.com/systemd/${MY_PN}/archive/v${MY_PV}/${MY_P}.tar.gz" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" fi |