LeaAbrugena
New Member
Hi,
Just when we upgraded our Linux box to Rhel 8.2 , we encountered below errors in %clean section of RPM Spec File during build. Not sure if this is because of upgrade or if there’s other issue behind.
I tried to put some delay(sleep 1m) before deletion but still not success.
It was successful when I deleted the folders manually.
Any thought? Please advise. Thanks.
Command in the script:
%clean
find %{buildroot} -type f -delete && rm -r %{buildroot}
But when I use:
rm -rf %{buildroot}
Just when we upgraded our Linux box to Rhel 8.2 , we encountered below errors in %clean section of RPM Spec File during build. Not sure if this is because of upgrade or if there’s other issue behind.
I tried to put some delay(sleep 1m) before deletion but still not success.
It was successful when I deleted the folders manually.
Any thought? Please advise. Thanks.
Command in the script:
%clean
find %{buildroot} -type f -delete && rm -r %{buildroot}
rm: cannot remove '/remote/ds/x86_64/proj/usr/47/abr/rpmbuild/BUILDROOT/fcp-4.7.0-0.x86_64/tmp/fcp.install/fcp/sys/.nfs000000000304f88f00000316': Device or resource busy
rm: cannot remove '/remote/ds/x86_64/proj/usr/47/abr/rpmbuild/BUILDROOT/fcp-4.7.0-0.x86_64/usr/share/doc/fcp/.nfs000000000304f8aa00000321': Device or resource busy
error: Bad exit status from /remote/ds/x86_64/proj/usr/47/abr/rpmbuild/tmp/rpm-tmp.6QuE8v (%clean)
But when I use:
rm -rf %{buildroot}
rm: cannot remove '/remote/ds/x86_64/proj/usr/47/abr/rpmbuild/BUILDROOT/fcp-4.7.0-0.x86_64/tmp/fcp.install/fcp/bin': Directory not empty
rm: cannot remove '/remote/ds/x86_64/proj/usr/47/abr/rpmbuild/BUILDROOT/fcp-4.7.0-0.x86_64/tmp/fcp.install/fcp/include': Directory not empty
Last edited: