[Rpm-maint] [rpm-software-management/rpm] %setup -T -a 0 -a 1 doesn't extract %{S:0} (#462)

Igor Gnatenko notifications at github.com
Mon Jul 9 12:09:31 UTC 2018


```
Name:           nipy-data
Version:        0.2
Release:        5%{?dist}
Summary:        Test data and brain templates for nipy

License:        BSD
URL:            http://nipy.org/nipy/
Source0:        http://nipy.org/data-packages/nipy-data-%{version}.tar.gz
Source1:        http://nipy.org/data-packages/nipy-templates-%{version}.tar.gz

BuildArch:      noarch

%description
%{summary}.

%prep
%autosetup -c -T -a 0 -a 1
ls -l
exit 1
```

shows

```
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.siRUjA
+ umask 022
+ cd /home/brain/Projects/fedora/rpms/nipy-data
+ cd /home/brain/Projects/fedora/rpms/nipy-data
+ rm -rf nipy-data-0.2
+ /usr/bin/mkdir -p nipy-data-0.2
+ cd nipy-data-0.2
+ /usr/bin/gzip -dc /home/brain/Projects/fedora/rpms/nipy-data/nipy-templates-0.2.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ ls -l
total 4
drwxr-xr-x. 3 brain brain 4096 Nov  8  2009 nipy-templates-0.2
+ exit 1
```

but if you remove `-T`, then everything behaves as expected.

```
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.A7UndR
+ umask 022
+ cd /home/brain/Projects/fedora/rpms/nipy-data
+ cd /home/brain/Projects/fedora/rpms/nipy-data
+ rm -rf nipy-data-0.2
+ /usr/bin/mkdir -p nipy-data-0.2
+ cd nipy-data-0.2
+ /usr/bin/gzip -dc /home/brain/Projects/fedora/rpms/nipy-data/nipy-data-0.2.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ /usr/bin/gzip -dc /home/brain/Projects/fedora/rpms/nipy-data/nipy-templates-0.2.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ ls -l
total 8
drwxr-xr-x. 3 brain brain 4096 Aug 18  2009 nipy-data-0.2
drwxr-xr-x. 3 brain brain 4096 Nov  8  2009 nipy-templates-0.2
+ exit 1
error: Bad exit status from /var/tmp/rpm-tmp.A7UndR (%prep)
    Bad exit status from /var/tmp/rpm-tmp.A7UndR (%prep)
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/462
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180709/ed95a150/attachment.html>


More information about the Rpm-maint mailing list