ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Viacheslav Dubrovskyi <dubrsl@gmail.com>
To: Igor Vlasenko <vlasenko@imath.kiev.ua>
Cc: "Дмитрий Кулик" <lnkvisitor.ts@gmail.com>, devel@lists.altlinux.org
Subject: Re: [devel] Q: node.js packaging policy
Date: Tue, 13 Aug 2013 20:09:00 +0300
Message-ID: <520A682C.1030204@gmail.com> (raw)
In-Reply-To: <20130813163340.GA19729@dad.imath.kiev.ua>

13.08.2013 19:33, Igor Vlasenko wrote:
> т.е. думаю, что надо паковать foo 1.6.3
> как набор %{nodejs_sitelib}/foo и симлинки
> %{nodejs_sitelib}/foo@1.6.3
> %{nodejs_sitelib}/foo@1.6
> %{nodejs_sitelib}/foo@1
>
> Генерировать не Provides: nodejs(foo) = 1.6.3
> а
> Provides: npm(foo) = 1.6.3
> Provides: npm(foo) = 1.6
> Provides: npm(foo) = 1
> и
> Provides: nodejs(foo) = 1.6.3
> , которую использовать вместо Provides: npm(foo) = latest
Не очень понятно зачем делать 1.6.3 , 1.6 , 1
А если у нас 2 пакета foo-1.6.3 foo-1.6.4 то на какой должна быть ссылка 
foo@1.6 ?

Не хочется плодить просто ссылки. Логично если бы были только те , 
которые реально стоят.
%{nodejs_sitelib}/foo@1.6.3
%{nodejs_sitelib}/foo@1.6.4
и все.

И следовательно провайдить
Provides: npm(foo) = 1.6.3
Provides: npm(foo) = 1.6.4

>
> Симлинк и requires, если в package.json зависимость на "1.6.x"
> то симлинк на %{nodejs_sitelib}/foo@1.6
> Requires: на npm(foo) = 1.6
Тут если стоит 1.6.x, то логичнее сделать
Requires: на npm(foo) >= 1.6
Requires: на npm(foo) <= 1.7


-- 
WBR,
Viacheslav Dubrovskyi



  parent reply	other threads:[~2013-08-13 17:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-13 16:33 Igor Vlasenko
2013-08-13 16:39 ` Igor Vlasenko
2013-08-13 17:09 ` Viacheslav Dubrovskyi [this message]
2013-08-13 17:32   ` Igor Vlasenko

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=520A682C.1030204@gmail.com \
    --to=dubrsl@gmail.com \
    --cc=devel@lists.altlinux.org \
    --cc=lnkvisitor.ts@gmail.com \
    --cc=vlasenko@imath.kiev.ua \
    /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

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git