From patchwork Sat Jun 8 03:24:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yi Zheng X-Patchwork-Id: 1112389 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="KomUVdV/"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45LPts0nQ1z9sBb for ; Sat, 8 Jun 2019 13:26:10 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3EA26868E7; Sat, 8 Jun 2019 03:26:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CsYcnHuOxH5n; Sat, 8 Jun 2019 03:26:02 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 767E6868E1; Sat, 8 Jun 2019 03:26:02 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id F3F391BF966 for ; Sat, 8 Jun 2019 03:26:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id F1255868B4 for ; Sat, 8 Jun 2019 03:26:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZytSAaiXY7qH for ; Sat, 8 Jun 2019 03:26:01 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 07BB8868A9 for ; Sat, 8 Jun 2019 03:26:01 +0000 (UTC) Received: by mail-pl1-f180.google.com with SMTP id d21so1523898plr.3 for ; Fri, 07 Jun 2019 20:26:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=NZUuXo1l3ajy1LaJpHr1ZybLdWdLWUjLJpH3W5DuPHA=; b=KomUVdV/kOekrS/lgROnzIybtBSFlSnceKVxYWuEZhV1+dMo8vEU6KOwTxkLHO72pH royoSFmOYukWta+lFtHs2ybxw+VZapkBJSYQcoGCR0KtxpJhgHRB+ap2lLIYolZ2q6UX i3jECDiy4+pSjwqFzej49nnnlQkWVm2jsQuJ1Qj32dl+eGpZ2FJnnYRRHGFQ87nEEEOe WRYeOdJXGu49zWZQBR3i30Vm4YKsJ1wEihKhLvGqgDpXCh+F1tDJymlsuY/bMmkNTqGs OXSrcWYf/7bFGyyn72HcT3/yodVV4y7yjVQAj0iZSNUY12a5JRe9ScmIUiL4iDd5lrHl MaFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=NZUuXo1l3ajy1LaJpHr1ZybLdWdLWUjLJpH3W5DuPHA=; b=RgJY2jt1a4vD5skS0BxQdDiQV5j20lY0XgzqjJEyjzqYfthp/HdwisBtUSBkvFiAKq JGbEd2tylLGwX2bArV6sywU3CdqD5gSR9ejd7yu3yCxrUNAeIzKKGTDmxJeY6Sobpded bx9c0bCaC3kfe5qrHADj1+zy46Xe/9sJU3lJa5px4A2Vj9yHXintz07b29ZDXMdwxVXe 98oE3ZmPUo4YqN0yvm6SulnEOoS3VkNSGPC3Mxlb1MjD3owlcSVHo4FY/sWhYM8317Ee vrjXim12LkCNoWGMZ0K3ipaEqcAPsqG7UFt7G6WsRi4wXZ0wU5Ote2k6VkXLGK4Oa4vf EIEw== X-Gm-Message-State: APjAAAV+qLXV6NKHMS5bfbITh/PCt/DBwwoqVQYr69WKc9rwmm57kM90 v4h0InBGXIFwrgPbJbttOcK9291acAPcWMxSPP4= X-Google-Smtp-Source: APXvYqwEqxafxCeq/AyRGpGwpjlGEjz2PNKmGEZGD5EdONOY0JVEay+ysFhKiK8pGN6mPjLsv03p1ci4MUusTQJyD00= X-Received: by 2002:a17:902:fa2:: with SMTP id 31mr34412010plz.38.1559964360683; Fri, 07 Jun 2019 20:26:00 -0700 (PDT) MIME-Version: 1.0 From: Yi Zheng Date: Sat, 8 Jun 2019 11:24:25 +0800 Message-ID: To: Fabrice Fontaine Subject: [Buildroot] [buildroot] patch for suricata, wrong shebang in python/ 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: buildroot Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Hi, I found that /usr/bin/suricatactl and /usr/bin/suricatasc has wrong shebang, which using the path of python in the HOST machine. The patch is attached. Could you please have a look? From 2b20c3490cdc8f3ddd8adc0ca4db984768ae4418 Mon Sep 17 00:00:00 2001 From: Brock Zheng Techyauld Ltd Date: Sat, 8 Jun 2019 11:16:37 +0800 Subject: [PATCH 15/15] suricata: fixup wrong shebang --- .../0002-fixup-shebang-on-python-script.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 package/suricata/0002-fixup-shebang-on-python-script.patch diff --git a/package/suricata/0002-fixup-shebang-on-python-script.patch b/package/suricata/0002-fixup-shebang-on-python-script.patch new file mode 100644 index 0000000000..7587fd7c24 --- /dev/null +++ b/package/suricata/0002-fixup-shebang-on-python-script.patch @@ -0,0 +1,16 @@ +--- suricata-4.1.3.orig/python/Makefile.am 2019-06-08 11:01:36.008059323 +0800 ++++ suricata-4.1.3/python/Makefile.am 2019-06-08 11:05:58.498057935 +0800 +@@ -6,11 +6,11 @@ EXTRA_DIST = setup.py \ + if HAVE_PYTHON + all-local: + cd $(srcdir) && \ +- $(HAVE_PYTHON) setup.py build --build-base $(abs_builddir) ++ $(HAVE_PYTHON) setup.py build -e "/usr/bin/env python" --build-base $(abs_builddir) + + install-exec-local: + cd $(srcdir) && \ +- $(HAVE_PYTHON) setup.py build --build-base $(abs_builddir) \ ++ $(HAVE_PYTHON) setup.py build -e "/usr/bin/env python" --build-base $(abs_builddir) \ + install --prefix $(DESTDIR)$(prefix) + + uninstall-local: -- 2.21.0