Bug 97727

Summary: build with non-existent user -> SHA1 failure when installing
Product: [Retired] Red Hat Raw Hide Reporter: Enrico Scholz <rh-bugzilla>
Component: rpm-buildAssignee: Jeff Johnson <jbj>
Status: CLOSED ERRATA QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: chris, joe.christy, mls, wtogami
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: 2003-12-27 01:41:08 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:
Attachments:
Description Flags
spec-file none

Description Enrico Scholz 2003-06-19 19:22:50 UTC
Description of problem:

When having a package with a suid'ed binary which is owned by an
unknown user, rpm fails with a wrong and misleading message:

 ,---------------
| $ rpm -Uvh /usr/src/redhat/RPMS/i386/test2-0.1-1.i386.rpm
| Preparing...                ########################################### [100%]
| warning: user vcsaX does not exist - using root
|    1:test2                  ########################################### [100%]
| error: rpmdbAdd: skipping h#    5339 Header SHA1 digest: BAD Expected(5a3206989503b8b31bc89b05bfa1a220d9c48aee) != (84eabfc3b0c91606bccf9cf854259f07ee12f510)

This error confuses the rpm-db also:

| $ rpm -q test2
| $


Version-Release number of selected component (if applicable):

rpm-4.2-0.69
rpm-4.2.1-0.11


How reproducible:

100%

Comment 1 Enrico Scholz 2003-06-19 19:25:29 UTC
Created attachment 92497 [details]
spec-file

Steps to reproduce:

0. save as test2.spec
1. 'rpmbuild -bb test2.spec'
2. install resulting package

Comment 2 Jeff Johnson 2003-06-24 19:43:10 UTC
Ick.

Comment 3 Jeff Johnson 2003-06-25 14:53:25 UTC
*** Bug 91867 has been marked as a duplicate of this bug. ***

Comment 4 Jeff Johnson 2003-09-19 12:31:17 UTC
*** Bug 104650 has been marked as a duplicate of this bug. ***

Comment 5 Jeff Johnson 2003-12-27 01:41:08 UTC
Fixed in CVS, should be in rpm-4.2.2-0.8 and later.

Thanks for the reporducer.

$ sudo rpm -Uvh test2-0.1-1.i386.rpm
Preparing...               
########################################### [100%]
   1:test2                  warning: user vcsaX does not exist - using
root
########################################### [100%]
$ rpm -q test2
test2-0.1-1


Comment 6 John Flanagan 2004-05-12 04:27:21 UTC
An errata has been issued which should help the problem described in this bug report. 
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen 
this bug report if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2004-098.html