From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] [#263468] EPERM (try 14) llvm-common.git=11.0.0-alt2 srpm=llvm11.0-11.0.0-alt2.src.rpm
Date: Tue, 12 Jan 2021 02:16:42 +0300
Message-ID: <20210111231642.GB14540@altlinux.org> (raw)
In-Reply-To: <20210111214100.GA1776208@lks.home>
On Mon, Jan 11, 2021 at 10:41:00PM +0100, Konstantin Lepikhov wrote:
[...]
> > Вот тут написано, почему man1dir не лишний:
> >
> > > > +# Symlink man pages to the man dirs.
> > > > +for mand in %buildroot%llvm_datadir/man/man*; do
> > > > + mand_index="${mand##*/man}"
> > > > + for m in "$mand"/*.[1-9]*; do
> > > > + # Let's force compress the man page, then symlink it.
> > > > + # /usr/lib/llvm-11.0/share/man/manD/utilX.D.xz -> /usr/share/man/manD/utilX-11.D.xz
> > > > + # Otherwise, brp-alt(compress) keeps fucking us up.
> > > > + # It remakes the symlinks first, then compresses their targets,
> > > > + # severing the symlinks.
> > > > + /usr/lib/rpm/compress_files "$m"
> > > > +
> > > > + mb="$(basename "$m")" # e. g. llvm-ar.1.xz
> > > > + new_mb="${mb%%.[1-9]*}-%v_major.$mand_index" # e. g. llvm-ar-11.1.xz
> > > > +
> > > > + mkdir -p "%buildroot%_mandir/man$mand_index"
> > > > + ln -srv "$m" "%buildroot%_mandir/man$mand_index/$new_mb"
> > > > + done
> > > > +done
> Ну так костыль жеж. У нас тут есть мантейнеры rpm, почему они не помогают?
Так, а в чём проблема и зачем понадобились костыли?
Может быть, всё уже было придумано много лет назад, а вы ещё не в курсе,
что это было придумано именно для вашего случая? ;)
--
ldv
next prev parent reply other threads:[~2021-01-11 23:16 UTC|newest]
Thread overview: 79+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-07 14:08 ` Arseny Maslennikov
2021-01-07 20:52 ` Konstantin Lepikhov
2021-01-07 21:18 ` Arseny Maslennikov
2021-01-11 9:13 ` Konstantin Lepikhov
2021-01-11 10:25 ` [devel] hazardous girar builder (was: Re: [#263468] EPERM (try 14) llvm-common.git=11.0.0-alt2 srpm=llvm11.0-11.0.0-alt2.src.rpm) Arseny Maslennikov
2021-01-11 10:44 ` [devel] hazardous girar builder Dmitry V. Levin
2021-01-11 10:49 ` Arseny Maslennikov
2021-01-11 10:56 ` Dmitry V. Levin
2021-01-11 11:08 ` Arseny Maslennikov
2021-01-11 11:22 ` Sergey V Turchin
2021-01-11 11:25 ` Anton Farygin
2021-01-11 11:32 ` Alexey Gladkov
2021-01-11 11:41 ` Yuri Sedunov
2021-01-11 12:00 ` Alexey Gladkov
2021-01-11 12:30 ` Arseny Maslennikov
2021-01-11 12:25 ` Sergey V Turchin
2021-01-12 7:44 ` Sergey V Turchin
2021-01-12 10:44 ` Alexey V. Vissarionov
2021-01-12 13:24 ` Sergey V Turchin
2021-01-11 12:30 ` Michael Shigorin
2021-01-11 13:21 ` Sergey V Turchin
2021-01-11 13:58 ` Arseny Maslennikov
2021-01-11 14:17 ` Sergey V Turchin
2021-01-12 7:55 ` Anton V. Boyarshinov
2021-01-12 8:13 ` Anton Farygin
2021-01-12 8:26 ` Anton V. Boyarshinov
2021-01-12 9:10 ` Anton Farygin
2021-01-12 10:10 ` Anton V. Boyarshinov
2021-01-12 11:10 ` Alexey V. Vissarionov
2021-01-12 12:53 ` Arseny Maslennikov
2021-01-12 13:18 ` Alexey V. Vissarionov
2021-01-12 14:10 ` Arseny Maslennikov
2021-01-12 19:06 ` Leonid Krivoshein
2021-01-12 20:54 ` [devel] html email in devel@ (was: Re: hazardous girar builder) Arseny Maslennikov
2021-01-13 8:45 ` Alexey V. Vissarionov
2021-01-13 8:54 ` Arseny Maslennikov
2021-01-13 8:59 ` Andrey Savchenko
2021-01-13 9:18 ` Arseny Maslennikov
2021-01-13 9:30 ` Vladimir D. Seleznev
2021-01-13 9:37 ` Alexey Gladkov
2021-01-13 9:48 ` Arseny Maslennikov
2021-01-13 9:21 ` Alexey Gladkov
2021-01-13 10:00 ` Andrey Savchenko
2021-01-13 10:10 ` Alexey Gladkov
2021-01-13 10:47 ` Andrey Savchenko
2021-01-13 11:48 ` Alexey Gladkov
2021-01-13 12:49 ` Dmitry V. Levin
2021-01-13 9:27 ` Vladimir D. Seleznev
2021-01-13 9:55 ` Andrey Savchenko
2021-01-13 10:14 ` Vladimir D. Seleznev
2021-01-13 10:49 ` Andrey Savchenko
2021-01-13 10:59 ` [devel] [JT] fortunes-ALT (was: html email in devel@) Michael Shigorin
2021-01-13 12:45 ` [devel] html email in devel@ (was: Re: hazardous girar builder) Dmitry V. Levin
2021-01-14 9:45 ` Alexey V. Vissarionov
2021-01-13 9:03 ` Alexey Gladkov
2021-01-12 18:10 ` [devel] hazardous girar builder Anton V. Boyarshinov
2021-01-12 18:40 ` Dmitry V. Levin
2021-01-12 18:48 ` Anton V. Boyarshinov
2021-01-12 14:12 ` Arseny Maslennikov
2021-01-11 16:09 ` [devel] [#263468] EPERM (try 14) llvm-common.git=11.0.0-alt2 srpm=llvm11.0-11.0.0-alt2.src.rpm Konstantin Lepikhov
2021-01-11 16:31 ` Michael Shigorin
2021-01-11 21:43 ` Konstantin Lepikhov
2021-01-11 16:38 ` Arseny Maslennikov
2021-01-11 21:41 ` Konstantin Lepikhov
2021-01-11 23:16 ` Dmitry V. Levin [this message]
2021-01-12 12:11 ` Arseny Maslennikov
2021-01-12 12:09 ` Arseny Maslennikov
2021-01-14 21:12 ` Konstantin Lepikhov
2021-01-15 8:50 ` Arseny Maslennikov
2021-01-12 21:39 ` Vitaly Lipatov
2021-01-14 20:55 ` Konstantin Lepikhov
2021-01-13 12:47 ` Alexey Sheplyakov
2021-01-14 20:46 ` Konstantin Lepikhov
2021-01-15 7:49 ` Ivan A. Melnikov
2021-01-15 8:50 ` Alexey Sheplyakov
2021-01-15 9:45 ` Konstantin Lepikhov
2021-01-15 12:38 ` [devel] И еще про кросс-компиляторы (Re: [#263468] EPERM (try 14) llvm-common.git=11.0.0-alt2 srpm=llvm11.0-11.0.0-alt2.src.rpm) Alexey Sheplyakov
2021-06-17 8:46 ` Konstantin Lepikhov
2021-01-15 13:46 ` [devel] [#263468] EPERM (try 14) llvm-common.git=11.0.0-alt2 srpm=llvm11.0-11.0.0-alt2.src.rpm Alexey V. Vissarionov
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=20210111231642.GB14540@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