HBase rpm packing is broken at multiple places ----------------------------------------------
Key: HBASE-5846 URL: https://issues.apache.org/jira/browse/HBASE-5846 Project: HBase Issue Type: Bug Components: build Affects Versions: 0.92.1 Environment: CentOS release 5.7 (Final) Reporter: Shrijeet Paliwal Here is how I executed rpm build: {noformat} MAVEN_OPTS="-Xmx2g" mvn clean package assembly:single -Prpm -DskipTests {noformat} The issues with the rpm build are: * There is no clean (%clean) section in the hbase.spec file . Last run can leave stuff in RPM_BUILD_ROOT which in turn will fail build. As a fix I added 'rm -rf $RPM_BUILD_ROOT' to %clean section * The Buildroot is set to _build_dir . The build fails with this error. {noformat} cp: cannot copy a directory, `/data/9adda425-1f1e-4fe5-8a53-83bd2ce5ad45/app/jenkins/workspace/hbase.92/target/rpm/hbase/BUILD', into itself, `/data/9adda425-1f1e-4fe5-8a53-83bd2ce5ad45/app/jenkins/workspace/hbase.92/target/rpm/hbase/BUILD/BUILD' {noformat} If we set it to ' %{_tmppath}/%{name}-%{version}-root' build passes * The src/packages/update-hbase-env.sh script will leave inconsistent state if 'yum update hbase' is executed. It deletes data from /etc/init.d/hbase* and does not put scripts back during update. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira