Bug 175073 - rpmbuild -bp fails to unpack all source files from SRPM
Summary: rpmbuild -bp fails to unpack all source files from SRPM
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kde-i18n
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ngo Than
QA Contact: Ben Levenson
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-12-06 09:40 UTC by Roozbeh Pournader
Modified: 2007-11-30 22:11 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2005-12-06 14:16:08 UTC


Attachments (Terms of Use)
patch to fix the problem (444 bytes, patch)
2005-12-06 14:09 UTC, Roozbeh Pournader
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.