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

On Tue, Aug 13, 2013 at 08:09:00PM +0300, Viacheslav Dubrovskyi wrote:
> 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 ?

Пакеты foo-1.6.3 и foo-1.6.4 имеют 3 компоненты, поэтому в них
и есть только 
%{nodejs_sitelib}/foo@1.6.3
%{nodejs_sitelib}/foo@1.6.4
и все.

ссылка foo@1.6 будет только в пакете foo-1.6. версии, наверно, 1.6.5,
потому что если foo-1.6 версии 1.6.4 то тогда пакет foo-1.6.4
собирать будет не нужно, %{nodejs_sitelib}/foo@1.6.4 и
Provides: npm(foo) = 1.6.4 будут в foo-1.6.
 
> Не хочется плодить просто ссылки. Логично если бы были только те ,
> которые реально стоят.
> %{nodejs_sitelib}/foo@1.6.3
> %{nodejs_sitelib}/foo@1.6.4
> и все.

так и будет. Если где-то еще стоит 1.6.x,
а foo надо обновить до 1.7.0, то просто
вдогонку собираем foo-1.6 последней версии 1.6.5
и закрываем им unmet'ы.

foo-1.6.3 и foo-1.6.4 понадобятся в крайне редких случаях, 
только если среди авторов нашлись очень нехорошие люди, котрые 
явно вписали более старые версии 1.6.3 и 1.6.4 вместо 1.6.x.
 
> Тут если стоит 1.6.x, то логичнее сделать
> Requires: на npm(foo) >= 1.6
> Requires: на npm(foo) <= 1.7

Это и есть c точностью до s/npm/nodejs/ то, 
что прописывает текущий rpm-build-nodejs.
зависимости вида <= мне очень неудобны,
простая проверка на unmets их не ловит,
необходима перегенерация репозитория с вытеснением пакетов.
Я хочу избавиться от зависимостей вида >= + <=,
заменив их эквивалентным =.

-- 

Dr. Igor Vlasenko
--------------------
Topology Department
Institute of Math
Kiev, Ukraine


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



      reply	other threads:[~2013-08-13 17:32 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
2013-08-13 17:32   ` Igor Vlasenko [this message]

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