From patchwork Sun Oct 29 02:06:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 831662 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="KVq7D6v+"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yPgwC0PrDz9t2Z for ; Sun, 29 Oct 2017 13:06:50 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8AD57881E9; Sun, 29 Oct 2017 02:06:47 +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 Xrx2oV2sv4AD; Sun, 29 Oct 2017 02:06:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id BC26388EEE; Sun, 29 Oct 2017 02:06:45 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 90D3A1C24B4 for ; Sun, 29 Oct 2017 02:06:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 82D862FD10 for ; Sun, 29 Oct 2017 02:06:38 +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 zthv6Hm5iOYV for ; Sun, 29 Oct 2017 02:06:38 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-yw0-f193.google.com (mail-yw0-f193.google.com [209.85.161.193]) by silver.osuosl.org (Postfix) with ESMTPS id 088BF2D42A for ; Sun, 29 Oct 2017 02:06:38 +0000 (UTC) Received: by mail-yw0-f193.google.com with SMTP id k11so8774597ywh.1 for ; Sat, 28 Oct 2017 19:06:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vUk3OXJuwlb1dPf7hAYmy+q4FKH0fCjMdI6+E0tn6G0=; b=KVq7D6v+Oz1vkjwIfE+ACmT63gRUMWcxypheK/qpLqejK7DpMxVaXgQsf9SBj31PY1 fAQ4BJpFnreE0Z3mAiwvC+mlF4+OwJOfhgeK5bg+rINIt8rBmXpdQ921zfvAuV7VKLzX J/U1breuNK/46V0H3pOxxR7MaW7T+VoWVPqeYXFElRcP9yCPhZAFPvSQ+6hJARGXg/sk B+DofvmV3p3DQQc3lxNfZ/dcXp8vTrOW+zobQJnbTdUKgU6i7d17wzOfCpWuGdUayE10 /7HY8yFWSi3r8CpQ86wUrHgWI+TuLfoZGkoRkkXFfk6EhLWjzgOIQfxf3T/wOxlsqyAl FRxw== 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:in-reply-to :references; bh=vUk3OXJuwlb1dPf7hAYmy+q4FKH0fCjMdI6+E0tn6G0=; b=guH+h5zrlN6VXx5LU+ktP4i+TpmTMQLMbBw5u5STw6l7PQ9YJ2RYymEP+JGOjmO9+/ PlEfIfQSleTfUTF3d+Nl3ruUQHy60TUJaFUy5XCzHvMhWHFDUSTM2fX8LoLzSdRJyM8o T9A1LxD+KErVNB2pB3a+nvLcU0pBPtzls0777qK0P1/Ka9d9rDaQfBE8bXa45QlA/aDV StlEttyHxgsV5DlYS+msiFaL/9X4rnxUIkirx/GUA05sPSMiNRA3ctKSmHz+fIkE5Abt nbCmKp6QUfsFgie/gkxaiCEFeWG6NM7A2KCfBMapivD529BU9N6gAaJe2OwNd30wa0Wp 0XbQ== X-Gm-Message-State: AMCzsaWjDq+seWCD1X0FL1tB883qb4TZ1TarPUMRTmQmCJRRcEujD8IK 5WTVQFjPh0JU7gbWEBBBOA/up4tz X-Google-Smtp-Source: ABhQp+R9RAuZAnEtMa8B/0Mr2LgQYX+S9ZZrONNJsZ8e4Y1E7aP9VAqXWfkv7YZ3aoay7BR+Tp2YQA== X-Received: by 10.37.189.134 with SMTP id f6mr3381837ybh.262.1509242796802; Sat, 28 Oct 2017 19:06:36 -0700 (PDT) Received: from localhost.localdomain (ip68-109-195-31.pv.oc.cox.net. [68.109.195.31]) by smtp.gmail.com with ESMTPSA id v8sm5482611ywg.45.2017.10.28.19.06.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 28 Oct 2017 19:06:35 -0700 (PDT) From: Florian Fainelli To: buildroot@buildroot.org Date: Sat, 28 Oct 2017 19:06:21 -0700 Message-Id: <1509242782-14524-2-git-send-email-f.fainelli@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509242782-14524-1-git-send-email-f.fainelli@gmail.com> References: <1509242782-14524-1-git-send-email-f.fainelli@gmail.com> Cc: thomas.petazzoni@free-electrons.com, Florian Fainelli , mmayer@broadcom.com Subject: [Buildroot] [RFC 1/2] pkg-generic: Don't check for trailing slashes for local method 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" Local methods might be used to specify a path to a directory, which could contain trailing slashes, don't bother checking those. Signed-off-by: Florian Fainelli --- package/pkg-generic.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index cca94ba338fb..4c090f2daed3 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -998,9 +998,11 @@ $$(error $(2)_SITE cannot be empty when $(2)_SOURCE is not) endif endif +ifneq ($$($(2)_SITE_METHOD),local) ifeq ($$(patsubst %/,ERROR,$$($(2)_SITE)),ERROR) $$(error $(2)_SITE ($$($(2)_SITE)) cannot have a trailing slash) endif +endif ifneq ($$($(2)_HELP_CMDS),) HELP_PACKAGES += $(2)