mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH v4 2/3] host-yarn: new package
Date: Thu, 30 Jan 2020 15:12:19 +0100	[thread overview]
Message-ID: <20200130141219.GE2615@pengutronix.de> (raw)
In-Reply-To: <20200129110619.22179-2-u.oelmann@pengutronix.de>

On Wed, Jan 29, 2020 at 12:06:18PM +0100, Ulrich Ölmann wrote:
> From: Björn Esser <b.esser@pengutronix.de>
> 
> Fast, reliable, and secure dependency management for Node.js.
> 
> We use Yarn to generate an offline cache and a lock-file to be able to install
> all needed Node.js-packages reproducibly. This works even in environments
> without internet-connectivity, as long as the cache and the lock-file are in
> reach.
> 
> Signed-off-by: Björn Esser <b.esser@pengutronix.de>
> [uol: adjusted commit message]
> Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
> ---
> Range-diff of v4 against v3:
> 2:  e07e8a621a29 ! 2:  c78fde2a6233 host-yarn: New package.
>     @@ Metadata
>      Author: Björn Esser <b.esser@pengutronix.de>
> 
>       ## Commit message ##
>     -    host-yarn: New package.
>     +    host-yarn: new package
> 
>          Fast, reliable, and secure dependency management for Node.js.
> 
>     -    We use Yarn to generate a cache and a lock-file to be able
>     -    to install all needed Node.js-packages reproducibly. This
>     -    works even in environments without internet-connectivity, as
>     -    long as the cache and the lock-file are checked-in into the
>     -    version controll system (e.g. git) of the BSP.
>     +    We use Yarn to generate an offline cache and a lock-file to be able to install
>     +    all needed Node.js-packages reproducibly. This works even in environments
>     +    without internet-connectivity, as long as the cache and the lock-file are in
>     +    reach.
> 
>          Signed-off-by: Björn Esser <b.esser@pengutronix.de>
>     +    [uol: adjusted commit message]
>     +    Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
> 
>       ## rules/host-yarn.in (new) ##
>      @@
> 
> 
>  rules/host-yarn.in   |  6 +++++
>  rules/host-yarn.make | 61 ++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 67 insertions(+)
>  create mode 100644 rules/host-yarn.in
>  create mode 100644 rules/host-yarn.make
> 
> diff --git a/rules/host-yarn.in b/rules/host-yarn.in
> new file mode 100644
> index 000000000000..d98dd6c34620
> --- /dev/null
> +++ b/rules/host-yarn.in
> @@ -0,0 +1,6 @@
> +## SECTION=hosttools_noprompt
> +
> +config HOST_YARN
> +	tristate
> +	default y if ALLYES
> +	select HOST_NODEJS
> diff --git a/rules/host-yarn.make b/rules/host-yarn.make
> new file mode 100644
> index 000000000000..55a415945031
> --- /dev/null
> +++ b/rules/host-yarn.make
> @@ -0,0 +1,61 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2017 by Juergen Borleis <jbe@pengutronix.de>
> +#
> +# See CREDITS for details about who has contributed to this project.

Remove the CREDITS line.

> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +# 2019-May-05, Daniel Arnold, Updated to yarn 1.15.2
> +# 2020-January-09, Björn Esser, Updated to yarn 1.21.1
> +
> +#
> +# We provide this package
> +#
> +HOST_PACKAGES-$(PTXCONF_HOST_YARN) += host-yarn
> +
> +#
> +# Paths and names
> +#
> +HOST_YARN_VERSION	:= 1.21.1
> +HOST_YARN_MD5		:= cf49e663e0f56aa15f1740c77354ebe2
> +HOST_YARN		:= yarn-$(HOST_YARN_VERSION)
> +HOST_YARN_SUFFIX	:= js
> +HOST_YARN_URL		:= https://github.com/yarnpkg/yarn/releases/download/v$(HOST_YARN_VERSION)/$(HOST_YARN).$(HOST_YARN_SUFFIX)
> +HOST_YARN_SOURCE	:= $(SRCDIR)/$(HOST_YARN).$(HOST_YARN_SUFFIX)
> +
> +# ----------------------------------------------------------------------------
> +# Extract (nothing to be done here)
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/host-yarn.extract:
> +	@$(call targetinfo)
> +	@$(call touch)
> +
> +# ----------------------------------------------------------------------------
> +# Prepare (nothing to be done here)
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/host-yarn.prepare:
> +	@$(call targetinfo)
> +	@$(call touch)
> +
> +# ----------------------------------------------------------------------------
> +# Compile (nothing to be done here)
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/host-yarn.compile:
> +	@$(call targetinfo)
> +	@$(call touch)
> +
> +# ----------------------------------------------------------------------------
> +# Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/host-yarn.install:
> +	@$(call targetinfo)
> +	@install -pm 0755 $(HOST_YARN_SOURCE) $(PTXDIST_SYSROOT_HOST)/bin/yarn

	@$(call world/execute, HOST_YARN, \
		install -vDm 0755 $(HOST_YARN_SOURCE) \
		$(HOST_YARN_PKGDIR)/bin/yarn)

Michael

> +	@$(call touch)
> +
> +# vim: syntax=make
> -- 
> 2.25.0
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2020-01-30 14:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-29 11:06 [ptxdist] [PATCH v4 1/3] nodejs: version bump 6.9.5 -> 12.14.1 LTS Ulrich Ölmann
2020-01-29 11:06 ` [ptxdist] [PATCH v4 2/3] host-yarn: new package Ulrich Ölmann
2020-01-30 14:12   ` Michael Olbrich [this message]
2020-01-29 11:06 ` [ptxdist] [PATCH v4 3/3] nodejs_packages: " Ulrich Ölmann
2020-01-30 14:22   ` Michael Olbrich
2020-02-03 11:22     ` Ulrich Ölmann
2020-01-30 14:07 ` [ptxdist] [PATCH v4 1/3] nodejs: version bump 6.9.5 -> 12.14.1 LTS Michael Olbrich

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=20200130141219.GE2615@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox