Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 158D8139CF2 for ; Mon, 21 Apr 2025 17:53:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.183 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745257989; cv=none; b=kf4Ulv+iZ04y8yB4v9uxLGXSvKVbn8gCXThsbiVqfEm5PvHlvr6QVrs/8UtFTzpUSxlsuPQaksvMt+1Qpu9x5N+/NGD9m6XUmfhOSd284IXRVk1U9cEZ61qftYDkW2yT+rBPI/8bkcDvEUCFJPDB0Xx091oJ9lq3rAlJyDlbwvM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745257989; c=relaxed/simple; bh=p+XdMmnUsRKX8i7RlECjDrwgfSQt+K+GxU/Y5BH2Apw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Z84ceLyYZfkOmER8Ypqb8YmzJfx5pksrQLAjwAtTm+FG+u5+pbk3pB6bbwJ6rYh+CDfjuVPUoxZXDG759iwqH9Wr+rSVxm9CGGXfd1WedlBmiezgutbPbc4hBFG7blbGYvLFYBfW/VaTPcDUlLqi/zWlcTtFZr7pX87WK6glOi8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org; spf=pass smtp.mailfrom=gentoo.org; arc=none smtp.client-ip=140.211.166.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentoo.org Received: from acleverhostname.lan (unknown [IPv6:2603:6011:3f0:6f00::12ac]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: eschwartz@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 0A4DF34301D; Mon, 21 Apr 2025 17:53:06 +0000 (UTC) From: Eli Schwartz To: git@vger.kernel.org Cc: Sam James , Patrick Steinhardt Subject: [PATCH 4/6] meson: add a couple missing networking dependencies Date: Mon, 21 Apr 2025 13:51:48 -0400 Message-ID: <20250421175247.240971-4-eschwartz@gentoo.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250421175247.240971-1-eschwartz@gentoo.org> References: <20250421175247.240971-1-eschwartz@gentoo.org> Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit As evidenced in config.mak.uname and configure.ac, there are various possible scenarios where these libraries are default-enabled in the build, which mainly boils down to: SunOS. -lresolv is simply not the only library that, when it exists, probably needs to be linked to for networking. Check for and add -lnsl -lsocket as well. Signed-off-by: Eli Schwartz --- meson.build | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/meson.build b/meson.build index 8037e536dd..8fad10379a 100644 --- a/meson.build +++ b/meson.build @@ -1080,10 +1080,11 @@ if host_machine.system() == 'windows' networking_dependencies += winsock endif else - libresolv = compiler.find_library('resolv', required: false) - if libresolv.found() - networking_dependencies += libresolv - endif + networking_dependencies += [ + compiler.find_library('nsl', required: false), + compiler.find_library('resolv', required: false), + compiler.find_library('socket', required: false), + ] endif libgit_dependencies += networking_dependencies -- 2.49.0