You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by Cédric Lejeune <ce...@pt-consulting.eu> on 2012/12/17 10:24:40 UTC

Cannot build zookeeper 3.4.5 RPM on CentOS 6.3.

Hello list,

I'm currently trying to build zookeeper 3.4.5 on a fresh CentOS 6.3 
install (rpm 4.8.0), but it fails with this error:

----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----

rpm:
      [copy] Copying 1 file to /tmp/zkpython_build_rpm/SOURCES
       [rpm] Building the RPM based on the zkpython.spec file
       [rpm] Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.GV0fVi
       [rpm] + umask 022
       [rpm] + cd /tmp/zkpython_build_rpm/BUILD
       [rpm] + LANG=C
       [rpm] + export LANG
       [rpm] + unset DISPLAY
       [rpm] + tar fxz 
/tmp/zkpython_build_rpm/SOURCES/ZooKeeper-0.4.linux-x86_64.tar.gz -C 
/tmp/zkpython_build_rpm/BUILD
       [rpm] + exit 0
       [rpm] Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ZpyOvn
       [rpm] + umask 022
       [rpm] + cd /tmp/zkpython_build_rpm/BUILD
       [rpm] + LANG=C
       [rpm] + export LANG
       [rpm] + unset DISPLAY
       [rpm] + exit 0
       [rpm] Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Tktc7r
       [rpm] + umask 022
       [rpm] + cd /tmp/zkpython_build_rpm/BUILD
       [rpm] + '[' /tmp/zkpython_build_rpm/BUILD '!=' / ']'
       [rpm] + rm -rf /tmp/zkpython_build_rpm/BUILD
       [rpm] ++ dirname /tmp/zkpython_build_rpm/BUILD
       [rpm] + mkdir -p /tmp/zkpython_build_rpm
       [rpm] + mkdir /tmp/zkpython_build_rpm/BUILD
       [rpm] + LANG=C
       [rpm] + export LANG
       [rpm] + unset DISPLAY
       [rpm] + /usr/lib/rpm/check-buildroot
       [rpm] shell-init: error retrieving current directory: getcwd: 
cannot access parent directories: No such file or directory
       [rpm] + /usr/lib/rpm/redhat/brp-compress
       [rpm] shell-init: error retrieving current directory: getcwd: 
cannot access parent directories: No such file or directory
       [rpm] chdir: error retrieving current directory: getcwd: cannot 
access parent directories: No such file or directory
       [rpm] + /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
       [rpm] shell-init: error retrieving current directory: getcwd: 
cannot access parent directories: No such file or directory
       [rpm] + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
       [rpm] shell-init: error retrieving current directory: getcwd: 
cannot access parent directories: No such file or directory
       [rpm] + /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip 
/usr/bin/objdump
       [rpm] shell-init: error retrieving current directory: getcwd: 
cannot access parent directories: No such file or directory
       [rpm] + /usr/lib/rpm/brp-python-bytecompile
       [rpm] shell-init: error retrieving current directory: getcwd: 
cannot access parent directories: No such file or directory
       [rpm] Processing files: zkpython-3.4.5-1.x86_64
       [rpm] error: File not found: /tmp/zkpython_build_rpm/BUILD/usr
       [rpm]     File not found: /tmp/zkpython_build_rpm/BUILD/usr
       [rpm]
       [rpm]
       [rpm] RPM build errors:

BUILD FAILED
/home/rpm/zookeeper-3.4.5/build.xml:955: The following error occurred 
while executing this line:
/home/rpm/zookeeper-3.4.5/src/contrib/build.xml:75: The following error 
occurred while executing this line:
/home/rpm/zookeeper-3.4.5/src/contrib/zkpython/build.xml:144: 
'/usr/bin/rpmbuild' failed with exit code 1

----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----

It seems that some directory is missing but why...? Since it a fresh 
CentOS install, may some packages be missing?

I'm pretty new to packaging and I do not know what info could help so 
don't hesitate if you need more details.

I've also tried to build 3.5.0 trunk, but it failed too.

Thank you for your help,

Cédric.

Re: Cannot build zookeeper 3.4.5 RPM on CentOS 6.3.

Posted by Patrick Hunt <ph...@apache.org>.
Hi Cédric, we're in the process of phasing out our packaging. Mainly
for the reasons you cite - they are not well maintained.
https://issues.apache.org/jira/browse/ZOOKEEPER-1604

I'd suggest using Apache Bigtop packaging if that works for you.
http://bigtop.apache.org/

Regards,

Patrick

