Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 885236

Summary: Unable to install spacewalk-postgresql
Product: [Community] Spacewalk Reporter: Ryan <ryankimbrell>
Component: InstallationAssignee: Jan Pazdziora (Red Hat) <jpazdziora>
Status: CLOSED NOTABUG QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.8CC: jpazdziora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-07 21:30:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1484117    

Description Ryan 2012-12-07 21:10:49 UTC
Description of problem:
Unable to resolve dependencies when running `yum install spacewalk-postgresql`.

Version-Release number of selected component (if applicable):
spacewalk-postgresql-1.8.6-1

How reproducible:
Every time.

Steps to Reproduce:
1.`yum install spacewalk-postgresql`
  
Actual results:
--> Processing Dependency: /usr/bin/psql for package: spacewalk-postgresql-1.8.6-1.el6.noarch
--> Finished Dependency Resolution
Error: Package: spacewalk-postgresql-1.8.6-1.el6.noarch (spacewalk)
           Requires: /usr/bin/psql
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Expected results:
Successful dependency resolution and installation of all required packages.

Additional info:
System is running Postgresql 9.2.1 from Postgresql's YUM repository.  /usr/bin/psql exists.  It is a symlink:

lrwxrwxrwx. 1 root root 28 Dec  7 14:12 /usr/bin/psql -> /etc/alternatives/pgsql-psql

Comment 1 Jan Pazdziora (Red Hat) 2012-12-07 21:30:54 UTC
Spacewalk assumes you use PostgreSQL distributed with the OS on which you install the server. If you install different rpms from different repositories, the results may be undefined as those packages may provide different paths or versions.

If you don't like the Requires list in the spacewalk-postgresql package, just don't use it and install all its dependencies manually. The package is really just a list of Requires, it has no other content per se.

Comment 2 Ryan 2012-12-07 22:01:24 UTC
Thank you.  Just wanted to confirm that using postgresql distributed with the OS works.  I guess it did not work with /usr/bin/psql being a symlink.

Comment 3 Eric Herget 2017-09-28 17:56:49 UTC
This BZ closed some time during 2.5, 2.6 or 2.7.  Adding to 2.7 tracking bug.