ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-1210

Can't build ZooKeeper RPM with RPM >= 4.6.0 (i.e. on RHEL 6 and Fedora >= 10)

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.0
    • Fix Version/s: 3.3.6, 3.4.4
    • Component/s: build
    • Labels:
    • Environment:

      Tested to fail on both Centos 6.0 and Fedora 14

    • Hadoop Flags:
      Reviewed
    • Release Note:
      Fix buildroot misplacement on systems with RPM>=4.6. Earlier RPM versions support --buildroot commandline flag, so this doesn't break anything on older systems.
    • Tags:
      rpm ant

      Description

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

      1. rpm_buildroot_on_RHEL6.patch
        2 kB
        Tadeusz Andrzej Kadłubowski
      2. rpm_buildroot_on_RHEL6.patch
        2 kB
        Tadeusz Andrzej Kadłubowski
      3. rpm_buildroot_on_RHEL6.patch
        2 kB
        Tadeusz Andrzej Kadłubowski

        Activity

        Tadeusz Andrzej Kadłubowski created issue -
        Tadeusz Andrzej Kadłubowski made changes -
        Field Original Value New Value
        Summary Can't build ZooKeeper RPM Can't build ZooKeeper RPM with RPM >= 4.6.0 (i.e. on RHEL 6 and Fedora >= 10)
        Tadeusz Andrzej Kadłubowski made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Release Note Fix buildroot misplacement on systems with RPM>=4.6. Earlier RPM versions support --buildroot commandline flag, so this doesn't break anything on older systems.
        Labels patch
        Tags rpm ant
        Tadeusz Andrzej Kadłubowski made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Tadeusz Andrzej Kadłubowski made changes -
        Attachment rpm_buildroot_on_RHEL6.patch [ 12498120 ]
        Tadeusz Andrzej Kadłubowski made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Tadeusz Andrzej Kadłubowski made changes -
        Attachment rpm_buildroot_on_RHEL6.patch [ 12498121 ]
        Patrick Hunt made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Patrick Hunt made changes -
        Assignee Tadeusz Andrzej Kadłubowski [ tkadlubo ]
        Tadeusz Andrzej Kadłubowski made changes -
        Attachment rpm_buildroot_on_RHEL6.patch [ 12498410 ]
        Patrick Hunt made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Patrick Hunt made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Fix Version/s 3.3.6 [ 12320172 ]
        Fix Version/s 3.4.4 [ 12319841 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Tadeusz Andrzej Kadłubowski
            Reporter:
            Tadeusz Andrzej Kadłubowski
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development