On Thu, Dec 20, 2012 at 1:04 AM, Cédric Lejeune
<ce...@pt-consulting.eu> wrote:
> Hello list,
>
> I kinda solved my issue building RPM packages. It appears that the install
> stage is removing BUILDROOT content:
>
>
> [rpm] + rm -rf /tmp/zkpython_build_rpm/BUILD
>
>
> Since BUILD and BUILDROOT are actually the same folder, anything is remove
> before being used.
>
> For what it worth, I've attached diffs I've created to solve this issue.
> I've tried to make as little changes as possible regarding original files.
> Please, note once more I'm pretty new at building RPM packages.
>
> Kind regards,
>
> Cédric.
>
>
> On 12/17/2012 10:24 AM, Cédric Lejeune wrote:
>>
>> Hello list,
>>
>> I'm currently trying to build zookeeper 3.4.5 on a fresh CentOS 6.3
>> install (rpm 4.8.0), but it fails with this error:
>>
>>
>> ----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----
>>
>> rpm:
>>        [copy] Copying 1 file to /tmp/zkpython_build_rpm/SOURCES
>>         [rpm] Building the RPM based on the zkpython.spec file
>>         [rpm] Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.GV0fVi
>>         [rpm] + umask 022
>>         [rpm] + cd /tmp/zkpython_build_rpm/BUILD
>>         [rpm] + LANG=C
>>         [rpm] + export LANG
>>         [rpm] + unset DISPLAY
>>         [rpm] + tar fxz
>> /tmp/zkpython_build_rpm/SOURCES/ZooKeeper-0.4.linux-x86_64.tar.gz -C
>> /tmp/zkpython_build_rpm/BUILD
>>         [rpm] + exit 0
>>         [rpm] Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ZpyOvn
>>         [rpm] + umask 022
>>         [rpm] + cd /tmp/zkpython_build_rpm/BUILD
>>         [rpm] + LANG=C
>>         [rpm] + export LANG
>>         [rpm] + unset DISPLAY
>>         [rpm] + exit 0
>>         [rpm] Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Tktc7r
>>         [rpm] + umask 022
>>         [rpm] + cd /tmp/zkpython_build_rpm/BUILD
>>         [rpm] + '[' /tmp/zkpython_build_rpm/BUILD '!=' / ']'
>>         [rpm] + rm -rf /tmp/zkpython_build_rpm/BUILD
>>         [rpm] ++ dirname /tmp/zkpython_build_rpm/BUILD
>>         [rpm] + mkdir -p /tmp/zkpython_build_rpm
>>         [rpm] + mkdir /tmp/zkpython_build_rpm/BUILD
>>         [rpm] + LANG=C
>>         [rpm] + export LANG
>>         [rpm] + unset DISPLAY
>>         [rpm] + /usr/lib/rpm/check-buildroot
>>         [rpm] shell-init: error retrieving current directory: getcwd:
>> cannot access parent directories: No such file or directory
>>         [rpm] + /usr/lib/rpm/redhat/brp-compress
>>         [rpm] shell-init: error retrieving current directory: getcwd:
>> cannot access parent directories: No such file or directory
>>         [rpm] chdir: error retrieving current directory: getcwd: cannot
>> access parent directories: No such file or directory
>>         [rpm] + /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
>>         [rpm] shell-init: error retrieving current directory: getcwd:
>> cannot access parent directories: No such file or directory
>>         [rpm] + /usr/lib/rpm/redhat/brp-strip-static-archive
>> /usr/bin/strip
>>         [rpm] shell-init: error retrieving current directory: getcwd:
>> cannot access parent directories: No such file or directory
>>         [rpm] + /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip
>> /usr/bin/objdump
>>         [rpm] shell-init: error retrieving current directory: getcwd:
>> cannot access parent directories: No such file or directory
>>         [rpm] + /usr/lib/rpm/brp-python-bytecompile
>>         [rpm] shell-init: error retrieving current directory: getcwd:
>> cannot access parent directories: No such file or directory
>>         [rpm] Processing files: zkpython-3.4.5-1.x86_64
>>         [rpm] error: File not found: /tmp/zkpython_build_rpm/BUILD/usr
>>         [rpm]     File not found: /tmp/zkpython_build_rpm/BUILD/usr
>>         [rpm]
>>         [rpm]
>>         [rpm] RPM build errors:
>>
>> BUILD FAILED
>> /home/rpm/zookeeper-3.4.5/build.xml:955: The following error occurred
>> while executing this line:
>> /home/rpm/zookeeper-3.4.5/src/contrib/build.xml:75: The following error
>> occurred while executing this line:
>> /home/rpm/zookeeper-3.4.5/src/contrib/zkpython/build.xml:144:
>> '/usr/bin/rpmbuild' failed with exit code 1
>>
>>
>> ----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----
>>
>> It seems that some directory is missing but why...? Since it a fresh
>> CentOS install, may some packages be missing?
>>
>> I'm pretty new to packaging and I do not know what info could help so
>> don't hesitate if you need more details.
>>
>> I've also tried to build 3.5.0 trunk, but it failed too.
>>
>> Thank you for your help,
>>
>> Cédric.
>
>

