Bug#1018942: zookeeper: Can attempt to access the network during build

Simon Chopin schopin at ubuntu.com
Fri Sep 2 10:50:55 BST 2022


Package: zookeeper
Severity: serious
Tags: patch ftbfs
Justification: fails to build from source (but built successfully in the past)
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu kinetic ubuntu-patch
X-Debbugs-Cc: schopin at ubuntu.com

We observed a FTBFS on amd64 in Ubuntu due to a DNS resolution error on
google.com, see https://bugs.launchpad.net/ubuntu/+source/zookeeper/+bug/1988541
for more details.

I don't exactly know why this hasn't happened during the Debian build,
but in any case, you'll find attached a debdiff to address the issue.

Cheers,
Simon

-- System Information:
Debian Release: bookworm/sid
  APT prefers jammy-updates
  APT policy: (500, 'jammy-updates'), (500, 'jammy-security'), (500, 'jammy'), (100, 'jammy-backports'), (50, 'jammy-proposed')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.15.0-46-lowlatency (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_USER, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-------------- next part --------------
diff -Nru zookeeper-3.8.0/debian/patches/30-skip-tests-network.patch zookeeper-3.8.0/debian/patches/30-skip-tests-network.patch
--- zookeeper-3.8.0/debian/patches/30-skip-tests-network.patch	2022-06-27 09:11:31.000000000 +0200
+++ zookeeper-3.8.0/debian/patches/30-skip-tests-network.patch	2022-09-02 11:10:51.000000000 +0200
@@ -456,3 +456,21 @@
      @Test
      public void testVersionOfDynamicFilename() throws Exception {
          final int SERVER_COUNT = 5;
+--- a/zookeeper-server/src/test/java/org/apache/zookeeper/server/quorum/MultipleAddressesTest.java
++++ b/zookeeper-server/src/test/java/org/apache/zookeeper/server/quorum/MultipleAddressesTest.java
+@@ -37,6 +37,7 @@
+ import java.util.stream.IntStream;
+ import org.apache.commons.collections4.CollectionUtils;
+ import org.apache.zookeeper.PortAssignment;
++import org.junit.jupiter.api.Disabled;
+ import org.junit.jupiter.api.Test;
+ 
+ public class MultipleAddressesTest {
+@@ -135,6 +136,7 @@
+         assertEquals(unreachableAddress, actualReturnedAddress);
+     }
+ 
++    @Disabled("no network on debian buildds")
+     @Test
+     public void testRecreateSocketAddresses() throws UnknownHostException {
+         List<InetSocketAddress> searchedAddresses = Arrays.stream(InetAddress.getAllByName("google.com"))


More information about the pkg-java-maintainers mailing list