View Issue Details

IDProjectCategoryView StatusLast Update
0017300CentOS-8rpmpublic2020-04-28 15:19
Reporterjcbollinger 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version8.1.1911 
Target VersionFixed in Version 
Summary0017300: The %autosetup macro mishandles multiple -a arguments
DescriptionThe arguments to the %autosetup macro are supposed to have the same semantics as those to the older %setup macro, with a few exceptions. The -a option is not documented among the exceptions, but %setup accepts and processes multiple -a# options, whereas %autosetup accepts but ignores all but the last.
Steps To ReproducePrepare an RPM spec file designating multiple sources, and in which the %prep section uses %autosetup with multiple -a options.

Run "rpmbuild -bp"

Observe that of those sources referenced by -a options, only the last is unpacked into the build directory.

That this behavior differs from %setup can be demonstrated by changing the %autosetup invocation to a correspding %setup invocation.
Additional InformationThis is a complete spec file such as is required to reproduce the erroneous behavior:

----

Name: multi_a
Version: 0.1
Release: 1%{?dist}
Summary: Demo of multiple -a argument failure

License: public domain
Source0: multi_a-0.1.tar.gz
Source1: a1.tar.gz
Source2: a2.tar.gz

%description
%{summary}.

%prep
%autosetup -a1 -a2
# as opposed to:
#%setup -q -a1 -a2

%build

%install

%files

%changelog
* Tue Apr 28 2020 John Bollinger <John.Bollinger@StJude.org>
- Initial spec

----

I attach a corresponding minimal source RPM.
Tagsrpmbuild

Activities

jcbollinger

jcbollinger

2020-04-28 15:19

reporter  

multi_a-0.1-1.el8.sjcrh.src.rpm (7,216 bytes)

Issue History

Date Modified Username Field Change
2020-04-28 15:19 jcbollinger New Issue
2020-04-28 15:19 jcbollinger File Added: multi_a-0.1-1.el8.sjcrh.src.rpm
2020-04-28 15:19 jcbollinger Tag Attached: rpmbuild