ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Vladimir Lettiev <crux@syktsu.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] rpm --bb ./specfile не пашет
Date: Thu, 20 May 2004 20:22:28 +0400
Message-ID: <40ACDB44.7080600@syktsu.ru> (raw)
In-Reply-To: <20040515171842.GA19981@basalt.office.altlinux.org>

Dmitry V. Levin пишет:

> On Sat, May 15, 2004 at 08:55:23PM +0400, Ildar Mulyukov wrote:
> 
>>Yuri N. Glibovetz wrote:
>>
>>>Ivan Angarskiy пишет:
>>>
>>>
>>>>$rpm -bb ./samba.spec
>>>>./samba.spec: No such file or directory 
>>>
>>>rpm-build не установлен
>>
>>В конце концов надо что-нибудь тяжёлое повесить на rpm, чтобы он это не 
>>писал. А писал что-нибудь вразумительное.
> 
> 
> Да висит уже давно,
> http://bugzilla.altlinux.ru/show_bug.cgi?id=1928
> 
> Вот бы исправил тот, кому это действительно мешает.
> А то так и будет висеть.
> 

А вы знаете, похоже rpm тут вообще не причём. Багу надо исправлять в 
пакете libpopt.

Вот примерно такой патч:

--- popt-20020315.orig/popt.c	2004-05-20 02:23:28 +0400
+++ popt-20020315/popt.c	2004-05-20 09:38:38 +0400
@@ -438,6 +438,11 @@
  #endif

      rc = execvp(argv[0], (char *const *)argv);
+
+    con->optionStack->next = 1;
+    con->nextLeftover = 0;
+//    con->optionStack->argv[0] = argv[0];
+
      return POPT_ERROR_ERRNO;
  }

Это заставляет execComand() при неудачном вызове /usr/lib/rpm/rpmb 
позиционировать "каретку" на нулевой аргумент argv[], т.е. на имя 
исполняемого файла, а не на последний аргумент в строке.
Одну строчку я закомментировал, т.к. пока не представляю как надо 
правильно преобразовать типы данных, поскольку con->optionStack->argv[0] 
- это похоже char *, а argv[0] - const char ** ...

В итоге при пересборке libpopt, при неустановленном rpm-build выводится 
сообщение:
$rpm -bb ./samba.spec
rpm: No such file or directory

Если правильно прописать преобразование в закомментированной строке, то 
теоретически будет так:
$rpm -bb ./samba.spec
/usr/lib/rpm/rpmb: No such file or directory

что и требовалось доказать...

Прошу помощи в доведении патча до нормального состояния...


-- 
С уважением, Леттиев Владимир aka crux <crux@syktsu.ru>


  parent reply	other threads:[~2004-05-20 16:22 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-15  8:14 "Ivan Angarskiy" 
2004-05-15  8:32 ` Yuri N. Glibovetz
2004-05-15 16:55   ` Ildar Mulyukov
2004-05-15 17:18     ` Dmitry V. Levin
2004-05-16 17:50       ` [sisyphus] " Michael Shigorin
2004-05-16 20:11         ` Dmitry V. Levin
2004-05-17  4:00           ` Vladimir Lettiev
2004-05-17  7:48           ` Michael Shigorin
2004-05-20 12:52         ` Alexey Tourbin
2004-05-20 14:14           ` Michael Shigorin
2004-05-20 16:22       ` Vladimir Lettiev [this message]
2004-05-21 13:25         ` [sisyphus] " Dmitry V. Levin
2004-05-21 18:19           ` Vladimir Lettiev
2004-05-21 20:41             ` Dmitry V. Levin
2004-05-22  4:45               ` Vladimir Lettiev

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=40ACDB44.7080600@syktsu.ru \
    --to=crux@syktsu.ru \
    --cc=sisyphus@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 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