Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-445

Binding installation ignores prefix

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • proton-0.5
    • proton-0.7
    • proton-c
    • None

    Description

      It allows you prepend to the install prefix, but it gives you no way afaict to actually change the prefix.

      This is the opposite of nice. If you set a prefix for your build and you try to get your bindings slotted in with them, via DESTDIR, you get this:

      1. cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/myplace /var/tmp/jross/baker/proton/source
      2. make install DESTDIR=/opt/myplace

      /opt/myplace/usr/lib/python/python files
      /opt/myplace/opt/myplace/lib/c files
      ^^ Note "/opt/myplace/opt/myplace", the first from DESTDIR, the second from CMAKE_INSTALL_PREFIX

      What it is doing now is simply abuse of DESTDIR. DESTDIR is intended to be a mechanism for staged installs (packaging systems use this), and it cannot function correctly as an override for prefix.

      http://www.gnu.org/prep/standards/html_node/DESTDIR.html

      My proposed solution to this is to stop this madness: make the binding install honor CMAKE_INSTALL_PREFIX. Let the developer be responsible for choosing the right location for his or her distribution.

      Attachments

        1. what-a-mess.txt
          2 kB
          Justin Ross

        Issue Links

          Activity

            People

              mcpierce Darryl Pierce
              jross Justin Ross
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: