From patchwork Sun Dec 11 18:12:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tal Shorer X-Patchwork-Id: 704859 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tcDbb0hFCz9t0X for ; Mon, 12 Dec 2016 05:12:59 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="MLIQAR7/"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8D3A68471B; Sun, 11 Dec 2016 18:12:55 +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 dyJpcChPqcg0; Sun, 11 Dec 2016 18:12:54 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 7AFC984680; Sun, 11 Dec 2016 18:12:54 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 8B01B1BFAF4 for ; Sun, 11 Dec 2016 18:12:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8818E84680 for ; Sun, 11 Dec 2016 18:12:53 +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 Z8xb-i+K1VtM for ; Sun, 11 Dec 2016 18:12:53 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by whitealder.osuosl.org (Postfix) with ESMTPS id D4E3784662 for ; Sun, 11 Dec 2016 18:12:52 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id u144so6310507wmu.0 for ; Sun, 11 Dec 2016 10:12:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sGRQSmmAXD8b2IkuYM8EhGoKrYdaGrDKudU7U+uZ4Z8=; b=MLIQAR7/HYI3UUJ1HFRXjmzHz3OiVAglFWPnfiHMLW15o5NoMN4HXHDr49fRBV1N1B MunG2koNtUu21PyZvQtgT6uDZEnkwh9jjppOKrTWekDE9HzztCCZQhA9FGl/LLcEA13M N93LeFkOc6fmKIZjqTNJrkD0fB3CmmUeunRdV98oib+0mm1q2e9quCpjBpDMibs3rKKq gtGVZ7XoMEfPK/jwUkRMDjGBXHkg7CgT8LqfWiXVn8Z/7KGqoV2f9YuM4/633tg4faYD 8ZIORk7txFSKFAQAtAglf3XZv6eBv7J/P8hHJSjt7DaRWwby9yRjzUMAB6l4T5w8RZy6 ovPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=sGRQSmmAXD8b2IkuYM8EhGoKrYdaGrDKudU7U+uZ4Z8=; b=f6g0d22FFhs6RWB1jalecxaH+C9alejyicqPabubBHV5cLiNfAuFC1k+GQPqvGRc/M Rd4g0ePCZr/4Am1aw1ct99kOYQdI91ZTfQEtydW/iTW12zlA51ZZkDIWLSmh2Ujjytyd X4hroHNABX7pxkBRGA5Hnu3/59KUfsZBIfPjc/ETdrxM5NnYxhDQQEu/ZTMQE4ZtXDM1 vU783sUvAqeNvKnoq1ejUESjFeCiWq03ZpBXetdYQu6PV99Mee8lZw3DSCkye3Z3xCdT KEBW00Mkis3UrK2ufcbJ/4JHq6e9gPmJDlZyHMau/ZjvdE8yfj+qY5wpi/mV+TUTYmUV cv5Q== X-Gm-Message-State: AKaTC03rlJ197d0LqaaDpeVZSSAae38ah5fTvDSassbO28gWoxUyDqn7qriKWow4NFlR6g== X-Received: by 10.28.43.198 with SMTP id r189mr6060127wmr.67.1481479971277; Sun, 11 Dec 2016 10:12:51 -0800 (PST) Received: from www.gmail.com (bzq-79-179-152-10.red.bezeqint.net. [79.179.152.10]) by smtp.gmail.com with ESMTPSA id ba10sm53248429wjb.32.2016.12.11.10.12.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 11 Dec 2016 10:12:50 -0800 (PST) From: Tal Shorer To: buildroot@buildroot.org Date: Sun, 11 Dec 2016 20:12:45 +0200 Message-Id: <1481479965-26226-1-git-send-email-tal.shorer@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <20161211174528.GD3599@free.fr> References: <20161211174528.GD3599@free.fr> Subject: [Buildroot] [PATCH] pkg-generic: run $(PKG)_PRE_RSYNC_HOOKS before checking for the existence of $(SRCDIR) 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" This will allow packages to define their pre-rsync hooks which will be guaranteed to run even if the source is missing. Signed-off-by: Tal Shorer Acked-by: "Yann E. MORIN" --- package/pkg-generic.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 827de62..3ca71b0 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -161,8 +161,8 @@ $(BUILD_DIR)/%/.stamp_extracted: # used. $(BUILD_DIR)/%/.stamp_rsynced: @$(call MESSAGE,"Syncing from source dir $(SRCDIR)") - @test -d $(SRCDIR) || (echo "ERROR: $(SRCDIR) does not exist" ; exit 1) $(foreach hook,$($(PKG)_PRE_RSYNC_HOOKS),$(call $(hook))$(sep)) + @test -d $(SRCDIR) || (echo "ERROR: $(SRCDIR) does not exist" ; exit 1) rsync -au --chmod=u=rwX,go=rX $(RSYNC_VCS_EXCLUSIONS) $(call qstrip,$(SRCDIR))/ $(@D) $(foreach hook,$($(PKG)_POST_RSYNC_HOOKS),$(call $(hook))$(sep)) $(Q)touch $@