From patchwork Sat Dec 27 20:34:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 424252 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 198FE1400E9 for ; Sun, 28 Dec 2014 07:41:46 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6103E88237; Sat, 27 Dec 2014 20:41:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DwssC7iR6xIH; Sat, 27 Dec 2014 20:41:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 255D987FA7; Sat, 27 Dec 2014 20:41:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id CB7801C28A9 for ; Sat, 27 Dec 2014 20:41:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B41D087B12 for ; Sat, 27 Dec 2014 20:41:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AtMGDW3BF7m8 for ; Sat, 27 Dec 2014 20:41:39 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from smtp6-g21.free.fr (smtp6-g21.free.fr [212.27.42.6]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2D52384617 for ; Sat, 27 Dec 2014 20:41:39 +0000 (UTC) Received: from localhost.localdomain (unknown [88.184.220.198]) by smtp6-g21.free.fr (Postfix) with ESMTP id C9069822EE; Sat, 27 Dec 2014 21:40:30 +0100 (CET) From: Romain Naour To: buildroot@buildroot.org Date: Sat, 27 Dec 2014 21:34:27 +0100 Message-Id: <1419712467-20090-2-git-send-email-romain.naour@openwide.fr> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1419712467-20090-1-git-send-email-romain.naour@openwide.fr> References: <1419712467-20090-1-git-send-email-romain.naour@openwide.fr> Subject: [Buildroot] [PATCHv2 2/2] package/tmux: remove unsafe headers path X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Romain Naour Acked-by: "Yann E. MORIN" --- v2: fix typo (ThomasP) ...01-Makefile.am-remove-unsafe-headers-path.patch | 35 ++++++++++++++++++++++ package/tmux/tmux.mk | 3 ++ 2 files changed, 38 insertions(+) create mode 100644 package/tmux/0001-Makefile.am-remove-unsafe-headers-path.patch diff --git a/package/tmux/0001-Makefile.am-remove-unsafe-headers-path.patch b/package/tmux/0001-Makefile.am-remove-unsafe-headers-path.patch new file mode 100644 index 0000000..4a20945 --- /dev/null +++ b/package/tmux/0001-Makefile.am-remove-unsafe-headers-path.patch @@ -0,0 +1,35 @@ +From 4095ee95141063ff3f91153e84bd029b019b8dad Mon Sep 17 00:00:00 2001 +From: Romain Naour +Date: Fri, 26 Dec 2014 17:44:15 +0100 +Subject: [PATCH] Makefile.am: remove unsafe headers path + +/usr/local/include is probably not needed and it's unsafe for +cross-compilation. + +Signed-off-by: Romain Naour +--- + Makefile.am | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index a9ad5b9..0109e5d 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -38,12 +38,12 @@ else + CFLAGS += -O2 + endif + if IS_GCC4 +-CPPFLAGS += -iquote. -I/usr/local/include ++CPPFLAGS += -iquote. + if IS_DEBUG + CFLAGS += -Wno-pointer-sign + endif + else +-CPPFLAGS += -I. -I- -I/usr/local/include ++CPPFLAGS += -I. -I- + endif + endif + +-- +1.9.3 + diff --git a/package/tmux/tmux.mk b/package/tmux/tmux.mk index 055e97a..9c8921e 100644 --- a/package/tmux/tmux.mk +++ b/package/tmux/tmux.mk @@ -10,4 +10,7 @@ TMUX_LICENSE = ISC TMUX_LICENSE_FILES = README TMUX_DEPENDENCIES = libevent ncurses host-pkgconf +# we patch Makefile.am +TMUX_AUTORECONF = YES + $(eval $(autotools-package))