ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: devel@altlinux.ru
Subject: [devel] Q: alternatives
Date: Mon, 23 Feb 2004 18:06:04 +0300
Message-ID: <20040223150604.GJ6380@solemn.turbinal.org> (raw)

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

Здравствуйте.

Кажется, есть такая проблема: если конфигурационный файл альтернативы
существенно изменяется (например, вследствие исправления ошибки), то
возникают проблемы при обновлении.  В примеры ниже первым обновляется
пакет lua4, и его скрипт отрабатывает неправильно.  Следом идет
обновление lua5 с аналогичным (синхронным) исправлением, при этом скрипт
отрабатывает уже успешно.

Кто-нибудь может объяснить/предложить решение?

$ rpm -qa '*lua*'
liblua5-5.0-alt7.2
lua4-4.0.1-alt8.1
lua4-4.0.1-alt8.2
liblua4-4.0.1-alt8.2
lua5-5.0-alt7.2
liblua5-devel-5.0-alt7.2
$ sudo rpm -e --nodeps --allmatches `rpm -qa '*lua*'`
$ rpm -qa '*lua*'
$ cd Sisyphus/i586/RPMS.classic
$ sudo rpm -iv liblua4-4.0.1-alt8.1.i586.rpm liblua5-5.0-alt7.1.i586.rpm liblua5-devel-5.0-alt7.1.i586.rpm lua4-4.0.1-alt8.1.i586.rpm lua5-5.0-alt7.1.i586.rpm
Preparing packages for installation...
liblua4-4.0.1-alt8.1
liblua5-5.0-alt7.1
liblua5-devel-5.0-alt7.1
lua4-4.0.1-alt8.1
lua5-5.0-alt7.1
$ cd ~/build/repo/i586/RPMS.hasher
$ sudo rpm -Uv liblua4-4.0.1-alt8.2.i586.rpm liblua5-5.0-alt7.2.i586.rpm liblua5-devel-5.0-alt7.2.i586.rpm lua4-4.0.1-alt8.2.i586.rpm lua5-5.0-alt7.2.i586.rpm
Preparing packages for installation...
liblua4-4.0.1-alt8.2
liblua5-5.0-alt7.2
liblua5-devel-5.0-alt7.2
lua4-4.0.1-alt8.2
runtime error: void AltStorage::parse() : /usr/bin/lua4 : number of slaves differ from number of slaves in alternative
error: execution of %post scriptlet from lua4-4.0.1-alt8.2 failed, exit status 1
lua5-5.0-alt7.2
$ echo $?
5
$ rpm -qa lua4
lua4-4.0.1-alt8.1
lua4-4.0.1-alt8.2
$

--- lua4-4.0.1-alt8.1/lua4.spec	2004-02-02 00:49:23 +0000
+++ lua4-4.0.1-alt8.2/lua4.spec	2004-02-23 14:15:51 +0000
@@ -4,7 +4,7 @@
 
 Name: %realname%sover
 Version: 4.0.1
-Release: alt8.1
+Release: alt8.2
 
 Summary: Lua is a powerful, light-weight programming language
 License: BSD-like
@@ -140,8 +140,8 @@ gcc $CFLAGS %optflags *.c -o $DEST/luac 
 	<option name="real">%_bindir/lua%sover</option>
 	<option name="weight" type="number">%weight</option>
 	<group name="slave">
-		<option name="link">%_bindir/luac.1.gz</option>
-		<option name="real">%_bindir/luac%sover.1.gz</option>
+		<option name="link">%_bindir/luac</option>
+		<option name="real">%_bindir/luac%sover</option>
 	</group>
 	<group name="slave">
 		<option name="link">%_man1dir/%realname.1.gz</option>

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

             reply	other threads:[~2004-02-23 15:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-23 15:06 Alexey Tourbin [this message]
2004-02-24  9:09 ` Stanislav Ievlev

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=20040223150604.GJ6380@solemn.turbinal.org \
    --to=at@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