ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] жирный drm
Date: Wed, 11 Apr 2018 17:12:20 +0300
Message-ID: <20180411141220.GA12366@altlinux.org> (raw)
In-Reply-To: <3fc17554-ddfd-45c4-bfcd-24b1419ffe3a@altlinux.ru>

[-- Attachment #1: Type: text/plain, Size: 1539 bytes --]

On Wed, Apr 11, 2018 at 03:26:53PM +0300, Валерий Иноземцев wrote:
> 11.04.2018 15:22, Sergey Bolshakov пишет:
> >>>>>> "Sergey" == Sergey V Turchin <zerg-u2l5PoMzF/Vg9hUCZPvPmw@public.gmane.org> writes:
> > 
> >  > On Wednesday, 11 April 2018 13:38:35 MSK Валерий Иноземцев wrote:
> >  > [...]
> >  >> Ну, как обычно говорят люди не знающие правильного ответа - "А вот это
> >  >> хороший вопрос"
> >  > В p8 тоже хорошо бы спросить, а то у меня образ дистрибутива уже еле вмещается 
> >  > в лимит.
> > 
> > Ну на самом деле я к тому, что вполне можно в %install Mesa
> > добавить вот такое (в armh/aarch64 уже давно):
> > 
> > --- %< ---
> > for f in %buildroot%_libdir/X11/modules/dri/*.so; do
> >        [ ${f##*/} = kms_swrast_dri.so ] && continue
> >        readelf -d $f |grep -q 'SONAME.\+gallium_dri.so' || continue
> >        ln -sf kms_swrast_dri.so $f
> > done
> > --- %< ---
> > 
> > поскольку kms_swrast_dri.so (и swrast_dri.so) будут
> > установлены всегда из-за зависимости в xorg-server,
> > все прочие gallium-based dri могут быть просто симлинками.
> > 
> 1. swrast_dri.so не на всех архитектурах gallium-based
> 2. не gallium-based dri тоже одинаковые

Попробуйте так:

d=%buildroot%_libdir/X11/modules/dri
for f in $d/*.so; do
	[ ! -L "$f" ] || continue
	n="${f##*/}"
	s="$(objdump -p "$f" |awk '/SONAME/ {print $2}')"
	[ -n "$s" ]
	[ "$n" != "$s" ] || continue
	t="$d/$s"
	[ -f "$t" ] || mv "$f" "$t"
	ln -v -snf "$t" "$f"
done

А вообще они уже hardlinked.


-- 
ldv

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

  reply	other threads:[~2018-04-11 14:12 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-10  9:46   ` [devel] [Fwd: [#203798] FAILED srpm=wayland-1.15.0-alt1.src.rpm] Валерий Иноземцев
2018-04-10  9:52     ` Aleksei Nikiforov
2018-04-10 10:17       ` Alexey Gladkov
2018-04-10 10:20         ` Валерий Иноземцев
2018-04-10 10:37           ` Alexey Gladkov
2018-04-11  7:28             ` Валерий Иноземцев
2018-04-11  7:34               ` Валерий Иноземцев
2018-04-11  9:20               ` Alexey Gladkov
2018-04-11  9:35                 ` Валерий Иноземцев
2018-04-11  9:57                   ` Sergey Bolshakov
2018-04-11 10:38                     ` Валерий Иноземцев
2018-04-11 11:57                       ` [devel] жирный drm (was: [#203798] FAILED srpm=wayland-1.15.0-alt1.src.rpm]) Sergey V Turchin
2018-04-11 12:17                         ` [devel] жирный drm Валерий Иноземцев
2018-04-11 12:22                         ` Sergey Bolshakov
2018-04-11 12:26                           ` Валерий Иноземцев
2018-04-11 14:12                             ` Dmitry V. Levin [this message]
2018-04-12  7:05                               ` Sergey V Turchin
2018-04-12 12:26                                 ` Anton V. Boyarshinov
2018-04-12 12:37                                   ` Валерий Иноземцев
2018-04-12 14:46                                     ` Sergey V Turchin
2018-04-13 10:07                                       ` Валерий Иноземцев
2018-04-12 12:38                                   ` Sergey Bolshakov
2018-04-12 13:38                                     ` Alexey V. Vissarionov
2018-04-19 13:38                   ` [devel] [Fwd: [#203798] FAILED srpm=wayland-1.15.0-alt1.src.rpm] Yuri Sedunov
2018-04-19 16:22                     ` Валерий Иноземцев
2018-04-19 17:01                       ` Yuri Sedunov

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=20180411141220.GA12366@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