ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] RPM versioning bug?
@ 2000-10-07 21:25 Mikhail Zabaluev
  2000-10-08 21:32 ` Dmitry V. Levin
  2000-10-21 22:54 ` Dmitry V. Levin
  0 siblings, 2 replies; 5+ messages in thread
From: Mikhail Zabaluev @ 2000-10-07 21:25 UTC (permalink / raw)
  To: devel

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

Доброе время суток.

Занимаясь версиями и эпохами в пакетах RPM, обнаружил такой эффект:
если одному пакету в spec приписана эпоха тэгом 'Epoch:', и другой пакет
требует версию из этой эпохи, такая зависимость не проходит, даже если
требуемая версия совпадает с версией установленного первого пакета.
Помогает только тупое указание в 'Provides:' первого пакета его имени и
версии с эпохой. Пример spec'а прилагается.
Об этом, наверное, неплохо бы доложить на RH Bugzilla...

-- 
Stay tuned,
  MhZ                                    mailto:mookid@sigent.ru
-----------
Truth can wait; he's used to it.

[-- Attachment #2: test.spec --]
[-- Type: text/plain, Size: 901 bytes --]

%define dummypath /home/mhz/tmp

Name:		test
Summary:	Dependency testing package
Group:		Test
Epoch:		1
Version:	5.6.0
Release:	1
License:	strictly commercial ;)
Provides:	test = 0:5.600
#the following directive makes everything work:
#Provides:	test = 1:5.6.0 test = 0:5.600
BuildArchitectures: noarch

BuildRoot: %{_tmppath}/%{name}-buildroot

%description
This package provides itself with different versions in two epochs.

%package dependent
Summary:	package dependent on the 'test' package
Group:		Test

Requires: test = 1:5.6.0

%description dependent
This package has a versioned dependency on the test package.

%install

mkdir -p $RPM_BUILD_ROOT%{dummypath}
touch $RPM_BUILD_ROOT%{dummypath}/{dummy,dummy1}

%clean
rm -rf $RPM_BUILD_ROOT

%post

echo 'test is installed.'

%post dependent

echo 'test-dependent is installed.'

%files
%{dummypath}/dummy

%files dependent
%{dummypath}/dummy1

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

end of thread, other threads:[~2000-10-21 22:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-07 21:25 [devel] RPM versioning bug? Mikhail Zabaluev
2000-10-08 21:32 ` Dmitry V. Levin
2000-10-09  3:34   ` Mikhail Zabaluev
2000-10-09  7:52     ` Dmitry V. Levin
2000-10-21 22:54 ` Dmitry V. Levin

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