ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <alexey.tourbin@gmail.com>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: [devel] Re dependencies beginning with a dot character
Date: Tue, 15 Jan 2019 12:53:54 +0300
Message-ID: <CA+qzenk4sWW0KQEdBudt0v=AZQ3db-2Ds5v-3zxFHjMV4=PggQ@mail.gmail.com> (raw)

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.


                 reply	other threads:[~2019-01-15  9:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CA+qzenk4sWW0KQEdBudt0v=AZQ3db-2Ds5v-3zxFHjMV4=PggQ@mail.gmail.com' \
    --to=alexey.tourbin@gmail.com \
    --cc=devel@lists.altlinux.org \
    /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