Bug 845539

Summary: hsqldb installation errors
Product: Red Hat Enterprise Linux 6 Reporter: Oleg L. Sadov <sadov>
Component: hsqldbAssignee: Mikolaj Izdebski <mizdebsk>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3CC: ajb, csieh, jcpunk, mizdebsk, toracat
Target Milestone: rcKeywords: EasyFix, Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-19 08:39:01 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:
Attachments:
Description Flags
Add missing Requires: java none

Description Oleg L. Sadov 2012-08-03 11:38:04 UTC
Description of problem:
Installation of hsqldb package on system without installed Java environment finished with error messages.

Version-Release number of selected component (if applicable):
hsqldb-1.8.0.10-9.el6.noarch

How reproducible:
Try to install hsqldb package on system without installed Java environment.

Steps to Reproduce:
1. Install system without Java environment.
2. Install hsqldb-1.8.0.10-9.el6.noarch package
3.
  
Actual results:

Error messages:
ln: target `hsqldb.jar' is not a directory
ln: target `servlet.jar' is not a directory
warning: %post(hsqldb-1:1.8.0.10-9.el6.noarch) scriptlet failed, exit

Symbolic links for hsqldb.jar and servlet.jar in /var/lib/hsqldb/lib not formed.

Expected results:
Installtion without error messages. Creating symbolic links for hsqldb.jar and servlet.jar in /var/lib/hsqldb/lib.

Additional info:
Error in postinstall scriptlet is generated by build-classpath shell-script which can't find Java environment:

# build-classpath hsqldb
Can't find java virtual machine, aborting.
# build-classpath apache-tomcat-apis/tomcat-servlet2.5-api
Can't find java virtual machine, aborting.

After installing of java-1.6.0-openjdk package installation of hsqldb package finished successfully.

Possible solution -- add requirements for java to hsqldb or jpackage-utils packages.

Comment 2 Mikolaj Izdebski 2012-08-03 12:38:33 UTC
Created attachment 602127 [details]
Add missing Requires: java

Reproduced on Red Hat Enterprise Linux Server release 6.3 (Santiago).
Patch is attached.

Workaround: install java before installing hsqldb.

Comment 5 Mikolaj Izdebski 2012-09-19 08:39:01 UTC

*** This bug has been marked as a duplicate of bug 827343 ***