Bug 224153

Summary: either a missing build requirement or a missing --disable-XXX configure option
Product: [Fedora] Fedora Reporter: Karsten Hopp <karsten>
Component: gettextAssignee: Jens Petersen <petersen>
Status: CLOSED WORKSFORME QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: eng-i18n-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-03-26 03:17:39 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:

Description Karsten Hopp 2007-01-24 13:59:03 UTC
Description of problem:
gettext builds a jar file when java is present in the build environment and
rpmbuild fails due to an unpackaged file:

Checking for unpackaged file(s): /usr/lib/rpm/check-files
/var/tmp/gettext-0.16.1-3.fc7.src.rpm-root
error: Installed (but unpackaged) file(s) found:
   /usr/share/gettext/libintl.jar
Version-Release number of selected component (if applicable):
gettext-0.16.1-3.fc7

Comment 1 Jens Petersen 2007-02-01 02:28:14 UTC
Can you attach the buildroot package list (maybe gzipped?)
I'm having trouble getting the Java compiler to be recognised
by configure.

I have these installed at least:
gcc-java-4.1.1-51.fc6
java-1.4.2-gcj-compat-1.4.2.0-40jpp.110
libgcj-4.1.1-51.fc6
libgcj-devel-4.1.1-51.fc6

(The configure behaviour for gcj seems to have changed from gettext-0.15.)

Comment 2 Jens Petersen 2007-02-01 04:05:30 UTC
According to Bruno Haible on bugs-gnu-utils, gcj < 4.3 can't create
fully portable .jar files and that is why recent gettext is not compiling
libintl.jar.

Perhaps you have some java installed why is building it for you?

Comment 3 Karsten Hopp 2007-02-01 10:09:22 UTC
I'm not entirely sure as I've already deleted the buildroot, but I think I had
the following packages installed:
gcc-java-4.1.1-53
java-1.4.2-gcj-compat-1.4.2.0-40jpp.111
libgcj-4.1.1-53
libgcj-devel-4.1.1-53

But the problem here is probably that you should add a 'rm -f
$RPM_BUILD_ROOT/%{_datadir}/%{name}/libintl.jar' or '--disable-java' to the
configure options if you don't want to ship this file and it just happens to
build sometimes.

Comment 4 Jens Petersen 2007-02-01 23:40:54 UTC
Here is the reply on bugs-gnu-utils for the record:
http://lists.gnu.org/archive/html/bug-gnu-utils/2007-01/msg00098.html

"--disable-java" also removes other java related files
so I don't really want to do that.

Do you remember what tree you used for the test build?  It might give more clues.

It really shouldn't be possible to build that .jar file with gcj < 4.3.

Comment 5 Jens Petersen 2007-03-26 03:17:39 UTC
I added a build switch for the jar file.