[Rpm-ecosystem] Heads up: Changes to %setup macro

Florian Festi ffesti at redhat.com
Thu Nov 26 14:06:36 UTC 2015


Hi!

There is an issue in the  behavior of the %setup macro. When combining
the -c and -b parameters the -b (drop file before changing into sub dir)
acts like -a (drop file after changing into sub dir). This is now fixed
in HEAD and will most likely be part of the next RPM release.

*Distributions are advised to look through their packages* for instances
that rely on this broken behavior (e.g. by using  something like grep
"%setup" */*.spec | grep -- -c | grep -- -b) and fix them (probably by
replacing the -b by -a).

We expect there to be very few packages being affected. For example we
found only 3 packages in the whole Fedora distribution.

See https://github.com/rpm-software-management/rpm/pull/21 for details.

Special thanks to Andreas Scherer for recognizing and fixing this.

Florian

-- 

Red Hat GmbH, http://www.de.redhat.com/ Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Michael Cunningham, Michael
O'Neill, Charles Peters


More information about the Rpm-ecosystem mailing list