[et-mgmt-tools] cft pre-requisites ruby(abi) and rhel4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



David and List,

I am trying to install cft on a test centos-4.4 (i386) server, using David's yum repo..

# yum --enablerepo=dlutter-rhel4 install cft
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package cft.noarch 0:0.1.0-2.el4 set to be updated
--> Running transaction check
--> Processing Dependency: ruby(abi) = 1.8 for package: cft
--> Processing Dependency: ruby-fam for package: cft
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package ruby-fam.i386 0:0.2.0-4.el4 set to be updated
--> Running transaction check
--> Processing Dependency: ruby(abi) = 1.8 for package: cft
--> Finished Dependency Resolution
Error: Missing Dependency: ruby(abi) = 1.8 is needed by package cft

Since ruby(abi) is not available for RHEL4, can you exclude it from the 'Requires'? here is small patch to fix the spec file.

[root@other ~]# diff -u delme/cft.spec cft.spec
--- delme/cft.spec      2007-01-26 06:56:41.000000000 +0530
+++ cft.spec    2007-03-13 21:33:44.000000000 +0530
@@ -1,5 +1,8 @@
%{!?ruby_sitelibdir: %define ruby_sitelibdir %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]')}

+%define has_ruby_abi 0%{?fedora:%fedora} >= 5 || 0%{?rhel:%rhel} >= 5
+%define has_ruby_noarch %has_ruby_abi
+
 Summary: Config file tracker
 Name: cft

@@ -10,7 +13,10 @@
 URL: http://cft.et.redhat.com/
 Source: http://cft.et.redhat.com/download/cft-%{version}.tgz
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires: ruby >= 1.8.1
+%if %has_ruby_abi
 Requires: ruby ruby(abi) = 1.8
+%endif
 # FIXME: what version ?
 Requires: puppet
 Requires: ruby-fam

- dhawal


[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux