diff options
| author | Crucible <crucible@localhost> | 2026-10-10 03:05:02 -0500 |
|---|---|---|
| committer | Crucible <crucible@localhost> | 2026-10-10 03:05:02 -0500 |
| commit | 8d50579e39879dc6ba06d9fa6829f2e9a2c77420 (patch) | |
| tree | 02fb01f1f55d0cf4b5660cb1cc12f2e2fccae010 /dev-python/protobuf | |
| parent | fe1add1bc6351c4b156c993343992fe4de29c61e (diff) | |
| download | srcux-8d50579e39879dc6ba06d9fa6829f2e9a2c77420.tar.gz srcux-8d50579e39879dc6ba06d9fa6829f2e9a2c77420.tar.xz srcux-8d50579e39879dc6ba06d9fa6829f2e9a2c77420.zip | |
Publish srcux candidate 0000000619-20261010-030308
Diffstat (limited to 'dev-python/protobuf')
| -rw-r--r-- | dev-python/protobuf/protobuf-7.35.1.ebuild | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/dev-python/protobuf/protobuf-7.35.1.ebuild b/dev-python/protobuf/protobuf-7.35.1.ebuild index b62aadff19ee..2bd4c0d63cc8 100644 --- a/dev-python/protobuf/protobuf-7.35.1.ebuild +++ b/dev-python/protobuf/protobuf-7.35.1.ebuild @@ -10,7 +10,7 @@ DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{13..14} ) -inherit distutils-r1 pypi +inherit distutils-r1 pypi toolchain-funcs GH_PV=$(ver_cut 2-3) GH_P=${PN}-${GH_PV} @@ -31,7 +31,7 @@ SRC_URI=" LICENSE="BSD" SLOT="0/$(ver_cut 1-3)" -KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~sparc x86" # need protobuf compiler BDEPEND=" @@ -88,6 +88,15 @@ python_test() { ;; esac + if [[ $(tc-get-ptr-size) == 4 ]]; then + EPYTEST_DESELECT+=( + # overflows 32-bit time_t in the test's own precondition check (not in protobuf code) + # https://github.com/protocolbuffers/protobuf/issues/17003 + google/protobuf/internal/well_known_types_test.py::TimeUtilTest::testTimezoneAwareDatetimeConversionWhereTimestampLosesPrecision + google/protobuf/internal/well_known_types_test.py::TimeUtilTest::testTimezoneNaiveDatetimeConversionWhereTimestampLosesPrecision + ) + fi + cp -r "${BUILD_DIR}"/{install,test} || die local -x PATH="${BUILD_DIR}/test${EPREFIX}/usr/bin:${PATH}" cd "${BUILD_DIR}/test$(python_get_sitedir)" || die |
