From patchwork Sat Dec 13 17:08:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 420769 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 60FF21400D5 for ; Sun, 14 Dec 2014 04:08:46 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 57C2A32D05; Sat, 13 Dec 2014 17:08:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ycPx2VqnCGMl; Sat, 13 Dec 2014 17:08:42 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id A47F4328DE; Sat, 13 Dec 2014 17:08:42 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 2352F1C1774 for ; Sat, 13 Dec 2014 17:08:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1E5DD954E2 for ; Sat, 13 Dec 2014 17:08:41 +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 isz-HBrsmWxT for ; Sat, 13 Dec 2014 17:08:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by hemlock.osuosl.org (Postfix) with ESMTPS id 30C1E954D9 for ; Sat, 13 Dec 2014 17:08:40 +0000 (UTC) Received: by mail-wi0-f178.google.com with SMTP id em10so5282475wid.17 for ; Sat, 13 Dec 2014 09:08:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=4PlzEDnVLGehHEnR9pcZ6PPdyQs89AtRQHJ2ejwdeY4=; b=FhgINKPGkpBAydAxoVrT+Ug+VDLW7iK9as4M0n0ZZsbl8vqql+JWKvSGhNy+xCF5ti j+ycOoe4cGHylCrnYHBgc3XdOcEE4Kl3oE6y47v4trVS45WnareZNdR+dV9jeaneukcS IQsywvz921HqECEX/ZPTzp8+yyowKnRArd6195nw9SYdGhqIFkuhcj2s1ptRNjx6blJF Ib3Tu05fkDRGpRup14pKGQrTyOWv05GKbVMIdUvZk+ubOuc1on5uv7hjtB3LsUM4t4he NFLCFlsg2sV+IlXT4dkqRVULKS046e1t2E1FEZsQHnDKiGwglF4bFBEQivcEx9G4n+mb rewA== X-Received: by 10.194.61.168 with SMTP id q8mr36858203wjr.53.1418490518828; Sat, 13 Dec 2014 09:08:38 -0800 (PST) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id cz3sm6184866wjb.23.2014.12.13.09.08.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 13 Dec 2014 09:08:38 -0800 (PST) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sat, 13 Dec 2014 18:08:33 +0100 Message-Id: <1418490513-10957-1-git-send-email-yann.morin.1998@free.fr> X-Mailer: git-send-email 1.9.1 Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH] package/pcre: install headers in legacy location 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" nmap is looking for pcre headers in pcre/pcre.h which our current version of pcre does not populates. So, just create those as symlinks to the actual headers. Signed-off-by: "Yann E. MORIN" Cc: Romain Naour Acked-by: Romain Naour --- Note: this is not fixing anything for now, because the error in nmap is hidden by another error. But this is relaticvely easy to fix, so here we go... ;-) --- package/pcre/pcre.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package/pcre/pcre.mk b/package/pcre/pcre.mk index 4ff7abd..f2cf02d 100644 --- a/package/pcre/pcre.mk +++ b/package/pcre/pcre.mk @@ -22,5 +22,13 @@ PCRE_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE_32),--enable-pcre32,--disable-pcre32) PCRE_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE_UTF),--enable-utf,--disable-utf) PCRE_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE_UCP),--enable-unicode-properties,--disable-unicode-properties) +define PCRE_LEGACY_PATHS + $(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/include/pcre + for h in $(STAGING_DIR)/usr/include/pcre*.h; do \ + ln -sf ../$${h##*/} $(STAGING_DIR)/usr/include/pcre/ || exit 1; \ + done +endef +PCRE_POST_INSTALL_STAGING_HOOKS += PCRE_LEGACY_PATHS + $(eval $(autotools-package)) $(eval $(host-autotools-package))