From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=AQxHuPV147qHg0Wu5FI8WJQHdTUlpsoQy12q+rCngDU=; b=JxVMNW9gKAYWTs/szdiUTgLXeviGgQUQSzmLQCDs5vG2wcCwZSoxFn7xrDWk97DuI4 570NAtSiaTduXMJGNbK0fM0a7wPgenYODID9WFr5xClPExrFMKkMc4dKIxUXkIxsv4Gm 69bgwfbvaNL3ABBQl4nS/VNmWW4y+Uj4JC4w4BqYsZfDXsL+0gpP/q5Zb3/x6J/nhxLX doAolyRxfyxT7JEi5rbtUsk/H/8PuEz088IlIbpx+9I3vYj5lYGWcJo7CmUABySh3O2G fheiv2GUAJyg1c6bbuzE5uoax76AV21G9KkEW/IzXYNNMHB9pfZs1/aqx0FKc7KQEG0E YmNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=AQxHuPV147qHg0Wu5FI8WJQHdTUlpsoQy12q+rCngDU=; b=DJV2wg1gSKjW0Pmxcou5b9zFda0TUhG8N/jAfE+jj8bmx+uEQUZjMW3WB03WxjE9A3 1KA2YRtkpI4eL5DAMmsv9/D46N7YP60zY7nybg4Ajg1QiBtAP0HtRZ38xZoGgmHh8G1Q XDhKcBxdBJ/dREWVqdvjKagjmUUJsZ2amyAAY9vx9Y6uaFmlkC+rcKtplEzorNMeUH1Q 8XTPBJj6ozucp0fQozdDCDRmkhhpbAt+XqmaQRrpr00gQFnIsiKDj0ZJmRI0qtJnazB8 I65lXWjh14E0qJsliroaBGOpllvwOZHvjcn3HpJIFxI2VEpKpn74U1fJ14Urwxq5+a2a iOPQ== X-Gm-Message-State: AJcUukfycF8KzvzXR6kEW+Jfv9cofCl/+707gPJ8NSo9UWnpXKOfw8wg p4AKdDGxGyRxYu+59tzd2tlnwNlLWt+onH8SP8uhBpUo X-Google-Smtp-Source: ALg8bN6pMkSFKixrR+qcq6b7aP2wcaPf3VcPMirLSgYLBDk8WyDwI0AcJLWiaxAWg55GZJ9Lqh1AA5rlOlOrconlsEY= X-Received: by 2002:a24:c9c6:: with SMTP id h189mr2155389itg.175.1547546045117; Tue, 15 Jan 2019 01:54:05 -0800 (PST) MIME-Version: 1.0 From: Alexey Tourbin Date: Tue, 15 Jan 2019 12:53:54 +0300 Message-ID: To: ALT Linux Team development discussions Content-Type: text/plain; charset="UTF-8" Subject: [devel] Re dependencies beginning with a dot character X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2019 09:54:10 -0000 Archived-At: List-Archive: List-Post: 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.