Bug 175073

Summary: rpmbuild -bp fails to unpack all source files from SRPM
Product: [Fedora] Fedora Reporter: Roozbeh Pournader <roozbeh>
Component: kde-i18nAssignee: Ngo Than <than>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 4   
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: 2005-12-06 14:16:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Attachments:
Description Flags
patch to fix the problem none

Description Roozbeh Pournader 2005-12-06 09:40:27 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc3 Firefox/1.0.7

Description of problem:
When 'rpmbuild -bp' is run on the spec file from the kde-i18n SRPM, only Arabic translations are unpacked, instead of translations from all languages.

Version-Release number of selected component (if applicable):
kde-i18n-3.4.2-0.fc4.1

How reproducible:
Always

Steps to Reproduce:
1. rpm -Uvh kde-i18n-3.4.2-0.fc4.1.src.rpm
2. rpmbuild -bp kde-i18n.spec
  

Actual Results:  Only the Arabic translations are unpacked.

Expected Results:  All translations should have been unpacked.

Additional info:

This is the output of the rpmbuild command:

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.41830
+ umask 022
+ cd /home/roozbeh/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /home/roozbeh/rpmbuild/BUILD
+ rm -rf kde-i18n-3.4.2
+ /bin/mkdir -p kde-i18n-3.4.2
+ cd kde-i18n-3.4.2
+ /usr/bin/bzip2 -dc /home/roozbeh/rpmbuild/SOURCES/kde-i18n-ar-3.4.2.tar.bz2
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
++ /usr/bin/id -u
+ '[' 501 = 0 ']'
++ /usr/bin/id -u
+ '[' 501 = 0 ']'
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0

Comment 1 Ngo Than 2005-12-06 11:08:30 UTC
i'm pretty sure that you have not used the correct specfile, The output seems
strange!

Please try to rebuild with rpmbuild --rebuild kde-i18n-3.4.2-0.fc4.1.src.rpm

Comment 2 Roozbeh Pournader 2005-12-06 12:07:20 UTC
The bug is not about the "%build" stage, it's about the "%prep" stage: Both
"rpmbuild --rebuild" (on the SRPM) and "rpmbuild -ba" (on the spec) work fine.
It is "rpmbuild -bp" that fails to unpack all the sources.

Comment 3 Roozbeh Pournader 2005-12-06 14:09:57 UTC
Created attachment 121907 [details]
patch to fix the problem

Attached a patch to fix the problem. It may not be the best solution, but it's
good enough, I believe.

Comment 4 Ngo Than 2005-12-06 14:16:08 UTC
it's already fixed in CVS. Thanks for your report.