ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Q: alternatives
@ 2004-02-23 15:06 Alexey Tourbin
  2004-02-24  9:09 ` Stanislav Ievlev
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Tourbin @ 2004-02-23 15:06 UTC (permalink / raw)
  To: devel

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [devel] Q: alternatives
  2004-02-23 15:06 [devel] Q: alternatives Alexey Tourbin
@ 2004-02-24  9:09 ` Stanislav Ievlev
  0 siblings, 0 replies; 2+ messages in thread
From: Stanislav Ievlev @ 2004-02-24  9:09 UTC (permalink / raw)
  To: ALT Devel discussion list

On Mon, Feb 23, 2004 at 06:06:04PM +0300, Alexey Tourbin wrote:
> Здравствуйте.
> 
> Кажется, есть такая проблема: если конфигурационный файл альтернативы
> существенно изменяется (например, вследствие исправления ошибки), то
> возникают проблемы при обновлении.  В примеры ниже первым обновляется
> пакет lua4, и его скрипт отрабатывает неправильно.  Следом идет
> обновление lua5 с аналогичным (синхронным) исправлением, при этом скрипт
> отрабатывает уже успешно.
> 
> Кто-нибудь может объяснить/предложить решение?
Строгости проверки не хотелось бы снижать. Уж больно много багов благодаря
им я нашёл в своё время.
А в качестве решения проблемы пока могу только предложить игнорировать код
возврата. Когда установится последний изменённый пакет - последний запуск
update пройдёт успешно и всё восстановится.
> 
> $ 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>



> _______________________________________________
> Devel mailing list
> Devel@altlinux.ru
> http://www.altlinux.ru/mailman/listinfo/devel



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-02-24  9:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-23 15:06 [devel] Q: alternatives Alexey Tourbin
2004-02-24  9:09 ` Stanislav Ievlev

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