Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=915437
Bug ID: 915437 Summary: bootstrap has installed but unpackaged files Product: Fedora Version: rawhide Component: ant Severity: unspecified Priority: unspecified Reporter: gregswift@gmail.com
Created attachment 702472 --> https://bugzilla.redhat.com/attachment.cgi?id=702472&action=edit Patch that clens out unpackaged files.
Description of problem: Went to use spec to build ANT for RHEL and when I ran through the build in bootstrap mode it found a bunch of files that were installed but unpackaged. These files belong to the subpackages that are conditionally excluded during bootstrap. I updated the bootstrap cleanup section of %install to remove the files.
Version-Release number of selected component (if applicable): 1.8.4-6
How reproducible: I'll concede I only tried in rhel6, not fedora.
Steps to Reproduce: 1. git clone http://pkgs.fedoraproject.org/cgit/ant.git/ 2. move the spec and sources to appropriate directories in rpmbuild tree 3. rpmbuild --define 'with_bootstrap 1' ant.spec
Actual results: error: Installed (but unpackaged) file(s) found: /usr/share/ant/lib/ant-antlr.jar /usr/share/ant/lib/ant-apache-bcel.jar /usr/share/ant/lib/ant-apache-bsf.jar /usr/share/ant/lib/ant-apache-log4j.jar /usr/share/ant/lib/ant-apache-oro.jar /usr/share/ant/lib/ant-apache-regexp.jar /usr/share/ant/lib/ant-apache-resolver.jar /usr/share/ant/lib/ant-apache-xalan2.jar /usr/share/ant/lib/ant-commons-logging.jar /usr/share/ant/lib/ant-commons-net.jar /usr/share/ant/lib/ant-javamail.jar /usr/share/ant/lib/ant-jdepend.jar /usr/share/ant/lib/ant-jsch.jar /usr/share/ant/lib/ant-junit4.jar /usr/share/java/ant/ant-antlr.jar /usr/share/java/ant/ant-apache-bcel.jar /usr/share/java/ant/ant-apache-bsf.jar /usr/share/java/ant/ant-apache-log4j.jar /usr/share/java/ant/ant-apache-oro.jar /usr/share/java/ant/ant-apache-regexp.jar /usr/share/java/ant/ant-apache-resolver.jar /usr/share/java/ant/ant-apache-xalan2.jar /usr/share/java/ant/ant-commons-logging.jar /usr/share/java/ant/ant-commons-net.jar /usr/share/java/ant/ant-javamail.jar /usr/share/java/ant/ant-jdepend.jar /usr/share/java/ant/ant-jsch.jar /usr/share/java/ant/ant-junit4.jar
RPM build errors: Installed (but unpackaged) file(s) found: /usr/share/ant/lib/ant-antlr.jar /usr/share/ant/lib/ant-apache-bcel.jar /usr/share/ant/lib/ant-apache-bsf.jar /usr/share/ant/lib/ant-apache-log4j.jar /usr/share/ant/lib/ant-apache-oro.jar /usr/share/ant/lib/ant-apache-regexp.jar /usr/share/ant/lib/ant-apache-resolver.jar /usr/share/ant/lib/ant-apache-xalan2.jar /usr/share/ant/lib/ant-commons-logging.jar /usr/share/ant/lib/ant-commons-net.jar /usr/share/ant/lib/ant-javamail.jar /usr/share/ant/lib/ant-jdepend.jar /usr/share/ant/lib/ant-jsch.jar /usr/share/ant/lib/ant-junit4.jar /usr/share/java/ant/ant-antlr.jar /usr/share/java/ant/ant-apache-bcel.jar /usr/share/java/ant/ant-apache-bsf.jar /usr/share/java/ant/ant-apache-log4j.jar /usr/share/java/ant/ant-apache-oro.jar /usr/share/java/ant/ant-apache-regexp.jar /usr/share/java/ant/ant-apache-resolver.jar /usr/share/java/ant/ant-apache-xalan2.jar /usr/share/java/ant/ant-commons-logging.jar /usr/share/java/ant/ant-commons-net.jar /usr/share/java/ant/ant-javamail.jar /usr/share/java/ant/ant-jdepend.jar /usr/share/java/ant/ant-jsch.jar /usr/share/java/ant/ant-junit4.jar
Expected results: Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/greg5320/rpmbuild/BUILDROOT/ant-1.8.4-7.el6.x86_64 Wrote: /home/greg5320/rpmbuild/SRPMS/ant-1.8.4-7.el6.src.rpm Wrote: /home/greg5320/rpmbuild/RPMS/noarch/ant-1.8.4-7.el6.noarch.rpm Wrote: /home/greg5320/rpmbuild/RPMS/noarch/ant-jmf-1.8.4-7.el6.noarch.rpm Wrote: /home/greg5320/rpmbuild/RPMS/noarch/ant-swing-1.8.4-7.el6.noarch.rpm Wrote: /home/greg5320/rpmbuild/RPMS/noarch/ant-antlr-1.8.4-7.el6.noarch.rpm Wrote: /home/greg5320/rpmbuild/RPMS/noarch/ant-apache-bsf-1.8.4-7.el6.noarch.rpm Wrote: /home/greg5320/rpmbuild/RPMS/noarch/ant-apache-resolver-1.8.4-7.el6.noarch.rpm Wrote: /home/greg5320/rpmbuild/RPMS/noarch/ant-commons-logging-1.8.4-7.el6.noarch.rpm Wrote: /home/greg5320/rpmbuild/RPMS/noarch/ant-commons-net-1.8.4-7.el6.noarch.rpm Wrote: /home/greg5320/rpmbuild/RPMS/noarch/ant-apache-bcel-1.8.4-7.el6.noarch.rpm Wrote: /home/greg5320/rpmbuild/RPMS/noarch/ant-apache-log4j-1.8.4-7.el6.noarch.rpm Wrote: /home/greg5320/rpmbuild/RPMS/noarch/ant-apache-oro-1.8.4-7.el6.noarch.rpm Wrote: /home/greg5320/rpmbuild/RPMS/noarch/ant-apache-regexp-1.8.4-7.el6.noarch.rpm Wrote: /home/greg5320/rpmbuild/RPMS/noarch/ant-apache-xalan2-1.8.4-7.el6.noarch.rpm Wrote: /home/greg5320/rpmbuild/RPMS/noarch/ant-javamail-1.8.4-7.el6.noarch.rpm Wrote: /home/greg5320/rpmbuild/RPMS/noarch/ant-jdepend-1.8.4-7.el6.noarch.rpm Wrote: /home/greg5320/rpmbuild/RPMS/noarch/ant-jsch-1.8.4-7.el6.noarch.rpm Wrote: /home/greg5320/rpmbuild/RPMS/noarch/ant-junit-1.8.4-7.el6.noarch.rpm Wrote: /home/greg5320/rpmbuild/RPMS/noarch/ant-testutil-1.8.4-7.el6.noarch.rpm Wrote: /home/greg5320/rpmbuild/RPMS/noarch/ant-scripts-1.8.4-7.el6.noarch.rpm Wrote: /home/greg5320/rpmbuild/RPMS/noarch/ant-manual-1.8.4-7.el6.noarch.rpm Wrote: /home/greg5320/rpmbuild/RPMS/noarch/ant-javadoc-1.8.4-7.el6.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.s26iaq + umask 022 + cd /home/greg5320/rpmbuild/BUILD + cd apache-ant-1.8.4 + /bin/rm -rf /home/greg5320/rpmbuild/BUILDROOT/ant-1.8.4-7.el6.x86_64 + exit 0
Additional info:
patch to fix attached
https://bugzilla.redhat.com/show_bug.cgi?id=915437
Mikolaj Izdebski mizdebsk@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|jcapik@redhat.com |mizdebsk@redhat.com
--- Comment #2 from Mikolaj Izdebski mizdebsk@redhat.com --- Bootstrap mode isn't really needed. It didn't work for a long time and it's not usable within Fedora. I am going to remove it.
https://bugzilla.redhat.com/show_bug.cgi?id=915437
Mikolaj Izdebski mizdebsk@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |MODIFIED Fixed In Version| |1.9.1-3
--- Comment #3 from Mikolaj Izdebski mizdebsk@redhat.com --- Fixed in ant-1.9.1-3
https://bugzilla.redhat.com/show_bug.cgi?id=915437
Mikolaj Izdebski mizdebsk@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |CLOSED Resolution|--- |NEXTRELEASE Last Closed| |2013-07-02 06:04:03
--- Comment #4 from Mikolaj Izdebski mizdebsk@redhat.com --- I believe that this bug is fixed in ant-1.9.1-3, which is available in Fedora Rawhide, so I am closing this bug now.
The build containing the fix can be found at Koji: http://koji.fedoraproject.org/koji/buildinfo?buildID=430789
This bug was fixed in the next release of Fedora, and is not planned to be fixed in the release it was filed against. If you want this bug to be fixed in updates for Fedora 19, please say so in a comment. Otherwise you can update to the newer release of Fedora to get the fix.
java-sig-commits@lists.fedoraproject.org