Bug 273881

Summary: rawhide RPM don't build java package ouside a jar file
Product: [Fedora] Fedora Reporter: Alphonse Van Assche <alcapcom>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 8CC: pnasrat, triage
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard: bzcl34nup
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-11-06 19:05:58 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 Alphonse Van Assche 2007-09-01 15:08:12 UTC
Description of problem:
rpmbuild fails because check-buildroot find the build root in the debuginfo
package of a unpacked eclipse plugin (Java natively build program).
Perhaps, any Java program outside a jar file may have the same troubles.

Version-Release number of selected component (if applicable):
rpm 4.4.2.2-0.1.rc1

How reproducible:
mkdir tmp && cd tmp
wget http://alcapcom.fedorapeople.org/SRPMS/eclipse-rse-2.0.0.1-1.fc7.src.rpm
mock -r fedora-8-i386-core eclipse-rse-2.0.0.1-1.fc7.src.rpm
  
Actual results:
Binary file
/var/tmp/eclipse-rse-2.0.0.1-1.fc8-root-mockbuild/usr/lib/debug/usr/lib/gcj/eclipse-rse/org.eclipse.rse.services.dstore_2.0.0.200708141456.so.debug
matches
Binary file
/var/tmp/eclipse-rse-2.0.0.1-1.fc8-root-mockbuild/usr/lib/debug/usr/lib/gcj/eclipse-rse/org.eclipse.rse.services.telnet_1.0.0.200708141456.so.debug
matche
Binary file
/var/tmp/eclipse-rse-2.0.0.1-1.fc8-root-mockbuild/usr/lib/debug/usr/lib/gcj/eclipse-rse/org.eclipse.dstore.extra_2.0.0.200708141456.so.debug
matches
Binary file
/var/tmp/eclipse-rse-2.0.0.1-1.fc8-root-mockbuild/usr/lib/debug/usr/lib/gcj/eclipse-rse/org.eclipse.rse.services_2.0.0.200708141456.so.debug
matches
Binary file
/var/tmp/eclipse-rse-2.0.0.1-1.fc8-root-mockbuild/usr/lib/debug/usr/lib/gcj/eclipse-rse/org.eclipse.rse.services.files.ftp_2.0.0.200708141456.so.debug
matches
Found '/var/tmp/eclipse-rse-2.0.0.1-1.fc8-root-mockbuild' in installed
files; aborting

Expected results:
The package just build like on F-7 with (rpm-4.4.2.1-1.fc7)

Additional info:
There is already a workaround on the check-buildroot script to not check
.jar.so.debug files, thus the problem with buildroot string inside Java
debuginfo package seems to not be a new stuff.

The problem seems to come from the last changes added to make working the new
BuildID feature.

Comment 1 Panu Matilainen 2007-09-04 06:36:07 UTC
This is possibly due to me accidentally removing a patch that I thought was
already upstream but wasn't. If that's the case then the next rawhide build
should fix it. Can you try the packages from this build and see if it fixes this
for you? http://koji.fedoraproject.org/koji/taskinfo?taskID=146588

Comment 2 Alphonse Van Assche 2007-09-04 11:10:02 UTC
Hello Panu,

I don't have a rawhide machine under the hand to test this RPM version, If you
have one can you please make a try with this srpm ->
http://alcapcom.fedorapeople.org/SRPMS/eclipse-rse-2.0.0.1-4.fc7.src.rpm

Otherwise, I should wait that this version is in rawhide to test it.

Thanks,

Comment 3 Panu Matilainen 2007-09-04 11:22:58 UTC
Actually the one referred to above was buggy in other ways so...

I don't have a rawhide box either, but it'll be included in next rawhide push
(rpm 4.4.2.2-0.3.rc1)

Comment 4 Alphonse Van Assche 2007-09-13 19:08:18 UTC
Have just make a try with (rpm-4.4.2.2-0.5.rc2) but the problem persist.

Comment 5 Panu Matilainen 2007-09-25 05:44:27 UTC
Ok it seems that this isn't related to the new find-debuginfo or buildid changes
at all, but instead an old problem that's just exposed now by rawhide having
post-build check-buildroot check run by default (which F7 didn't do).

One way to work around the issue is to disable the native compilation of
problematic bits (like was done here:
http://cvs.fedoraproject.org/viewcvs/devel/struts/struts.spec?r1=1.48&r2=1.49&diff_format=u)
but it'd be nice to find some generic, proper solution to this... We can't go
adding specific excludes to the check-buildroot script for every other java
package :-/

Comment 6 Bug Zapper 2008-04-04 13:43:58 UTC
Based on the date this bug was created, it appears to have been reported
during the development of Fedora 8. In order to refocus our efforts as
a project we are changing the version of this bug to '8'.

If this bug still exists in rawhide, please change the version back to
rawhide.
(If you're unable to change the bug's version, add a comment to the bug
and someone will change it for you.)

Thanks for your help and we apologize for the interruption.

The process we're following is outlined here:
http://fedoraproject.org/wiki/BugZappers/F9CleanUp

We will be following the process here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping to ensure this
doesn't happen again.