Bug 506036
Summary: | [fix available] rpmbuild fails when java-1.6.0-*-devel is installed | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | David Tardon <dtardon> |
Component: | openoffice.org | Assignee: | David Tardon <dtardon> |
Status: | CLOSED ERRATA | QA Contact: | desktop-bugs <desktop-bugs> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 5.4 | CC: | caolanm, kxiong, llim, mshao |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-03-30 08:45:34 UTC | Type: | --- |
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
David Tardon
2009-06-15 11:28:26 UTC
Created attachment 347916 [details]
relevant snippet of instsetoo_native/unxlngx6.pro/OpenOffice/rpm/logging/en-US/log_OOG680_en-US.log
Created attachment 347917 [details]
fix
The situation is just the same with java-1.6.0-openjdk-devel. Steps to reproduce remain as described in comment 0, except that step 2 is not relevant here. I considered the problem more and I think now it would be better to always enforce building with gcj (ecj) than to instruct javac (through ant) to generate 1.4 compatible bytecode. The following patches do that. Hopefully it would make an end to java-related build problems. Created attachment 362034 [details]
set relevant variables in spec
Created attachment 362035 [details]
don't use gcj-specific options, as ecj doesn't recognize them
hi, I have tried many times on all arches on our stable systems,every time it fails.I am not sure whether I miss something,the log as follows: ************************************************** ERROR: ERROR: Could not register all components for file services.rdb (gid_Starregistry_Services_Rdb)! in function: create_services_rdb ************************************************** ************************************************** ERROR: Saved logfile: /usr/src/redhat/BUILD/OOO310_m19/instsetoo_native/unxlngi6.pro/OpenOffice/rpm/logging/en-US/log_OOO310_en-US.log ************************************************** dmake: Error code 255, while making 'openoffice_en-US' + echo - ---dump log start--- + cat ../unxlngi6.pro/OpenOffice/rpm/logging/en-US/log_OOO310_en-US.log + echo - ---dump log end--- + dmake openoffice_en-US Subroutine installer::epmfile::getcwd redefined at /usr/lib/perl5/5.8.8/Exporter.pm line 65. at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/POSIX.pm line 19 rmdir: /usr/src/redhat/BUILD/OOO310_m19/instsetoo_native/unxlngi6.pro/OpenOffice/rpm/logging/: Directory not empty javavm.uno.so javaloader.uno.so stocservices.uno.so ************************************************** ERROR: ERROR: Could not register all components for file services.rdb (gid_Starregistry_Services_Rdb)! in function: create_services_rdb ************************************************** ************************************************** ERROR: Saved logfile: /usr/src/redhat/BUILD/OOO310_m19/instsetoo_native/unxlngi6.pro/OpenOffice/rpm/logging/en-US/log_OOO310_en-US.log ************************************************** dmake: Error code 255, while making 'openoffice_en-US' error: Bad exit status from /var/tmp/rpm-tmp.2148 (%install) Bad exit status from /var/tmp/rpm-tmp.2148 (%install) Please help me look at the log,thank you very much! dtardon->kxiong: I've already sent you a mail with explanation. Following the steps that described in the comment 0, now after using "rpmbuild --rebuild openoffice.org-3.1.1-19.5.el5.src.rpm", it can generate RPMs and no error. So this bug is verified in openoffice.org-3.1.1-19.5.el5. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0274.html |