Bug 158608

Summary: rpmbuild incorrectly claims a symlink is unpackaged
Product: [Fedora] Fedora Reporter: Robin Green <greenrd>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: n3npq
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-05-23 23:01:20 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:
Bug Depends On:    
Bug Blocks: 136451    
Attachments:
Description Flags
reduced test case none

Description Robin Green 2005-05-23 21:52:54 UTC
Description of problem:
I was trying to build a package from jpackage, and rpmbuild bailed out with
"error: Installed (but unpackaged) file(s) found:" and gave the path of a
symlink. However, the symlink should have been matched by a wildcard in the
%files section. I manually expanded the wildcard, built again, and got the same
error. I have attached a reduced test case.

Version-Release number of selected component (if applicable):
rpm-build-4.4.1-20

How reproducible:
Always

Steps to Reproduce:
1. Download attached file testcase.spec
2. rpmbuild -bb testcase.spec
  
Actual results:
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.82777
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.82777
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.82777
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf /var/tmp/testcase-1.0-buildroot
+ mkdir -p /var/tmp/testcase-1.0-buildroot/usr/share
+ cd /var/tmp/testcase-1.0-buildroot/usr/share
+ touch dest
+ ln -s dest link
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
Processing files: testcase-1.0-1
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files
/var/tmp/testcase-1.0-buildroot
error: Installed (but unpackaged) file(s) found:
   /usr/share/link


RPM build errors:
    Installed (but unpackaged) file(s) found:
   /usr/share/link


Expected results:
Should build successfully

Comment 1 Robin Green 2005-05-23 21:52:55 UTC
Created attachment 114750 [details]
reduced test case

Comment 2 Robin Green 2005-05-23 23:01:20 UTC
Upgraded rpm-libs to 4.4.1-20 and now I can't reproduce this bug. Marking as
RAWHIDE.