View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0017300||CentOS-8||rpm||public||2020-04-28 15:19||2020-04-28 15:19|
|Target Version||Fixed in Version|
|Summary||0017300: The %autosetup macro mishandles multiple -a arguments|
|Description||The 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 Reproduce||Prepare 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 Information||This is a complete spec file such as is required to reproduce the erroneous behavior:|
Summary: Demo of multiple -a argument failure
License: public domain
%autosetup -a1 -a2
# as opposed to:
#%setup -q -a1 -a2
* Tue Apr 28 2020 John Bollinger <John.Bollinger@StJude.org>
- Initial spec
I attach a corresponding minimal source RPM.