Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-3368

Unable to build Zookeeper on Centos8

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.5.0
    • Fix Version/s: None
    • Component/s: rpm
    • Labels:
      None
    • Flags:
      Patch

      Description

      Happening because of https://fedoraproject.org/wiki/Changes/Make_ambiguous_python_shebangs_error

      Error:

       

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

       

      possible fix is to add patch to zookeeper src directory. Tested with ZK 3.4.14 version

       

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

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                animeshn Animesh Nandanwar
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: