* [devel] Re dependencies beginning with a dot character
@ 2019-01-15 9:53 Alexey Tourbin
0 siblings, 0 replies; only message in thread
From: Alexey Tourbin @ 2019-01-15 9:53 UTC (permalink / raw)
To: ALT Linux Team development discussions
Regarding
> Revert "Add macro to allow dependencies beginning with a dot character in spec file"
> These odd dependencies are no longer generated.
http://git.altlinux.org/gears/r/rpm-build.git?a=commitdiff;h=f438f6b5
On the balance, those odd dependencies have one distinct advantage:
they can be resolved in a single primitive op, that is, they evade
full-blown version parsing, which in turn invokes malloc etc. Some
time ago I didn't understand the issue; this can still be seen in the
ocaml-runtime package:
$ rpm -q --provides ocaml-runtime
ocaml-runtime = 4.07
ocaml-runtime = 4.07.1-alt2
So "ocaml-runtime = 4.07" is used as a base version in all dependent
packages. Today I would use "ocaml-runtime-4.07" instead.
On the other hand, there is an optimization (at least in apt-rpm)
which tries strcmp before succumbing to the vercmp machinery. You
better make sure the opitimization still works. In other words, the
version used in Requires and Provides (for subpackage dependencies)
must match exactly.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-01-15 9:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-15 9:53 [devel] Re dependencies beginning with a dot character Alexey Tourbin
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