ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alex Murygin <murygin@altlinux.ru>
To: devel@altlinux.ru
Subject: [devel] alternatives question
Date: Tue, 17 Jun 2003 13:12:50 +0300
Message-ID: <20030617131250.40ea7cef.murygin@altlinux.ru> (raw)

День добрый.

Просветите пожалуйста немного по поводу альтернатив.
Как можно переключить альтернативу на другой файл?

Есть пакет в котором есть что-то подобное

---------------------
%__cat << EOF >
%buildroot/%_altdir/%name-default<group name="candidate">
    <option name="link">%_sbindir/%name</option>
    <option name="real">%_sbindir/%name-default</option>
    <option name="weight" type="number">30</option>
</group>
EOF
%__cat << EOF > %buildroot/%_altdir/%name-mysql
<group name="candidate">
    <option name="link">%_sbindir/%name</option>
    <option name="real">%_sbindir/%name-mysql</option>
    <option name="weight" type="number">20</option>
</group>
EOF

......

%post default
%register_alternatives %name-default -- %name

%preun default
%unregister_alternatives %name-default

%post mysql
%register_alternatives %name-mysql -- %name

%preun mysql
%unregister_alternatives %name-mysql
---------------------

Они вроде нормально регистрируются (по крайней мере ссылки
проставляются нормально).

смотрел файл /usr/sbin/select-gcc, но там предполагается что есть файл
/var/lib/rpm/alternatives/%name.

У меня такой файл не создается. Что я делаю не так? 

P.S. Документацию читал, но в этот момент не врубился :(

-- 
-----------------------
- Alex Murygin, AITOC -
-----------------------
>From avl@l14.ru  Tue Jun 17 14:28:28 2003
Return-Path: <avl@l14.ru>
Delivered-To: devel@lrn.ru
Received: from master.altlinux.ru (master.altlinux.ru [62.118.250.235])
	by lrn.ru (Postfix) with ESMTP id 5542B4958C
	for <devel@lrn.ru>; Tue, 17 Jun 2003 14:28:28 +0400 (MSD)
Received: from mail.ric.cad.ru (unknown [213.33.212.62])
	by master.altlinux.ru (Postfix) with ESMTP id 372D5E31CF
	for <devel@altlinux.ru>; Tue, 17 Jun 2003 14:28:28 +0400 (MSD)
Received: from l14.ru (avl.ric [192.168.1.5])
	by mail.ric.cad.ru (Postfix) with ESMTP
	id 7CF4D419528; Tue, 17 Jun 2003 14:28:25 +0400 (MSD)
Message-ID: <3EEEED49.7080509@l14.ru>
Date: Tue, 17 Jun 2003 14:28:25 +0400
From: "Alexey V. Lubimov" <avl@l14.ru>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030210
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Andrey Semenov <f000115@tversu.ru>,
	ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] =?KOI8-R?Q?=F3=CE=CF=D7=C1_libgnomeprint-2=2E2_=C9?=
 =?KOI8-R?Q?_libgal2?=
References: <146161983139.20030617095020@tversu.ru>
In-Reply-To: <146161983139.20030617095020@tversu.ru>
Content-Type: text/plain; charset=KOI8-R; format=flowed
Content-Transfer-Encoding: 8bit
X-BeenThere: devel@altlinux.ru
X-Mailman-Version: 2.1.1
Precedence: list
Reply-To: ALT Devel discussion list <devel@altlinux.ru>
List-Id: ALT Devel discussion list <devel.altlinux.ru>
List-Unsubscribe: <http://altlinux.ru/mailman/listinfo/devel>,
	<mailto:devel-request@altlinux.ru?subject=unsubscribe>
List-Archive: <http://www.lrn.ru/pipermail/devel>
List-Post: <mailto:devel@altlinux.ru>
List-Help: <mailto:devel-request@altlinux.ru?subject=help>
List-Subscribe: <http://altlinux.ru/mailman/listinfo/devel>,
	<mailto:devel-request@altlinux.ru?subject=subscribe>
X-List-Received-Date: Tue, 17 Jun 2003 10:28:28 -0000

Andrey Semenov wrote:

>Доброе утро, господа разработчики.
>
>  Возвращаясь ко вчерашнему вопросу про libgnomeprint-2.2, я осознал
>  что мне требуется.
>  Излагаю суть проблемы. При попытке собрать пакет, требующий libgal2,
>  получаем ошибку из-за того, что пакет libgal2 требует наличие в
>  системе пакета libgnomeprint-2.0, а в Сизифе лежит
>  libgnomeprint-2.2. Видимо нужно пересобрать libgal2 причем чтобы он
>  был завязан на libgnomeprint-2.2.
>
одно из двух. или собрать libgnomeprint 2.0 (он не перескается с 2.2) 
или пропатчить libgal2 для работы с libgnomeprint 2.2.
По моему второй вариант лучше. Ссылку на патчащий скрипт я уже давал.



>
>Андрей Семенов
>
>mitrofan@altlinux.ru  
>
>
>_______________________________________________
>Devel mailing list
>Devel@altlinux.ru
>http://altlinux.ru/mailman/listinfo/devel
>  
>


-- 
С уважением, Алексей Любимов avl@cad.ru



             reply	other threads:[~2003-06-17 10:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-17 10:12 Alex Murygin [this message]
2003-06-18 10:22   ` Igor Tertishny
2003-06-18 11:06     ` Dmitry V. Levin

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=20030617131250.40ea7cef.murygin@altlinux.ru \
    --to=murygin@altlinux.ru \
    --cc=devel@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 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