Red Hat Bugzilla – Bug 151866
%post script error "gcj-dbtool: command not found" when installing
Last modified: 2007-11-30 17:11:02 EST
Description of problem:
Doing a kickstart install of fc4test1 and only selecting eclipse-cdt (with
--resolvedeps) results in the following error when running the %post scripts of
eclipse-cdt and eclipse-platform::
/var/tmp/rpm-tmp.69579: line 4: gcj-dbtool: command not found
Looks like a %PreReq line is missing.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Thanks for catching this. The eclipse-cdt is missing a Requires gcc-java.
eclipse-platform should not have the error as it Requires: gcc-java (which is
what provides gcj-dbtool).
The other plugins (changelog, buzilla) will need to have gcc-java added to their
According to the install logs, gcc-java was installed after eclipse-cdt and
Problem might be related to it being a slightly customized version of fc4test1.
However I do use pkgorder when building. I'll try with a plain rawhide install
See this with today's (unmodified) rawhide.
The new CDT with the Requires should be in Rawhide this morning (along with
updated CDT 3.0 M5 sources). Give that a try, and see how it works.
Finally got rawhide to install again. Seeing something similar:
/var/tmp/rpm-tmp.70969: line 1: rebuild-gcj-db: command not found
error: %post(eclipse-cdt-3.0.0_fc-0.M5.3.i386) scriptlet failed, exit status 127
/var/tmp/rpm-tmp.10476: line 1: rebuild-gcj-db: command not found
So, maybe another dependency?
# rpm -qf /usr/bin/rebuild-gcj-db
Yes, this was a change recently made (they moved all the gcj db manipulation to
a convienient script). Looks like the requires needs to be tweaked to include
what you posted. Thanks again, for catching!
Appears to have cropped up again, different component:
/var/tmp/rpm-tmp.66871: line 1: /usr/bin/rebuild-gcj-db: No such file or directory
error: %post(eclipse-ecj-3.1.0_fc-0.M6.10.i386) scriptlet failed, exit status 127
I'm not sure why this happened to you. We have java-1.4.2-gcj-compat in the
Requires(post,postun) for each sub-package. I'll add a specific nvr of j-g-c
and see if that helps. Watch for a new release tomorrow.
This should be fixed with the build of rpm that happened today.
No install messages on latest rawhide. Closing again.