ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Q: strange %_tmppath usage
@ 2003-02-10  3:58 Anton V. Denisov
  2003-02-10  6:09 ` Dmitry V. Levin
  0 siblings, 1 reply; 3+ messages in thread
From: Anton V. Denisov @ 2003-02-10  3:58 UTC (permalink / raw)
  To: devel

Приветствую всех.

Было у меня в ~/.rpmmacros определено:
%_topdir %homedir/RPM
%_tmppath %_topdir/TEMP

И вот что однажды случилось:

[anton@Linux i686]$ sudo rpm -ivh nntpcache-3.0.1-alt0.1.i686.rpm
Подготовка...
##################################################
предупреждение: created %_tmppath directory /root/RPM/TEMP
nntpcache
##################################################

Зачем при установке пакета rpm понадобилось использовать %_tmppath?
И почему он считал пользовательский .rpmmacros, в то время как у root'а
есть свой ~/.rpmmacros, где определено другое значение %_tmppath.
P.S. rpm-4.0.4-alt11

С уважением, Антон В. Денисов.





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

* Re: [devel] Q: strange %_tmppath usage
  2003-02-10  3:58 [devel] Q: strange %_tmppath usage Anton V. Denisov
@ 2003-02-10  6:09 ` Dmitry V. Levin
  2003-02-11  3:29   ` Anton V. Denisov
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry V. Levin @ 2003-02-10  6:09 UTC (permalink / raw)
  To: ALT Devel discussion list

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

On Mon, Feb 10, 2003 at 03:58:10PM +1200, Anton V. Denisov wrote:
> Было у меня в ~/.rpmmacros определено:
> %_topdir %homedir/RPM
> %_tmppath %_topdir/TEMP
> 
> И вот что однажды случилось:
> 
> [anton@Linux i686]$ sudo rpm -ivh nntpcache-3.0.1-alt0.1.i686.rpm
> Подготовка...
> ##################################################
> предупреждение: created %_tmppath directory /root/RPM/TEMP
> nntpcache
> ##################################################
> 
> Зачем при установке пакета rpm понадобилось использовать %_tmppath?

Скорее всего, из-за скриптов в пакете.

> И почему он считал пользовательский .rpmmacros, в то время как у root'а
> есть свой ~/.rpmmacros, где определено другое значение %_tmppath.

Цитирую sudo(8):
"The -H (HOME) option sets the HOME environment variable to the
homedir of the target user (root by default) as specified in
passwd(5).  By default, sudo does not modify HOME."


--
ldv

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

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

* Re: [devel] Q: strange %_tmppath usage
  2003-02-10  6:09 ` Dmitry V. Levin
@ 2003-02-11  3:29   ` Anton V. Denisov
  0 siblings, 0 replies; 3+ messages in thread
From: Anton V. Denisov @ 2003-02-11  3:29 UTC (permalink / raw)
  To: devel

Приветствую всех.

Снова проблемы с sudo и %_tmppath в ~/.rpmmacros. Вызвал от пользователя
sudo apt-get dist-upgrade, посмотрел, что он мне предлагает обновить, и
отказался (нажал n), после этого экран заполнился двумя сменяющимися
сообщениями:
rpmdb: /root/RPM/TEMP: No such file or directory
rpmdb: unable to create temporary backing file
Они мелькали на экране, пока не нажал Ctrl+C. Похоже на проблему в rpmlib.

С уважением, Антон В. Денисов.





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

end of thread, other threads:[~2003-02-11  3:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-10  3:58 [devel] Q: strange %_tmppath usage Anton V. Denisov
2003-02-10  6:09 ` Dmitry V. Levin
2003-02-11  3:29   ` Anton V. Denisov

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