You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bigtop.apache.org by "Masatake Iwasaki (Jira)" <ji...@apache.org> on 2021/01/19 05:59:00 UTC

[jira] [Resolved] (BIGTOP-3368) Unable to build Zookeeper on Centos8

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

Masatake Iwasaki resolved BIGTOP-3368.
--------------------------------------
    Resolution: Duplicate

I'm closing this as duplicate of BIGTOP-3475.

> Unable to build Zookeeper on Centos8
> ------------------------------------
>
>                 Key: BIGTOP-3368
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-3368
>             Project: Bigtop
>          Issue Type: Bug
>          Components: rpm
>    Affects Versions: 1.5.0
>            Reporter: Animesh Nandanwar
>            Priority: Major
>         Attachments: patch-ZOOKEEPER-python-shebang-fedora.diff
>
>
> Happening because of [https://fedoraproject.org/wiki/Changes/Make_ambiguous_python_shebangs_error]
> Error:
>  
> {code:java}
> + /usr/lib/rpm/redhat/brp-mangle-shebangs
> *** ERROR: ambiguous python shebang in /usr/lib/zookeeper/contrib/rest/src/python/demo_master_election.py: #!/usr/bin/env python. Change it to python3 (or python2) explicitly.
> *** ERROR: ambiguous python shebang in /usr/lib/zookeeper/contrib/rest/src/python/test.py: #!/usr/bin/env python. Change it to python3 (or python2) explicitly.
> *** ERROR: ambiguous python shebang in /usr/lib/zookeeper/contrib/rest/src/python/demo_queue.py: #!/usr/bin/env python. Change it to python3 (or python2) explicitly.
> *** ERROR: ambiguous python shebang in /usr/lib/zookeeper/contrib/rest/src/python/zk_dump_tree.py: #!/usr/bin/python. Change it to python3 (or python2) explicitly.
> *** WARNING: ./usr/lib/zookeeper/contrib/rest/src/python/zkrest.py is executable but has empty or no shebang, removing executable bit
> {code}
>  
> possible fix is to add patch to zookeeper src directory. Tested with ZK 3.4.14 version
>  
> {code:java}
> // code placeholder
> diff --git a/zookeeper-contrib/zookeeper-contrib-rest/src/python/demo_master_election.py b/zookeeper-contrib/zookeeper-contrib-rest/src/python/demo_master_election.py
> index c0317c7fe..5c5194e02 100644
> --- a/zookeeper-contrib/zookeeper-contrib-rest/src/python/demo_master_election.py
> +++ b/zookeeper-contrib/zookeeper-contrib-rest/src/python/demo_master_election.py
> @@ -1,4 +1,4 @@
> -#! /usr/bin/env python
> +#! /usr/bin/env python2
>  
>  # Licensed to the Apache Software Foundation (ASF) under one
>  # or more contributor license agreements.  See the NOTICE file
> diff --git a/zookeeper-contrib/zookeeper-contrib-rest/src/python/demo_queue.py b/zookeeper-contrib/zookeeper-contrib-rest/src/python/demo_queue.py
> index 9ca4c6440..8b42b3447 100644
> --- a/zookeeper-contrib/zookeeper-contrib-rest/src/python/demo_queue.py
> +++ b/zookeeper-contrib/zookeeper-contrib-rest/src/python/demo_queue.py
> @@ -1,4 +1,4 @@
> -#! /usr/bin/env python
> +#! /usr/bin/env python2
>  
>  # Licensed to the Apache Software Foundation (ASF) under one
>  # or more contributor license agreements.  See the NOTICE file
> diff --git a/zookeeper-contrib/zookeeper-contrib-rest/src/python/test.py b/zookeeper-contrib/zookeeper-contrib-rest/src/python/test.py
> index 363747a64..1acfb2b36 100644
> --- a/zookeeper-contrib/zookeeper-contrib-rest/src/python/test.py
> +++ b/zookeeper-contrib/zookeeper-contrib-rest/src/python/test.py
> @@ -1,4 +1,4 @@
> -#! /usr/bin/env python
> +#! /usr/bin/env python2
>  
>  # Licensed to the Apache Software Foundation (ASF) under one
>  # or more contributor license agreements.  See the NOTICE file
> diff --git a/zookeeper-contrib/zookeeper-contrib-rest/src/python/zk_dump_tree.py b/zookeeper-contrib/zookeeper-contrib-rest/src/python/zk_dump_tree.py
> index 517d23b34..5f240ba72 100755
> --- a/zookeeper-contrib/zookeeper-contrib-rest/src/python/zk_dump_tree.py
> +++ b/zookeeper-contrib/zookeeper-contrib-rest/src/python/zk_dump_tree.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/python
> +#!/usr/bin/python2
>  
>  # Licensed to the Apache Software Foundation (ASF) under one
>  # or more contributor license agreements.  See the NOTICE file
> {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)