From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] hsh-rebuild --query-repackage
Date: Wed, 16 Jan 2019 16:25:37 +0300
Message-ID: <20190116132537.GB23636@altlinux.org> (raw)
In-Reply-To: <20190116131503.GA23636@altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 2370 bytes --]
On Wed, Jan 16, 2019 at 04:15:03PM +0300, Dmitry V. Levin wrote:
> On Wed, Jan 16, 2019 at 01:38:50PM +0400, Ivan A. Melnikov wrote:
> > On Wed, Jan 16, 2019 at 12:29:50PM +0300, Sergey V Turchin wrote:
> > > On Wednesday, 16 January 2019 12:22:19 MSK Ivan Zakharyaschev wrote:
> > >
> > > [...]
> > > > Нет, этот как-то вызвано %ubt, а не необработкой glob-ов в rpm.
> > > Возможно, продолжение
> > > https://lists.altlinux.org/pipermail/devel/2018-October/205623.html
> > >
> > > > Исходный пакет хранился как bird-1.6.4-alt1.S1 , а после обработки стал
> > > > без .S1.
> > >
> > > [...]
> >
> > Да, это оно.
> >
> > Часть 1: https://lists.altlinux.org/pipermail/devel/2018-October/205623.html
> > Часть 2: https://lists.altlinux.org/pipermail/devel/2018-November/205788.html
> > Часть 3: https://bugzilla.altlinux.org/35828
> > Часть 4: этот тред.
> >
> > Теперь все пакеты, собранные с релизом, заканчивающимся на %ubt,
> > до бана %ubt, вместо того, чтобы пересобираться с потенциально
> > неполным набором зависимостей, не пересобираются.
> >
> > Интрига.
>
> hsh-rebuild --query-repackage делает следующее:
>
> make_srpm_from_pkgtar '"$HOME/in/nosrpm"'
>
> # The repackaged in/nosrpm/*.(no)src.rpm is
> # only used to query the build dependencies;
> # the original in/srpm/*.src.rpm is used for the final rebuild.
> # It may seem that if the build dependencies have shrunk
> # after repackaging, then the final build could fail because
> # the original srpm would list more build dependencies.
> # This is not a problem, however, because rpmbuild --rebuild
> # calculates correctly the new set of build deps;
> # --nodeps is not needed for it to work properly.
>
> cat >chroot/.host/query_req <<__EOF__
> #!/bin/sh -e
> cd "\$HOME/in/nosrpm"
> rpmquery -pR -- "\${@%.src.rpm}".*src.rpm
> __EOF__
>
> Для того, чтобы в этом коде заменить эту жёсткую конструкцию
> на что-то менее жесткое, например, *src.rpm, надо очищать
> "$HOME/in/nosrpm" каждый раз перед заполнением. Как думаете?
Поскольку перед make_srpm_from_pkgtar есть вызов install_source_package
(который делает именно это -- удаляет $HOME/in), а сам
make_srpm_from_pkgtar страхуется от ошибки с помощью mkdir $HOME/in/nosrpm
(без -p), то условие выполнено и этот жёсткий шаблон поиска
действительно можно ослабить.
--
ldv
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
next prev parent reply other threads:[~2019-01-16 13:25 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-16 7:42 ` [devel] Fwd: bird-1.6.4-alt1.S1: Sisyphus/x86_64 test rebuild failed Anton Farygin
2019-01-16 9:09 ` Ivan Zakharyaschev
2019-01-16 9:22 ` Ivan Zakharyaschev
2019-01-16 9:28 ` Anton Farygin
2019-01-16 9:49 ` Ivan Zakharyaschev
2019-01-16 9:56 ` Ivan Zakharyaschev
2019-01-16 9:58 ` Ivan Zakharyaschev
2019-01-16 10:02 ` Ivan A. Melnikov
2019-01-16 10:06 ` Ivan Zakharyaschev
2019-01-16 10:24 ` Ivan Zakharyaschev
2019-01-16 10:27 ` Anton Farygin
2019-01-16 10:31 ` Ivan Zakharyaschev
2019-01-16 10:33 ` Anton Farygin
2019-01-16 10:36 ` Anton Farygin
2019-01-16 10:40 ` Ivan Zakharyaschev
2019-01-16 10:48 ` Anton Farygin
2019-01-16 11:06 ` Ivan Zakharyaschev
2019-01-16 11:24 ` Anton Farygin
2019-01-16 11:30 ` Ivan Zakharyaschev
2019-01-16 11:37 ` Ivan A. Melnikov
2019-01-16 11:44 ` Aleksei Nikiforov
2019-01-21 14:38 ` Sergey V Turchin
2019-01-16 12:25 ` Ivan Zakharyaschev
2019-01-16 10:37 ` Ivan Zakharyaschev
2019-01-16 10:35 ` Ivan Zakharyaschev
2019-01-16 10:37 ` Anton Farygin
2019-01-16 10:49 ` Anton Farygin
2019-01-16 10:37 ` Sergey V Turchin
2019-01-16 10:39 ` Anton Farygin
2019-01-16 11:27 ` Sergey V Turchin
2019-01-16 10:41 ` Ivan A. Melnikov
2019-01-16 10:05 ` Ivan Zakharyaschev
2019-01-16 10:39 ` Sergey V Turchin
2019-01-16 10:41 ` Ivan Zakharyaschev
2019-01-16 10:02 ` Ivan Zakharyaschev
2019-01-16 10:11 ` Anton Farygin
2019-01-16 10:15 ` Ivan Zakharyaschev
2019-01-16 10:17 ` Anton Farygin
2019-01-16 10:21 ` Ivan Zakharyaschev
2019-01-16 9:29 ` Sergey V Turchin
2019-01-16 9:38 ` Ivan A. Melnikov
2019-01-16 13:15 ` [devel] hsh-rebuild --query-repackage Dmitry V. Levin
2019-01-16 13:25 ` Dmitry V. Levin [this message]
2019-01-17 10:47 ` Michael Shigorin
2019-01-16 9:30 ` [devel] Fwd: bird-1.6.4-alt1.S1: Sisyphus/x86_64 test rebuild failed Ivan Zakharyaschev
2019-01-16 9:36 ` Ivan Zakharyaschev
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=20190116132537.GB23636@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