From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] про hasher и rpmquery
Date: Thu, 1 Nov 2018 12:30:44 +0300
Message-ID: <20181101093043.GB19026@altlinux.org> (raw)
In-Reply-To: <20181023110337.57ja34mncqxwxuya@titan.localdomain>
[-- Attachment #1: Type: text/plain, Size: 1488 bytes --]
On Tue, Oct 23, 2018 at 03:03:37PM +0400, Ivan A. Melnikov wrote:
[...]
> asheplyakov@, собиравший 1.16.3-alt1 и исправлявший как раз
> эти два теста, посмотрел на проблему и сказал, что в сборочной
> среде во время пересборки не был смонтирован /proc. Тем временем,
> BR: /proc в спеке, естественно, был.
На какой стадии во время пересборки не был смонтирован /proc?
[...]
> Добавьте к этому фишку rpmquery: она умеет раскрывать шаблоны
> имён файлов сама, и если ни один файл не попал под шаблон, не
> считает это ошибкой:
>
> $ rpmquery -pR foo; echo "exit code: $?"
> error: open of foo failed: No such file or directory
> exit code: 1
> $ rpmquery -pR 'foo*'; echo "exit code: $?"
> exit code: 0
Оказывается, в новом rpmquery потерялся наш коммит из rpm-4.0.4-alt12:
* Sun Nov 10 2002 Dmitry V. Levin <ldv@altlinux> 4.0.4-alt12
- lib/query.c: rpmQueryVerify[RPMQV_RPM]: parse file argument
(do glob and other expansions) only if glob_query is enabled
[and disabled it by default].
This change allows widespread constructions like
"find -print0 |xargs -r0 rpmquery -p --".
git blame говворит, что это коммит 112afdc29cd4019a7750d31c624682c2c580b3bb,
но на самом деле git-cvsimport, очевидно, плохо справился.
В каком-нибудь p8 вы увидите совсем другое поведение rpmquery:
$ rpmquery -p foo\*; echo \$?=$?
error: open of foo* failed: No such file or directory
$?=1
Почините rpmquery в Сизифе, пожалуйста.
--
ldv
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
next prev parent reply other threads:[~2018-11-01 9:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-23 11:03 [devel] про sssd, query-repackage и ubt Ivan A. Melnikov
2018-10-30 18:45 ` Ivan A. Melnikov
2018-10-30 20:22 ` Dmitry V. Levin
2018-11-01 8:38 ` Evgeny Sinelnikov
2018-11-01 9:30 ` Dmitry V. Levin [this message]
2018-11-01 9:47 ` [devel] /proc // Re: про hasher и rpmquery Ivan A. Melnikov
2018-11-01 10:07 ` Dmitry V. Levin
2018-12-29 13:44 ` [devel] " Dmitry V. Levin
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=20181101093043.GB19026@altlinux.org \
--to=ldv@altlinux.org \
--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