ALT Linux Team development discussions
 help / color / mirror / Atom feed
* Re: [devel] В чем разница между Requires и PreReq в спеках?
  @ 2018-05-12  9:50 ` Ivan Zakharyaschev
  2018-05-14  9:30 ` Sergey V Turchin
  1 sibling, 0 replies; 2+ messages in thread
From: Ivan Zakharyaschev @ 2018-05-12  9:50 UTC (permalink / raw)
  To: ALT Linux Team development discussions

[-- Attachment #1: Type: text/plain, Size: 1398 bytes --]

On Sat, 12 May 2018, Eugine Kosenko wrote:

> Народ, в чем разница между этими определениями, и какое из них
> предпочтительно для задании простой зависимости между пакетами?

Традиционно используются Requires.

Есть такие мнения:

https://www.redhat.com/archives/rpm-list/2003-June/msg00173.html :

"Not true. Requires: and PreReq: are exactly the same.

...

If you see a differnece between PreReq: and Requires: (ignoring dependency 
loops, different problem), then someting is broken.

..."

https://stackoverflow.com/a/27865060/94687 :

"The code in rpm-4.8.0 has chosen to remap Prereq: (which tries to force 
a package installation before current package) as if it were a 
Requires(pre): (which marks a require dependency needed by a %pre 
scriptlet)contrary to what was originally implemented in rpm.

Yes: dependency loops will be dealt with "best effort" so that an 
installation doesn't halt with dependency loops. ..."

http://ftp.rpm.org/api/4.4.2.2/dependencies.html :

"Prereqs are different from requires only in that a PreReq is guaranteed 
to be installed before the package that contains the PreReq. PreReq's are 
used only to order packages, otherwise PreReq's are exactly the same as a 
Requires: dependency."

-- 
Best regards,
Ivan

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [devel] В чем разница между Requires и PreReq в спеках?
    2018-05-12  9:50 ` [devel] В чем разница между Requires и PreReq в спеках? Ivan Zakharyaschev
@ 2018-05-14  9:30 ` Sergey V Turchin
  1 sibling, 0 replies; 2+ messages in thread
From: Sergey V Turchin @ 2018-05-14  9:30 UTC (permalink / raw)
  To: ALT Linux Team development discussions

On Saturday, 12 May 2018 11:52:53 MSK Eugine Kosenko wrote:
> Народ, в чем разница между этими определениями, и какое из них
> предпочтительно для задании простой зависимости между пакетами?
Для возможности использовать условных Requires зачастую бывает нужно 
Requires(pre), установка которых отработает предварительно отдельной 
транзакцией.

-- 
Regards, Sergey.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-05-14  9:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-12  9:50 ` [devel] В чем разница между Requires и PreReq в спеках? Ivan Zakharyaschev
2018-05-14  9:30 ` Sergey V Turchin

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