From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) by sourceware.org (Postfix) with ESMTPS id BBD663858D3C for ; Mon, 8 Nov 2021 19:51:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BBD663858D3C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=denx.de Received: from ktm (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 9D159831C9; Mon, 8 Nov 2021 20:51:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1636401086; bh=T3hJNZYYaruke7pNUY8CfobTTLjIsdpxHcTHzVKb+oA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=sJe0Nsjiiqx3WJLaY01dlbQ9GluuNNY2V3Nzv9oL6D3ON2bQ2YQesnx88owLJ2Ju3 GNCyuOQIHQa210oq/BtAsYTUdUm11nmSCVO033PgobuOSOJ67qEgBVjbcN9ewpgYDV 3EIN8c/h7z/W4BFb7SA42jlftwTxtFGK1LCWk31TiQvSGY8TTv0jrEQXRjkrLQlnn8 FktTKtVO8WMCL2U82yRAN35y/dfnL21fGfyNdXmnwr/jKgfudR94/34eFlcXHC8LN7 LDtH3Uw3itMpZobYmKb6sF3BCkpz3TGyvf4B3h0E+NOodeij5wizfy7WAp1s8LuIts cLYqhaJhmLJog== Date: Mon, 8 Nov 2021 20:51:25 +0100 From: Lukasz Majewski To: Joseph Myers Cc: Florian Weimer , libc-alpha , Andreas Schwab Subject: Re: [PATCH] ci: Check for necessary Debian packages when running build-many-glibcs.py Message-ID: <20211108205125.3ac2d84b@ktm> In-Reply-To: References: <20211108165255.15600-1-lukma@denx.de> <20211108191459.597b9e60@ktm> Organization: denx.de X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/KRO8Su6g1XfR_OrNOc6Smt6"; protocol="application/pgp-signature" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_BARRACUDACENTRAL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2021 19:51:29 -0000 --Sig_/KRO8Su6g1XfR_OrNOc6Smt6 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Joseph, > On Mon, 8 Nov 2021, Lukasz Majewski wrote: >=20 > > The 'distro' module is the most elegant (and pythonic) way to get > > the info about running OS. =20 >=20 > Florian's suggestion of checking for specific programs, so staying=20 > completely independent of the running OS and its version and of > whether those programs are provided by the OS or not, seems much > better to me. Ok. >=20 > > > Why is dnsutils needed? =20 >=20 > > File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo > > for res in _socket.getaddrinfo(host, port, family, type, proto, > > flags): socket.gaierror: [Errno -2] Name or service not known =20 >=20 > That doesn't answer my question, since getaddrinfo (implemented using > the C library function of that name, presumably) shouldn't be using > any of the programs in dnsutils "Transitional package for > bind9-dnsutils". "Can do working DNS client lookups from library > code" is not the same as "has certain executables installed that a > user might use from the command line to look things up in the DNS". >=20 > If you want to check for working DNS lookups / network access from > library code, then trying to look up www.gnu.org seems a better > approach than checking for any installed programs. >=20 Sorry, but I cannot follow your question/explanation above. The issue is that - without having dnsutils, when trying to run build-many-glibcs.py the pasted error shows up. After installing dnsutils (on debian 10) the problem on my setup/machine is fixed. Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de --Sig_/KRO8Su6g1XfR_OrNOc6Smt6 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEgAyFJ+N6uu6+XupJAR8vZIA0zr0FAmGJf70ACgkQAR8vZIA0 zr183Qf+PaRSuJf2MtYVKNkr2ZFdx/tAzwUp2sopIc+jzwKKotSa4vFqcAdOqkcb wv1rsIQttSqB+ZbB0VyF98TZUohB5yQ9RUCNAEpzzGJiAbbGgosunREbDKS44cHV 2SArOx48FS6OKScxV0JAiJ37m44Xo67J+FBVRzpAm0ykfdgZhlz98si8Enu/RNkV WvFyL0YOSG5IHkNCz5/aLoGErfTCRT/V+cS4/EM+wRAlesj186WvFgbYmPR30GYz ydskGvROJzCtUxIpeMywatLnVEjmHxpcStGMovaX8iUQi4yXyHb8/f0J3lK1ioIO aP/8yRUYh0kaIg2EjN/K7OwUNiqvkw== =ob9G -----END PGP SIGNATURE----- --Sig_/KRO8Su6g1XfR_OrNOc6Smt6--