Bug 1077149 - rpm: %setup -n name -c no longer creates directory BEFORE unpacking
rpm: %setup -n name -c no longer creates directory BEFORE unpacking
Status: NEW
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Development
Current
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: Michael Schröder
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-01-23 07:30 UTC by Kai Pastor
Modified: 2018-01-24 09:32 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Pastor 2018-01-23 07:30:31 UTC
Since a few days, I observe faild builds on b.o.o for openSUSE Tumbleweed due to a change in setting up the sources. In contrast to Fedora's RPM guide, "%setup -n name -c" no longer creates the given directory BEFORE unpacking. 

Affected build (meta change on Jan 18, 2018):
https://build.opensuse.org/packages/openorienteering-mapper/job_history/home:dg0yt/openSUSE_Tumbleweed/x86_64

%setup -n clipper -c -D -T -b 1

now does (Tumbleweed, current behaviour):

[  111s] + cd /home/abuild/rpmbuild/BUILD
[  111s] + /usr/bin/unzip /home/abuild/rpmbuild/SOURCES/clipper_ver6.1.3a.zip
[  111s] Archive:  /home/abuild/rpmbuild/SOURCES/clipper_ver6.1.3a.zip
[  111s]    creating: C#/
[  111s]    creating: C#/clipper_library/
[  111s]   inflating: C#/clipper_library/clipper.cs  
...
[  112s]   inflating: ruby/ruby_readme.txt    
[  112s] + STATUS=0
[  112s] + '[' 0 -ne 0 ']'
[  112s] + /usr/bin/mkdir -p clipper
[  112s] + cd clipper
[  112s] + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
[  112s] + cd /home/abuild/rpmbuild/BUILD

while it used to do (Leap 42.3, expected behaviour):

[   30s] + cd /home/abuild/rpmbuild/BUILD
[   30s] + /usr/bin/mkdir -p clipper
[   30s] + cd clipper
[   30s] + /usr/bin/unzip /home/abuild/rpmbuild/SOURCES/clipper_ver6.1.3a.zip
[   30s] Archive:  /home/abuild/rpmbuild/SOURCES/clipper_ver6.1.3a.zip
[   30s]    creating: C#/
[   30s]    creating: C#/clipper_library/
[   30s]   inflating: C#/clipper_library/clipper.cs  
...
[   30s]   inflating: ruby/ruby_readme.txt    
[   30s] + STATUS=0
[   30s] + '[' 0 -ne 0 ']'
[   30s] + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
[   30s] + cd /home/abuild/rpmbuild/BUILD

The result is that later build instructions no longer find the "clipper" source directory, and so the build fails.
Comment 1 Chenzi Cao 2018-01-24 09:32:03 UTC
Hi Michael, could you please take a look at this issue? If you are not the right assignee, please feel free to reassign, thank you!