ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] Ошибки в distribute
@ 2004-09-09 18:34 Ilya
  2004-09-09 19:39 ` Vitaly Lipatov
  2004-09-09 20:13 ` Vitaly Lipatov
  0 siblings, 2 replies; 6+ messages in thread
From: Ilya @ 2004-09-09 18:34 UTC (permalink / raw)
  To: sisyphus

Добрый вечер!

Странно, пакет distribute уже полтора года как не менялся,
(distribute-0.4.1-alt1), сам скрипт с февраля 2002.
Постоянно им пользуюсь, а сегодня при запуске

 /usr/bin/distribute Sisyphus --LAYOUT-FULL 09092004

Выдает кучу одинаковой повторяющейся ругани:

/usr/bin/distribute: line 427: totalsize +  > CDVOLUME : syntax error: 
operand expected (error token is "> CDVOLUME ")
/usr/bin/distribute: line 433: let: totalsize += : syntax error: operand 
expected (error token is " ")

Кстати,
CDVOLUME=4300400000

(месяц назад все было нормально с таким значением)

В результате игнорирования получаются iso по 5 Гб (для текущего полного 
Сизифа), что, естественно не позволяет записать их на DVD (имеющие 
размер 4.3 Гб).

Кстати, кто как записывает DVD с Сизифом?

Сизиф от 08092004
bug #5195



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

* Re: [sisyphus] Ошибки в distribute
  2004-09-09 18:34 [sisyphus] Ошибки в distribute Ilya
@ 2004-09-09 19:39 ` Vitaly Lipatov
  2004-09-09 22:34   ` Ilya
  2004-09-09 20:13 ` Vitaly Lipatov
  1 sibling, 1 reply; 6+ messages in thread
From: Vitaly Lipatov @ 2004-09-09 19:39 UTC (permalink / raw)
  To: oddity, ALT Linux Sisyphus discussion list

On Thursday 09 September 2004 22:34, Ilya wrote:

> /usr/bin/distribute: line 427: totalsize +  > CDVOLUME :
> syntax error: operand expected (error token is "> CDVOLUME ")
> /usr/bin/distribute: line 433: let: totalsize += : syntax
> error: operand expected (error token is " ")
Неужели. Я думал, это только у меня глюки. Оказывается, никто 
просто distribute не пользуется. Так функция getSize перестала 
работать - наверное изменилось что-то в xargs или около.

> Кстати, кто как записывает DVD с Сизифом?
Я записываю патченым distribute, см. багу на него в bugzilla.

-- 
Lav
Виталий Липатов
Санкт-Петербург
GNU! ALT Linux Team! LaTeX! LyX!


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

* Re: [sisyphus] Ошибки в distribute
  2004-09-09 18:34 [sisyphus] Ошибки в distribute Ilya
  2004-09-09 19:39 ` Vitaly Lipatov
@ 2004-09-09 20:13 ` Vitaly Lipatov
  2004-09-09 20:35   ` Dmitry V. Levin
  1 sibling, 1 reply; 6+ messages in thread
From: Vitaly Lipatov @ 2004-09-09 20:13 UTC (permalink / raw)
  To: oddity, ALT Linux Sisyphus discussion list

On Thursday 09 September 2004 22:34, Ilya wrote:

> /usr/bin/distribute: line 433: let: totalsize += : syntax
> error: operand expected (error token is " ")
Попробуйте такой патч:
--- distribute.old  2002-12-18 16:48:27 +0300
+++ distribute  2004-09-10 00:12:44 +0400
@@ -239,7 +239,7 @@
    trap failed ERR
    set -o errexit
    zeroDelimited "$@" | xargs -0 --no-run-if-empty \
-       stat --dereference --format='%s' --
+       stat --dereference --format='%s ' --
    #set +o errexit
     }
 fi
@@ -253,6 +253,15 @@
      && success || failure
 }


-- 
Lav
Виталий Липатов
Санкт-Петербург
GNU! ALT Linux Team! LaTeX! LyX!


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

* Re: [sisyphus] Ошибки в distribute
  2004-09-09 20:13 ` Vitaly Lipatov
@ 2004-09-09 20:35   ` Dmitry V. Levin
  0 siblings, 0 replies; 6+ messages in thread
