gentoo/dev-java
Florian Schmaus 314e6c223b
dev-java/protobuf-java: update SRC_URI and fix src_test
The protobuf packages use a shared distfile. However, some packages use
github's release artifacts, e.g.,
https://github.com/protocolbuffers/protobuf/releases/download/v30.2/protobuf-30.2.tar.gz
while protobuf-java used github's archive artifacts, e.g.,
https://github.com/protocolbuffers/protobuf/archive/v${MY_PV}.tar.gz

This can cause a distfile mismatch. If the user has protobuf-30.2.tar.gz
from releases in its DISTDIR and then tries to emerge protobuf-java.

Fix this by switching protobuf-java's SRC_URI to the release artifacts.

Furthermore, fix src_test. The JAVA_TEST_RUN_ONLY array would contain
fully qualified Java class names prefixed by two dots. For example
'..com.example.FooTest' instead of 'com.example.FooTest'. This is caused
by invoking 'find' with ./* instead of *, and the
JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//\//.}" substitution.

Fix this by adjusting the 'find' invocation.

Furthermore, move a 'rm' from src_test to src_prepare, where it
belongs. Having 'rm' in src_test makes it harder to re-execute
subsequent ebuild phases using the 'ebuild' command, e.g., "ebuild
protobuf-java-4.30.2.ebuild test", as the 'rm' would fail because the
file no longer exists.

Also zap CodedInputStreamTest as it requires the TestParameterInjector
library, which is currently not available in ::gentoo.

It seems like the ebuild's src_test could never have succeeded so far.

Finally, drop unused protobuf_ABSL_PROVIDER=package cmake argument and
fix this QA warning. This option is replaced with upstream's
protobuf_LOCAL_DEPENDENCIES_ONLY=ON to prevent automatic dep fetching.

Signed-off-by: Florian Schmaus <flow@gentoo.org>
2025-04-15 12:34:53 +02:00
..
2024-11-22 08:48:35 +01:00
2024-10-17 18:30:23 +03:00
2024-10-17 18:30:24 +03:00
2025-04-01 15:58:01 +02:00
2024-10-17 18:30:26 +03:00
2025-03-29 17:11:28 +03:00
2025-02-25 17:36:01 +01:00
2025-02-25 17:36:01 +01:00
2025-02-25 17:36:01 +01:00
2025-02-25 17:36:02 +01:00
2025-01-06 11:24:12 +01:00
2025-03-29 17:11:28 +03:00
2024-10-17 18:30:32 +03:00
2024-10-17 18:30:33 +03:00
2025-01-06 11:23:46 +01:00
2024-10-17 18:30:34 +03:00
2025-02-06 19:24:23 +01:00
2024-10-17 18:30:42 +03:00
2024-10-17 18:30:42 +03:00
2024-10-17 18:30:43 +03:00
2025-02-06 19:20:03 +01:00
2024-10-17 18:30:44 +03:00
2024-10-17 18:30:45 +03:00
2024-10-17 18:30:47 +03:00
2024-12-30 20:40:54 +01:00
2024-10-17 18:30:49 +03:00
2025-01-19 19:35:18 +02:00
2024-10-17 18:30:50 +03:00
2024-10-17 18:30:51 +03:00
2024-10-17 18:30:52 +03:00
2024-10-17 18:30:54 +03:00
2024-11-09 16:25:41 +10:00
2024-11-26 09:22:29 +01:00
2024-12-30 20:40:52 +01:00
2024-10-17 18:30:59 +03:00
2024-10-17 18:31:04 +03:00
2024-12-15 08:40:47 +01:00
2024-10-17 18:31:05 +03:00
2024-10-12 20:08:34 +03:00
2024-10-17 18:31:07 +03:00
2024-10-17 18:31:11 +03:00
2024-10-17 18:31:12 +03:00
2024-10-27 08:37:57 +01:00
2024-10-17 18:31:15 +03:00
2024-10-17 18:31:17 +03:00
2024-10-17 18:31:17 +03:00
2024-10-17 18:31:18 +03:00
2024-10-19 12:01:02 +02:00
2025-01-15 07:13:41 +01:00
2024-10-12 20:08:42 +03:00
2024-10-17 18:31:20 +03:00
2024-10-17 18:31:20 +03:00
2024-11-25 09:02:30 +01:00
2024-10-19 12:01:03 +02:00
2025-01-15 07:13:41 +01:00
2024-11-24 10:11:32 +01:00
2025-02-10 18:52:31 +01:00
2024-10-17 18:31:26 +03:00
2024-10-17 18:31:26 +03:00
2025-04-03 09:38:18 +02:00
2024-10-17 18:31:28 +03:00
2024-10-17 18:31:28 +03:00
2024-10-17 18:31:29 +03:00
2024-10-17 18:31:29 +03:00
2024-10-17 18:31:35 +03:00
2024-10-17 18:31:35 +03:00
2025-01-15 07:13:41 +01:00
2025-04-02 15:07:07 +02:00
2025-01-10 09:51:10 +01:00
2024-10-17 18:31:39 +03:00
2024-11-22 08:48:35 +01:00
2024-12-30 20:40:53 +01:00
2024-10-17 18:31:43 +03:00
2024-10-17 18:31:44 +03:00
2024-10-17 18:31:45 +03:00
2024-10-17 18:31:46 +03:00
2024-10-17 18:31:47 +03:00
2024-10-17 18:31:47 +03:00
2024-10-17 18:31:48 +03:00
2024-10-17 18:31:48 +03:00
2024-10-17 18:31:48 +03:00
2025-01-26 07:04:41 +01:00
2024-10-17 18:31:50 +03:00
2025-01-26 07:06:05 +01:00
2025-01-25 10:25:51 +01:00
2024-10-17 18:31:57 +03:00
2024-10-17 18:31:59 +03:00
2024-10-17 18:32:00 +03:00
2024-10-17 18:32:00 +03:00
2024-10-17 18:32:02 +03:00
2024-12-30 20:40:53 +01:00
2024-10-17 18:32:04 +03:00
2024-10-17 18:32:04 +03:00
2024-10-17 18:32:04 +03:00
2024-10-17 18:32:05 +03:00
2024-11-15 21:03:56 +01:00
2024-10-17 18:32:05 +03:00