ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Alexey Novikov" <Shader@yandex.ru>
To: community@altlinux.ru
Subject: [Comm] ldconfig & symlinks
Date: Mon, 24 Nov 2003 10:09:24 +0300 (MSK)
Message-ID: <3FC1AEA4.000007.12590@tide.yandex.ru> (raw)

Доброго времени суток!

Наткнулся тут на одну проблему (раньше я ее почему-то не замечал).
Итак имеем:
Master 2.0 + 
kernel-std-up-2.4.22-alt7(+kernel-modules-nvidia-4496) +
XFree86-4.3.0(+NVIDIA_GLX +Mesa) +
WineX-3.0

В результате, получается, что в /usr/X11R6/lib имеем:
libGLwrapper.so... (XFree86-libs)
libGL.so.1.2(XFree86-libs)
libGL.so.1.4.5...(Mesa)
libGL.so.nvidia(NVIDIA_GLX)

Проблема в следующем: если сделать ldconfig (без опции -X), то
симлинк libGL.so.1 указывает на libGLwrapper, который, как я понимаю,
грузит свою libGL.so.1.2 и в результате в WineX имеем софтовый рендеринг
без текстур...:( Если его поправить на libGL.so.nvidia, то все OK.
Поправить-то его не проблема, но дело в том, что во многих
rpm-ках (lib<что-то там>.rpm) в post скрипте идет запуск ldconfig
без параметров, в результате чего линк опять слетает.
Отсюда два вопроса:
1. Откуда ldconfig узнает, что надо создать линк на libGLwrapper?
2. Как прибить отдельно взятую symlink, чтобы ldconfig ее не правил?

Придумал несколько workaround'ов на эту тему (не знаю какой из них лучше):
1. rm -f /usr/X11R6/lib/libGLwrapper.so* (вряд ли после этого ldconfig'у
захочется ее переставлять)
2. Поставить установку линки в стартовые скрипты (недостаток - сработает
как в оффтопике - после перезагрузки)
3. Обвязать ldconfig скриптом с опцией -X (недостаток - system wide - бьем
тараканов паровым молотом, где-то это еще аукнется...)

Что еще можно сделать?
-- 
С уважением,
Алексей Новиков



             reply	other threads:[~2003-11-24  7:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-24  7:09 Alexey Novikov [this message]
2003-11-24  7:29 ` Sergey Vlasov
2003-11-24  8:04   ` Alexey Novikov
2003-11-24  8:12     ` Sergey Vlasov
2003-11-24 10:59       ` Alexey Novikov
2003-11-25  6:45         ` Alexey Novikov
2003-11-25  7:08           ` Sergey Vlasov
2003-11-25  7:34             ` Alexey Novikov
2003-11-25  8:02               ` Alexey Novikov
2003-11-25  8:23                 ` [Comm] Re: BTS (was: ldconfig & symlinks) Vitaly Ostanin
2003-12-01  5:25                 ` [Comm] ldconfig & symlinks Alexey Novikov

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=3FC1AEA4.000007.12590@tide.yandex.ru \
    --to=shader@yandex.ru \
    --cc=community@altlinux.ru \
    /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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git