Thank you for the clarifications.
So, the older versions under
/opt/freeware/src/packages/BUILD can safely be removed.
Considering buildroot I have a few questions of understanding (sorry!)
Currently all my .spec files have the directive:
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-rootThis will be obsolete with RPM 4.6.X.X, because it will be enforced to
/var/tmp/%{NAME}-%{VERSION}-%{RELEASE}.%{_arch}, correct?
Within the .spec I several times refer to
${RPM_BUILD_ROOT}. I assume that variable got set by the BuildRoot directive?
I just saw on
https://access.redhat.com that I maybe should change all my ${RPM_BUILD_ROOT} for %{buildroot}.
Is that preferable and safe to do?
Thanks,
Frank
------------------------------
Frank Lindner
------------------------------
Original Message:
Sent: Thu May 19, 2022 10:42 AM
From: Ayappan P
Subject: Purpose of /opt/freeware/src/packages/BUILD
When you trigger rpmbuild on a spec file, /opt/freeware/src/packages/BUILD is the directory where the source tarball will be extracted and compiled.
buildroot in the spec file refers to the place where the package will be installed before packaging. From 4.6.X.X onwards, specifying buildroot in the spec file won't have any effective. It will always be "/var/tmp/%{NAME}-%{VERSION}-%{RELEASE}.%{_arch}. arch will be ppc in AIX case.
------------------------------
Ayappan P
------------------------------