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}-root
This 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
Original Message:
Sent: Thu May 19, 2022 10:07 AM
From: Frank Lindner
Subject: Purpose of /opt/freeware/src/packages/BUILD
Hello,
beginners question maybe, but what is the purpose of the directory /opt/freeware/src/packages/BUILD
.
I am self-compiling a few OS packages and found several older versions using up space in that directory.
As I understand it the buildroot is set from the .spec
file, which for me is %{_tmppath}/%{name}-%{version}-%{release}-root
.
Or is the directory used every time I build without using a .spec
file? (./configure&make)
Can I safely delete the older versions form the BUILD directory?
Thank you for your help.
Kind regards
Frank
------------------------------
Frank Lindner
------------------------------
#AIXOpenSource