hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Purtell (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HBASE-5846) HBase rpm packing is broken at multiple places
Date Sat, 11 Apr 2015 01:28:12 GMT

     [ https://issues.apache.org/jira/browse/HBASE-5846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrew Purtell resolved HBASE-5846.
-----------------------------------
    Resolution: Not A Problem

> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message