From patchwork Sun Dec 22 09:17:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Prado X-Patchwork-Id: 1214620 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=e-labworks.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=e-labworks-com.20150623.gappssmtp.com header.i=@e-labworks-com.20150623.gappssmtp.com header.b="xPdMum+R"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47gcMQ1glxz9sQp for ; Sun, 22 Dec 2019 20:17:37 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 5B7CC87530; Sun, 22 Dec 2019 09:17:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GUHra9b6Qe0h; Sun, 22 Dec 2019 09:17:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id A883C87C0D; Sun, 22 Dec 2019 09:17:34 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 682551BF332 for ; Sun, 22 Dec 2019 09:17:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 6518187C0D for ; Sun, 22 Dec 2019 09:17:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a6auxPKdFzAn for ; Sun, 22 Dec 2019 09:17:32 +0000 (UTC) X-Greylist: delayed 17:41:31 by SQLgrey-1.7.6 Received: from mail-pj1-f68.google.com (mail-pj1-f68.google.com [209.85.216.68]) by hemlock.osuosl.org (Postfix) with ESMTPS id 1C6AA87530 for ; Sun, 22 Dec 2019 09:17:32 +0000 (UTC) Received: by mail-pj1-f68.google.com with SMTP id t101so6110930pjb.4 for ; Sun, 22 Dec 2019 01:17:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=e-labworks-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=AAOaXlDro3dGaYd/IgmWTcEEAE0L4uUdMNshUCbD8/s=; b=xPdMum+RVMJlsbhcK7I4hLaI8sufUoe4mSbYuEKgSuLxPinTgmJhF9i+0qCEzUqF7F ker+2+TISvCSavQQtt3Qt5NVbA9qN6/Lvaa1HUzpKM9ImRA1s3nCpoTOF+KV5RiNvEAS +giq3BSN/TGBtvN2QOxBs+W6sXzJZpEGF9WV04UoidSQvJCEQ06Dki01KdcJkzgP3du8 WV/4Cc75DRAAlI2ZeW5Yjh+/F843R/8nMjDiqqN+/IZ6OaWUQuYwe0TEUOTLjC1W8v5O rvtZgtCMEX+3UJz/7WOCveKfJsP9ld22sbQaiEqFMVVRGERg05ZDC7i+JOU5+oVCqqxj Tp4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=AAOaXlDro3dGaYd/IgmWTcEEAE0L4uUdMNshUCbD8/s=; b=N/VzwwXf5gILHumgCpWJX2ZnvVKa9/qchKacP+ZgGkonuaaGhQVtnKc5V1Gn4bVJCV Pv9DveRMiSYkj7F49ClDfFMhiBytWef0NESuaapB+nYF2DU61YjOGuY9CP8+KhbSBjSr O/I1Fs0S8C4xv83VTa6qxf7SxQwNZN7PmrEwdnfQgc7HGD+tzIpBZV+j+9PPxsBvYFj6 fZ3gEFgkHeVNF4pdlv3YDtlcve2VLaewkupwHFGMIutbcKlTKFEcQPVXlCvMRXN57FzE wbJ2sYyoJfuvAaZTueuA+FqNx91glziPz9UfZudTIhi3Q7jo3Hw0kfi/X9pngFGpaBhI iReQ== X-Gm-Message-State: APjAAAWSCLvMy/+8ASeCCXSxUcXj9E9HMJEAgKMMcet+zciW2CpsCN3w +cWJ58pvjcaKR7UMac3JmRXz7zDIkjs= X-Google-Smtp-Source: APXvYqxbkuRWQp7RQEYELWaVWb5apOVL52snwhMhznHdXzgY2+4Zkf6j/3NxALedN982aHxcg0Kzyg== X-Received: by 2002:a17:902:8689:: with SMTP id g9mr24972713plo.257.1577006251021; Sun, 22 Dec 2019 01:17:31 -0800 (PST) Received: from localhost.localdomain ([179.209.45.161]) by smtp.gmail.com with ESMTPSA id 12sm20231531pfn.177.2019.12.22.01.17.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Dec 2019 01:17:30 -0800 (PST) From: Sergio Prado To: buildroot@buildroot.org Date: Sun, 22 Dec 2019 06:17:07 -0300 Message-Id: <20191222091707.31637-1-sergio.prado@e-labworks.com> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH] package/snort: fix error when building on a Fedora host machine X-BeenThere: buildroot@busybox.net 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: , Cc: Sergio Prado MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Remove a logic from configure script that adds unsafe header/library path when cross-compiling on a Fedora host machine. Fixes: http://autobuild.buildroot.net/results/47a367c2c5cbf13079b0e60ad7ebe3dbd05756d4 http://autobuild.buildroot.net/results/837e43b085ac30fb8545c67352403ceb7de59976 http://autobuild.buildroot.net/results/a69df3959b45620f811c18744aa661caa479aef4 many more... Signed-off-by: Sergio Prado --- ...en-building-on-a-Fedora-host-machine.patch | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 package/snort/0007-Fix-error-when-building-on-a-Fedora-host-machine.patch diff --git a/package/snort/0007-Fix-error-when-building-on-a-Fedora-host-machine.patch b/package/snort/0007-Fix-error-when-building-on-a-Fedora-host-machine.patch new file mode 100644 index 000000000000..afe9672a3c2a --- /dev/null +++ b/package/snort/0007-Fix-error-when-building-on-a-Fedora-host-machine.patch @@ -0,0 +1,51 @@ +From eae97632157b73f0ca7c099232617b2777d0fa54 Mon Sep 17 00:00:00 2001 +From: Sergio Prado +Date: Sat, 21 Dec 2019 12:00:42 -0300 +Subject: [PATCH] Fix error when building on a Fedora host machine. + +Remove the code that adds unsafe header/library path when +cross-compiling on a Fedora host machine. + +Signed-off-by: Sergio Prado +--- + configure.in | 24 ------------------------ + 1 file changed, 24 deletions(-) + +diff --git a/configure.in b/configure.in +index e6586f399898..fb35d4d7e3e3 100644 +--- a/configure.in ++++ b/configure.in +@@ -957,30 +957,6 @@ if test "x$enable_dlclose" = "xno"; then + AC_DEFINE([DISABLE_DLCLOSE_FOR_VALGRIND_TESTING],[1],[Don't close opened shared objects for valgrind leak testing of dynamic libraries]) + fi + +-################################################## +-# Fedora 28+ does not have inbuilt SunRPC support# +-# in glibc and is separately availble in tirpc # +-# package. Make sure we've got the library and # +-# link it # +-################################################## +- +-if test -f /etc/fedora-release ; then +- DISTRO_VERSION=$(awk '{ print $3 }' /etc/fedora-release) +- if test $DISTRO_VERSION -ge 28 ; then +- TIRPC="" +- AC_CHECK_LIB(tirpc,bindresvport,, TIRPC="no") +- echo "$TIRPC" +- if test "x$TIRPC" = "xno"; then +- echo +- echo " ERROR! tirpc not found, get it by running " +- echo " yum install libtirpc-devel " +- exit +- fi +- LIBS="${LIBS} -ltirpc" +- extra_incl="-I/usr/include/tirpc" +- fi +-fi +- + Z_LIB="" + AC_CHECK_HEADERS(zlib.h,, Z_LIB="no") + if test "x$Z_LIB" = "xno"; then +-- +2.17.1 +