Bug 80300

Summary: SRPMS: install failed due to files
Product: [Retired] Red Hat Linux Reporter: Sysoltsev Slawa <vyatcheslav.sysoltsev>
Component: nvi-m17nAssignee: Akira TAGOH <tagoh>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 8.0   
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: 2003-04-25 07:31:00 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 Sysoltsev Slawa 2002-12-24 09:21:05 UTC
Description of problem:
Trying to build & install nvi-m17m from SRPMS I've got such errors:

Executing(%doc): /bin/sh -
e /netbatch/TC11690/rh80_ia32_J/default/WORK_DIR/tmp/rpm-tmp.37990
+ umask 022
+ cd /netbatch/TC11690/rh80_ia32_J/default/WORK_DIR/BUILD
+ cd nvi-1.79
+ DOCDIR=/netbatch/TC11690/rh80_ia32_J/default/WORK_DIR/tmp/nvi-m17n-1.79-
buildroot/usr/share/doc/nvi-m17n-1.79
+ export DOCDIR
+ rm -rf /netbatch/TC11690/rh80_ia32_J/default/WORK_DIR/tmp/nvi-m17n-1.79-
buildroot/usr/share/doc/nvi-m17n-1.79
+ /bin/mkdir -p /netbatch/TC11690/rh80_ia32_J/default/WORK_DIR/tmp/nvi-m17n-
1.79-buildroot/usr/share/doc/nvi-m17n-1.79
+ cp -pr FAQ LAYOUT LICENSE README 
docs /netbatch/TC11690/rh80_ia32_J/default/WORK_DIR/tmp/nvi-m17n-1.79-
buildroot/usr/share/doc/n
vi-m17n-1.79
+ cp -pr -P build/README build/README.LynxOS catalog/README cl/README.signal 
db/README /netbatch/TC11690/rh80_ia32_J/default/WORK_
DIR/tmp/nvi-m17n-1.79-buildroot/usr/share/doc/nvi-m17n-1.79
cp: cannot create regular file 
`/netbatch/TC11690/rh80_ia32_J/default/WORK_DIR/tmp/nvi-m17n-1.79-
buildroot/usr/share/doc/nvi-m17n-
1.79/README': Permission denied
cp: cannot create regular file 
`/netbatch/TC11690/rh80_ia32_J/default/WORK_DIR/tmp/nvi-m17n-1.79-
buildroot/usr/share/doc/nvi-m17n-
1.79/README': Permission denied
cp: cannot create regular file 
`/netbatch/TC11690/rh80_ia32_J/default/WORK_DIR/tmp/nvi-m17n-1.79-
buildroot/usr/share/doc/nvi-m17n-
1.79/README': Permission denied
error: Bad exit status 
from /netbatch/TC11690/rh80_ia32_J/default/WORK_DIR/tmp/rpm-tmp.37990 (%doc)

As I suppose problem in .spec file in line:
%doc -P build/README* catalog/README cl/README.signal db/README

rpm, I have installed on my system, copies all these README files in one doc 
directory, overwriting them. I don't sure your rpm does same way but you should 
understand that with rpm manager installed by default all except last README 
files will be overwritten, so this action to enumerate many README files is 
just useless. Moreover, as all these README files have '-w' attribute in 
package (owner can't write) (why ? For sources, it is very annoyable when you 
couldn't write source you were just editing) so `cp` emits error trying to 
overwrite these files. As a result installation failed.

You should fix your %doc files to have different names.

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


How reproducible:
always

Steps to Reproduce:
1. rpm -bb nvi-m17n.spec

    
Actual results:
Installation error, missed documentation.

Expected results:
Succesfully built & correctly(succesfully & without loss of information) 
installed package.

Additional info:

Comment 1 Akira TAGOH 2003-04-25 07:31:00 UTC
I'm closing this now, because it was already fixed in the current release.