Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED19DC433F5 for ; Thu, 7 Oct 2021 07:46:58 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7F69560F59 for ; Thu, 7 Oct 2021 07:46:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7F69560F59 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=korsgaard.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=buildroot.org Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 5126C841B6; Thu, 7 Oct 2021 07:46:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LHt9aer2CwC5; Thu, 7 Oct 2021 07:46:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id AF27F841BE; Thu, 7 Oct 2021 07:46:56 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 51F0B1BF48B for ; Thu, 7 Oct 2021 07:46:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 4E1EF40983 for ; Thu, 7 Oct 2021 07:46:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WF24E4jAQ_Ej for ; Thu, 7 Oct 2021 07:46:54 +0000 (UTC) Received: from busybox.osuosl.org (busybox.osuosl.org [140.211.167.122]) by smtp4.osuosl.org (Postfix) with ESMTP id 649BC4048C for ; Thu, 7 Oct 2021 07:46:54 +0000 (UTC) Received: by busybox.osuosl.org (Postfix, from userid 4021) id 9DA2393499; Thu, 7 Oct 2021 07:44:16 +0000 (UTC) From: Peter Korsgaard To: buildroot@buildroot.org Date: Thu, 7 Oct 2021 09:45:57 +0200 X-Git-Refname: refs/heads/2021.02.x X-Git-Oldrev: 99557307ae743e09ea4f95ac15d91771dd149442 X-Git-Newrev: 0b13ddf5ca0b323b0a3eed93a64c68508aa5d228 X-Patchwork-Hint: ignore Message-Id: <20211007074416.9DA2393499@busybox.osuosl.org> Subject: [Buildroot] [git commit branch/2021.02.x] package/nmap: add zlib optional dependency X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" commit: https://git.buildroot.net/buildroot/commit/?id=0b13ddf5ca0b323b0a3eed93a64c68508aa5d228 branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2021.02.x zlib is an optional dependency since bump to version 7.60 in commit c4faf1d4d11764da769abdd252dd3925d83378cb and https://github.com/nmap/nmap/commit/0c142333bb356b6ff15fff5c95522c4cfc410a9c. If it is not disabled, nmap will build its own zlib version which can result in the following build failure: /home/giuliobenetti/autobuild/run/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/i686-buildroot-linux-uclibc/9.3.0/../../../../i686-buildroot-linux-uclibc/bin/ld: attempted static link of dynamic object `libz.so.1.2.11' Fixes: - http://autobuild.buildroot.org/results/da9469e24390c94fe74f133152dc320c21872159 - http://autobuild.buildroot.org/results/53034d8dd506bc033dc92343f9a37cd4ac8b2142 Signed-off-by: Fabrice Fontaine Signed-off-by: Arnout Vandecappelle (Essensium/Mind) (cherry picked from commit e991c2cba6f1a350461a91c9646a20ac7d3853b9) Signed-off-by: Peter Korsgaard --- package/nmap/nmap.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/nmap/nmap.mk b/package/nmap/nmap.mk index 13414a56ee..34cf61ff0b 100644 --- a/package/nmap/nmap.mk +++ b/package/nmap/nmap.mk @@ -44,6 +44,13 @@ else NMAP_CONF_OPTS += --without-openssl endif +ifeq ($(BR2_PACKAGE_ZLIB),y) +NMAP_CONF_OPTS += --with-libz="$(STAGING_DIR)/usr" +NMAP_DEPENDENCIES += zlib +else +NMAP_CONF_OPTS += --without-libz +endif + NMAP_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) ifeq ($(BR2_PACKAGE_NMAP_NCAT),y) _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot