JiaLiangC commented on PR #3751:
URL: https://github.com/apache/ambari/pull/3751#issuecomment-1773961364

   @arshadmohammad 
   > I was trying to build this PR(also applied #3758 changes) on rocky linux 
8.8 but build failed with following error `[INFO] error: Bad exit status from 
/var/tmp/rpm-tmp.HcNglV (%install) [INFO] Bad exit status from 
/var/tmp/rpm-tmp.HcNglV (%install) [INFO] [INFO] [INFO] RPM build errors: 
[INFO] ------------------------------------------------------------------------ 
[INFO] Reactor Summary for Ambari Server 3.0.0.0-SNAPSHOT: [INFO] [INFO] Ambari 
Server ...................................... FAILURE [02:10 min] [INFO] Ambari 
Functional Tests ............................ SKIPPED [INFO] Ambari Agent 
....................................... SKIPPED [INFO] 
------------------------------------------------------------------------ [INFO] 
BUILD FAILURE [INFO] 
------------------------------------------------------------------------ [INFO] 
Total time: 02:10 min [INFO] Finished at: 2023-10-21T15:03:07+05:30 [INFO] 
------------------------------------------------------------------------ [ERROR]
  Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1.4:rpm 
(default-cli) on project ambari-server: RPM build execution returned: '1' 
executing '/bin/sh -c cd 
'/home/code/non-forked/ambari/ambari-server/target/rpm/ambari-server/SPECS' && 
'rpmbuild' '-bb' '--target' 'x86_64-redhat-linux' '--buildroot' 
'/home/code/non-forked/ambari/ambari-server/target/rpm/ambari-server/buildroot' 
'--define' '_topdir 
/home/code/non-forked/ambari/ambari-server/target/rpm/ambari-server' '--define' 
'_build_name_fmt %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' 
'--define' '_builddir %{_topdir}/BUILD' '--define' '_rpmdir %{_topdir}/RPMS' 
'--define' '_sourcedir %{_topdir}/SOURCES' '--define' '_specdir 
%{_topdir}/SPECS' '--define' '_srcrpmdir %{_topdir}/SRPMS' 
'ambari-server.spec'' -> [Help 1]` @wenwj0 any idea what changes to be done to 
make it build on rocky linux 8 also. It will be easy for me to review this PR 
if this can be build and tested on rocky linux 8 also.
   
   Things to note when compiling on Rocky8:
   The maven-rpm-plugin used for rpm compilation will, by default, perform 
python compilation, and it uses /usr/bin/python for the compilation, which 
cannot be configured to use python3.
   Therefore, on Rocky8, the old python2 soft link needs to be deleted, and 
create a new one using ln -s /usr/bin/python3 /usr/bin/python.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to