Re: Cannot build zookeeper 3.4.5 RPM on CentOS 6.3.

Posted by Cédric Lejeune <ce...@pt-consulting.eu>.
Hello list,

I kinda solved my issue building RPM packages. It appears that the 
install stage is removing BUILDROOT content:

[rpm] + rm -rf /tmp/zkpython_build_rpm/BUILD


Since BUILD and BUILDROOT are actually the same folder, anything is 
remove before being used.

For what it worth, I've attached diffs I've created to solve this issue. 
I've tried to make as little changes as possible regarding original 
files. Please, note once more I'm pretty new at building RPM packages.

Kind regards,

Cédric.

On 12/17/2012 10:24 AM, Cédric Lejeune wrote:
> Hello list,
>
> I'm currently trying to build zookeeper 3.4.5 on a fresh CentOS 6.3
> install (rpm 4.8.0), but it fails with this error:
>
> ----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----
>
> rpm:
>        [copy] Copying 1 file to /tmp/zkpython_build_rpm/SOURCES
>         [rpm] Building the RPM based on the zkpython.spec file
>         [rpm] Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.GV0fVi
>         [rpm] + umask 022
>         [rpm] + cd /tmp/zkpython_build_rpm/BUILD
>         [rpm] + LANG=C
>         [rpm] + export LANG
>         [rpm] + unset DISPLAY
>         [rpm] + tar fxz
> /tmp/zkpython_build_rpm/SOURCES/ZooKeeper-0.4.linux-x86_64.tar.gz -C
> /tmp/zkpython_build_rpm/BUILD
>         [rpm] + exit 0
>         [rpm] Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ZpyOvn
>         [rpm] + umask 022
>         [rpm] + cd /tmp/zkpython_build_rpm/BUILD
>         [rpm] + LANG=C
>         [rpm] + export LANG
>         [rpm] + unset DISPLAY
>         [rpm] + exit 0
>         [rpm] Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Tktc7r
>         [rpm] + umask 022
>         [rpm] + cd /tmp/zkpython_build_rpm/BUILD
>         [rpm] + '[' /tmp/zkpython_build_rpm/BUILD '!=' / ']'
>         [rpm] + rm -rf /tmp/zkpython_build_rpm/BUILD
>         [rpm] ++ dirname /tmp/zkpython_build_rpm/BUILD
>         [rpm] + mkdir -p /tmp/zkpython_build_rpm
>         [rpm] + mkdir /tmp/zkpython_build_rpm/BUILD
>         [rpm] + LANG=C
>         [rpm] + export LANG
>         [rpm] + unset DISPLAY
>         [rpm] + /usr/lib/rpm/check-buildroot
>         [rpm] shell-init: error retrieving current directory: getcwd:
> cannot access parent directories: No such file or directory
>         [rpm] + /usr/lib/rpm/redhat/brp-compress
>         [rpm] shell-init: error retrieving current directory: getcwd:
> cannot access parent directories: No such file or directory
>         [rpm] chdir: error retrieving current directory: getcwd: cannot
> access parent directories: No such file or directory
>         [rpm] + /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
>         [rpm] shell-init: error retrieving current directory: getcwd:
> cannot access parent directories: No such file or directory
>         [rpm] + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
>         [rpm] shell-init: error retrieving current directory: getcwd:
> cannot access parent directories: No such file or directory
>         [rpm] + /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip
> /usr/bin/objdump
>         [rpm] shell-init: error retrieving current directory: getcwd:
> cannot access parent directories: No such file or directory
>         [rpm] + /usr/lib/rpm/brp-python-bytecompile
>         [rpm] shell-init: error retrieving current directory: getcwd:
> cannot access parent directories: No such file or directory
>         [rpm] Processing files: zkpython-3.4.5-1.x86_64
>         [rpm] error: File not found: /tmp/zkpython_build_rpm/BUILD/usr
>         [rpm]     File not found: /tmp/zkpython_build_rpm/BUILD/usr
>         [rpm]
>         [rpm]
>         [rpm] RPM build errors:
>
> BUILD FAILED
> /home/rpm/zookeeper-3.4.5/build.xml:955: The following error occurred
> while executing this line:
> /home/rpm/zookeeper-3.4.5/src/contrib/build.xml:75: The following error
> occurred while executing this line:
> /home/rpm/zookeeper-3.4.5/src/contrib/zkpython/build.xml:144:
> '/usr/bin/rpmbuild' failed with exit code 1
>
> ----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----
>
> It seems that some directory is missing but why...? Since it a fresh
> CentOS install, may some packages be missing?
>
> I'm pretty new to packaging and I do not know what info could help so
> don't hesitate if you need more details.
>
> I've also tried to build 3.5.0 trunk, but it failed too.
>
> Thank you for your help,
>
> Cédric.