openSUSE / golang-packaging

golang packaging tool for openSUSE
GNU General Public License v3.0
6 stars 13 forks source link

Ensure to touch $RPM_BUILD_ROOT only in the various install phases #32

Closed DimStar77 closed 4 years ago

DimStar77 commented 4 years ago

With RPM 4.16, installing anything to $RPM_BUILD_ROOT during the %build phase (as we did in golang.sh prep) results in failures, as RPM 4.16 has an imprlcit rm -rf $RPM_BUILD_ROOT as part of %install setup.

So all directories we created in prep were removed by rpm again just after.