[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13117244#comment-13117244
 ] 

Tadeusz Andrzej Kadłubowski commented on ZOOKEEPER-1210:
--------------------------------------------------------

I debugged this issue somewhat.

The support for the Buildroot directive in the RPM spec files got removed in 
rpm 4.6.0 (AFAICT).

The spec files created in the ZOOKEEPER-999 issue define Buildroot: 
%{_build_dir}, which is silently ignored on systems that use rpm >= 4.6. These 
include Fedora >= 10 and RHEL >=6.0

One solution for this issue might be to pass 
"--buildroot=${package.buildroot}/BUILD" to the "rpm" ant task. "--buildroot" 
option is supported by both old and new rpmbuild versions.


                
> Can't build ZooKeeper RPM
> -------------------------
>
>                 Key: ZOOKEEPER-1210
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1210
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 3.4.0
>         Environment: Tested to fail on both Centos 6.0 and Fedora 14
>            Reporter: Tadeusz Andrzej Kadłubowski
>            Priority: Minor
>
> I was trying to build the zookeeper RPM (basically, `ant rpm 
> -Dskip.contrib=1`), using build scripts that were recently merged from the 
> work on the ZOOKEEPER-999 issue.
> The final stage, i.e. running rpmbuild failed. From what I understand it 
> mixed BUILD and BUILDROOT subdirectories in 
> /tmp/zookeeper_package_build_tkadlubo/, leaving BUILDROOT empty, and placing 
> everything in BUILD.
> The full build log is at http://pastebin.com/0ZvUAKJt (Caution: I cut out 
> long file listings from running tar -xvvf).

--
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


Reply via email to