atom feed6 messages in org.apache.qpid.proton[jira] [Commented] (PROTON-445) Bindi...
Subject:[jira] [Commented] (PROTON-445) Binding installation ignores prefix
From:ASF subversion and git services (JIRA) (ji@apache.org)
Date:Dec 3, 2013 1:42:18 pm
List:org.apache.qpid.proton

[
https://issues.apache.org/jira/browse/PROTON-445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13838226#comment-13838226
]

ASF subversion and git services commented on PROTON-445:

--------------------------------------------------------

Commit 1547597 from [~mcpierce] in branch 'proton/trunk' [ https://svn.apache.org/r1547597 ]

PROTON-445: PHP install now honors the install prefix.

If the install prefix is not "/usr" then the INI directory is placed below it. This is to accomodate a system install as opposed to a developer install.

Binding installation ignores prefix

-----------------------------------

Key: PROTON-445 URL: https://issues.apache.org/jira/browse/PROTON-445 Project: Qpid Proton Issue Type: Bug Components: proton-c Affects Versions: 0.5 Reporter: Justin Ross Fix For: 0.6

Attachments: what-a-mess.txt

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: # cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/myplace
/var/tmp/jross/baker/proton/source # 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.