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=date:from:to:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=2soED+i/y2FyekOsovRoMc6AibcT7iKYzMKwM2JoGL4=; b=s3KLZEOazywWMMgPXEIy14U28/Ib2p7EuuKY0mqsXvt15xXweLuvHmhSl8LeSVwdRg 9ThjJ1Ul4rTXzLuJZmfanRFnYlexiBUk69ZHMntQ5CiMeLJg6qqdEER9KGIuiIdy4cB/ gU/wvuQiDa2zxjD1xKYGCeqvj8pUyShBCPzacLJwS8yPcPopUuibpkMgOYsehlS9xXAz PgRReIny7TUkTOm+Vr9qnVYwk4Byl/CQjNYSg9DFQQpca9I/7fK40rR2DJ4jYx5KR7h/ pWmKWLeEFAWABaZu9zfmbzvLaBmqmMgE8n0C4E7vsSCgeWy1a3dATSqrW8+aXY9KUjAX kD7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=2soED+i/y2FyekOsovRoMc6AibcT7iKYzMKwM2JoGL4=; b=VXsykETZIKg+arWDArEZT3a+HPaJ0CQ5uaIP/OfXgD59UN1rgT7YJssIEbSmzQkk0g NAr1mYhd6RzUuWxsiV+t6DI0DMVkE/9UQ/AsMHPTJxDTkkFR2pbXkR6EcD/U1hiRPEsR I8Wfccp7ARl8rXw7NV6TwrM6PtpwQojmaiyIT88kK6p7H/Kix68nNZ7+EC1nqjTFH7Gp hhiAkgfCQcvHyfwdepMi1e01czR/j5iMFXxZBs5viLrjfyy3nPB/odUkzdzkOUGSKlS2 psClG0AgDuzUsNmDGctnMajaaqPunOkgKNBgObQoTx2APCDRL25gawyqonN8O6aCN+O0 D4Nw== X-Gm-Message-State: AODbwcCqulY6OJ+ndOufsrwpuwMSEZhISnqPu0+JPieqOzOxIasnyZKO x/ldvTXT/hfu/T0X X-Received: by 10.25.150.65 with SMTP id y62mr2451943lfd.167.1495951839587; Sat, 27 May 2017 23:10:39 -0700 (PDT) Date: Sun, 28 May 2017 09:10:37 +0300 From: Alexey Tourbin To: devel@lists.altlinux.org Message-ID: <20170528061036.GA31735@celery> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.6 (2015-08-30) X-Mailman-Approved-At: Sun, 28 May 2017 10:10:08 +0300 Subject: [devel] =?utf-8?b?0YPQtNCy0L7Qu9C10YLQstC+0YDQtdC90LjQtSDQt9Cw?= =?utf-8?b?0LLQuNGB0LjQvNC+0YHRgtC10Lkg0LIg0L3QvtCy0L7QvCBycG0=?= 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: Sun, 28 May 2017 06:10:43 -0000 Archived-At: List-Archive: List-Post: Уважаемые мужчины, жители Энрофа! Я заметил, что ваш новый rpm, когда видит зависимость с версией, Requires: foo >= VER, считает ее удволетворенной даже тогда, когда имя foo предоставлено без версии, Provides: foo. $ cat foo.spec Name: foo Version: 1.0 Release: alt0 Summary: foo package License: GPL Group: System Requires: python2.7(pwd) > 666 %description %files $ rpm -bb foo.spec Processing files: foo-1.0-alt0 Requires: python2.7(pwd) > 666 Wrote: /home/at/RPM/RPMS/x86_64/foo-1.0-alt0.x86_64.rpm $ rpm -iv --test /home/at/RPM/RPMS/x86_64/foo-1.0-alt0.x86_64.rpm Preparing packages... Running /usr/lib/rpm/posttrans-filetriggers $ apt-get --dry-run install /home/at/RPM/RPMS/x86_64/foo-1.0-alt0.x86_64.rpm Reading Package Lists... Done Building Dependency Tree... Done Selecting foo for '/home/at/RPM/RPMS/x86_64/foo-1.0-alt0.x86_64.rpm' The following NEW packages will be installed: foo 0 upgraded, 1 newly installed, 0 removed and 688 not upgraded. Inst foo (1.0-alt0 localhost) Conf foo (1.0-alt0 localhost) $ rpm -q --whatprovides --provides 'python2.7(pwd)' |grep -w pwd python2.7(pwd) А узнал я об этом почти что случайно, в результате того, что от безделия просматривал код rpmds.c. Как писал Чехов, однажды, лежа на диванчике и читая код rpmds.c, с меня слетела шляпа. /usr/src/debug/rpm-4.13.0/lib/rpmds.c: 1148 if (!(AEVR && *AEVR && BEVR && *BEVR)) { 1149 /* If either EVR is non-existent or empty, always overlap. */ 1150 result = 1; 1151 } else { 1152 /* Both AEVR and BEVR exist, compare [epoch:]version[-release]. */ 1153 result = rpmdsCompareEVR(AEVR, AFlags, BEVR, BFlags, B->nopromote); 1154 } Надо ли говорить, что такое сравнение версий кажется мне вызывающе и абсурдно неправильным, и что раньше так не было. (hasher инициализирован из репозитория p8) $ hsh-install /home/at/RPM/RPMS/x86_64/foo-1.0-alt0.x86_64.rpm error: failed dependencies: python2.7(pwd) > 666 is needed by foo-1.0-alt0 hsh-install: Packages installation failed.