All of lore.kernel.org
 help / color / mirror / Atom feed
From: Francois Perrad <fperrad@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [scanrock 5/5] [RFC] pkg-luarocks: add per package upgrade target
Date: Sun, 21 Oct 2018 18:32:59 +0200	[thread overview]
Message-ID: <20181021163259.28335-6-francois.perrad@gadz.org> (raw)
In-Reply-To: <20181021163259.28335-1-francois.perrad@gadz.org>

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
 package/pkg-generic.mk  | 6 +++++-
 package/pkg-luarocks.mk | 8 ++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index 91b61c6de..f349c6c1f 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -779,6 +779,9 @@ $(1)-external-deps:
 	@echo "file://$$($(2)_OVERRIDE_SRCDIR)"
 endif
 
+$(1)-upgrade:
+			+$$($(2)_UPGRADE_CMDS)
+
 $(1)-show-version:
 			@echo $$($(2)_VERSION)
 
@@ -1030,7 +1033,8 @@ DL_TOOLS_DEPENDENCIES += $$(call extractor-dependency,$$($(2)_SOURCE))
 	$(1)-rsync \
 	$(1)-show-depends \
 	$(1)-show-version \
-	$(1)-source
+	$(1)-source \
+	$(1)-upgrade
 
 ifneq ($$($(2)_SOURCE),)
 ifeq ($$($(2)_SITE),)
diff --git a/package/pkg-luarocks.mk b/package/pkg-luarocks.mk
index e2b48cfb4..55f7300d3 100644
--- a/package/pkg-luarocks.mk
+++ b/package/pkg-luarocks.mk
@@ -44,6 +44,14 @@ $(2)_SITE		?= $$(call qstrip,$$(BR2_LUAROCKS_MIRROR))
 # a target package, and can just add the required dependencies
 $(2)_DEPENDENCIES	+= host-luarocks luainterpreter
 
+# Upgrade helper
+ifndef $(2)_UPGRADE_CMDS
+define $(2)_UPGRADE_CMDS
+	PATH=$(BR_PATH) \
+	utils/scanrock $$($(2)_NAME_UPSTREAM) $(1)
+endef
+endif
+
 #
 # Extract step. Extract into a temporary dir and move the relevant part to the
 # source dir.
-- 
2.17.1

  parent reply	other threads:[~2018-10-21 16:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-21 16:32 [Buildroot] [scanrock 0/5] scanrock Francois Perrad
2018-10-21 16:32 ` [Buildroot] [scanrock 1/5] utils/scanrock: new utility for Luarocks infrastructure Francois Perrad
2018-10-23 22:32   ` Arnout Vandecappelle
2018-10-23 23:14   ` Arnout Vandecappelle
2018-10-21 16:32 ` [Buildroot] [scanrock 2/5] lua*: regeneration of hash files Francois Perrad
2018-10-23 22:42   ` Arnout Vandecappelle
2018-10-21 16:32 ` [Buildroot] [scanrock 3/5] lua*: regeneration of *.mk files Francois Perrad
2018-10-23 22:56   ` Arnout Vandecappelle
2018-10-21 16:32 ` [Buildroot] [scanrock 4/5] lua*: regeneration of Config.in Francois Perrad
2018-10-23 23:02   ` Arnout Vandecappelle
2018-10-21 16:32 ` Francois Perrad [this message]
2018-10-23 23:19   ` [Buildroot] [scanrock 5/5] [RFC] pkg-luarocks: add per package upgrade target Arnout Vandecappelle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181021163259.28335-6-francois.perrad@gadz.org \
    --to=fperrad@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.