From: Andrey Savchenko <bircoph@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] I: rpm-build supports %autopatch directive
Date: Sun, 6 Oct 2019 14:39:42 +0300
Message-ID: <20191006143942.cc06c3cca60756b751e5de1f@altlinux.org> (raw)
In-Reply-To: <20191006000331.GA3279983@portlab>
[-- Attachment #1: Type: text/plain, Size: 1979 bytes --]
On Sun, 6 Oct 2019 03:03:31 +0300 Vladimir D. Seleznev wrote:
> On Sun, Oct 06, 2019 at 02:34:48AM +0300, Grigory Ustinov wrote:
> > 05.10.2019 21:47, Vladimir D. Seleznev пишет:
> > > On Sat, Oct 05, 2019 at 01:20:53AM +0300, Grigory Ustinov wrote:
> > >> 03.10.2019 23:23, Vladimir D. Seleznev пишет:
> > >>> Hi!
> > >>>
> > >>> rpm-build начиная с версии 4.0.4-alt133 поддерживает директиву
> > >>> %autopatch в секции %prep, которая сразу прикладывает все перечисленные
> > >>> в глобальной секции патчи. Директива поддерживает две опции, -p и -F, с
> > >>> семантикой, аналогичной для таковых опций директивы %patch, значения
> > >>> которых применяется для всех патчей.
> > >> Идеально! Наконец-то!!!
> > >>
> > >> Для тех, кто в танке: можно пример использования?
> > > Пример использования можно увидеть тут:
> > >
> > > http://git.altlinux.org/gears/s/sqlite3.git?p=sqlite3.git;a=blob;f=sqlite3.spec;h=9c7f69f674495494c4327aa7f3185519f6f21988;hb=4eb86c73c29c8ca1a119835d0bccc7fa0e6f86a7#l100
> > Спасибо, а если у них разная длина отрезаемого пути?
>
> На это она не расчитана.
Можно доработать, чтоб принимался массив интервалов номеров патчей и
отступов. Иначе на больших патчсетах нужно или переделывать
половину патчей, или утилита бесполезна. С другой стороны, патчи
достаточно переделать только раз и это не сложно.
Best regards,
Andrew Savchenko
[-- Attachment #2: Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2019-10-06 11:39 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-03 20:23 Vladimir D. Seleznev
2019-10-03 20:26 ` Anton Farygin
2019-10-03 20:29 ` Dmitry V. Levin
2019-10-04 22:20 ` Grigory Ustinov
2019-10-05 18:47 ` Vladimir D. Seleznev
2019-10-05 23:34 ` Grigory Ustinov
2019-10-06 0:03 ` Vladimir D. Seleznev
2019-10-06 11:39 ` Andrey Savchenko [this message]
2019-10-06 5:02 ` Anton Farygin
2019-10-06 12:00 ` Dmitry V. Levin
2019-10-06 12:10 ` Andrey Savchenko
2019-10-06 12:20 ` Dmitry V. Levin
2019-10-06 12:30 ` Andrey Savchenko
2019-10-06 14:21 ` Dmitry V. Levin
2019-10-06 14:57 ` Andrey Savchenko
2019-11-24 16:33 ` Mikhail Novosyolov
2019-10-06 14:06 ` Alexey V. Vissarionov
2019-10-06 20:36 ` Vladimir D. Seleznev
2019-10-07 17:56 ` Andrey Savchenko
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=20191006143942.cc06c3cca60756b751e5de1f@altlinux.org \
--to=bircoph@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