From: Dmitry V. Levin @ 2004-09-09 20:35 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list; +Cc: Ivan Zakharyaschev

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

On Fri, Sep 10, 2004 at 12:13:43AM +0400, Vitaly Lipatov wrote:
> On Thursday 09 September 2004 22:34, Ilya wrote:
> 
> > /usr/bin/distribute: line 433: let: totalsize += : syntax
> > error: operand expected (error token is " ")
> Попробуйте такой патч:
> --- distribute.old  2002-12-18 16:48:27 +0300
> +++ distribute  2004-09-10 00:12:44 +0400
> @@ -239,7 +239,7 @@
>     trap failed ERR
>     set -o errexit
>     zeroDelimited "$@" | xargs -0 --no-run-if-empty \
> -       stat --dereference --format='%s' --
> +       stat --dereference --format='%s ' --
>     #set +o errexit
>      }
>  fi
> @@ -253,6 +253,15 @@

В Сизифе летом кардинально обновился пакет coreutils.
Поведение утилиты stat, как вы видите, изменилось
(/usr/share/doc/coreutils-5.3.0/ChangeLog.bz2):

2004-04-04  Jim Meyering  <jim@meyering....>

        A specified format is no longer automatically newline terminated.
        If you want a newline at the end of your format, use `\n'.
        * src/stat.c (print_it): Don't print a newline at the end of
        every format.
        (do_statfs): Add a newline at end of each default format string.

Виталий, предложенный вами патч, насколько я понимаю, будет работать как с
прежними версиями coreutils, так и с нынешней.  Так что, поскольку автор
пакета distribute не реагирует, приложите его и сделайте NMU.


-- 
ldv

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

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

* Re: [sisyphus] Ошибки в distribute
  2004-09-09 19:39 ` Vitaly Lipatov
@ 2004-09-09 22:34   ` Ilya
  2004-09-10  7:34     ` Vitaly Lipatov
  0 siblings, 1 reply; 6+ messages in thread
From: Ilya @ 2004-09-09 22:34 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

Четверг 09 Сентябрь 2004 23:39, Vitaly Lipatov написал:
> On Thursday 09 September 2004 22:34, Ilya wrote:
> > /usr/bin/distribute: line 427: totalsize +  > CDVOLUME :
> > syntax error: operand expected (error token is "> CDVOLUME ")
> > /usr/bin/distribute: line 433: let: totalsize += : syntax
> > error: operand expected (error token is " ")
>
> Неужели. Я думал, это только у меня глюки. Оказывается, никто
> просто distribute не пользуется. Так функция getSize перестала
> работать - наверное изменилось что-то в xargs или около.

Тоже подумал, что никто не пользуется и сразу залупил дубль-багу :)

Виталий, большое спасибо за патч - заработало!

>
> > Кстати, кто как записывает DVD с Сизифом?
>
> Я записываю патченым distribute, см. багу на него в bugzilla.

Испугался предупреждения о том, что не тестировалось более чем на одном 
диске :)

Пока не пробовал.


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

* Re: [sisyphus] Ошибки в distribute
  2004-09-09 22:34   ` Ilya
@ 2004-09-10  7:34     ` Vitaly Lipatov
  0 siblings, 0 replies; 6+ messages in thread
From: Vitaly Lipatov @ 2004-09-10  7:34 UTC (permalink / raw)
  To: oddity, ALT Linux Sisyphus discussion list

On Friday 10 September 2004 02:34, Ilya wrote:

> Виталий, большое спасибо за патч - заработало!
Я тоже рад.

> Испугался предупреждения о том, что не тестировалось более чем
> на одном диске :)
Так вы потестируйте _пожалуйста_, я надеюсь всё будет нормально.
Только там наверное паузы не будет - надо добавить Press any key?

-- 
Lav
Виталий Липатов
Санкт-Петербург
GNU! ALT Linux Team! LaTeX! LyX!


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

end of thread, other threads:[~2004-09-10  7:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-09 18:34 [sisyphus] Ошибки в distribute Ilya
2004-09-09 19:39 ` Vitaly Lipatov
2004-09-09 22:34   ` Ilya
2004-09-10  7:34     ` Vitaly Lipatov
2004-09-09 20:13 ` Vitaly Lipatov
2004-09-09 20:35   ` Dmitry V. Levin

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

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

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


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