kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #35635
Re: [PATCH] Don't reference CMAKE_INSTALL_PREFIX in installation paths
-
To:
kicad-developers@xxxxxxxxxxxxxxxxxxx
-
From:
Wayne Stambaugh <stambaughw@xxxxxxxxx>
-
Date:
Mon, 30 Apr 2018 09:45:27 -0400
-
Autocrypt:
addr=stambaughw@xxxxxxxxx; prefer-encrypt=mutual; keydata= xsDiBEM0hxQRBAC2fNh3YOVLu1d5GZ0SbrTNldGiGnCJPLqzEnqFX9v6jmf33TMt6EmSLkl6 Wtfkoj0nVwKxcYmJkA8DX0QAokBkwNIzhSsBzQvthBLIk/5LnPVVKrEXOcL4mUyH1doKlkaE slgJozNa6Av+oavcvD02o1zJOloBbaHlNlyRt7fKswCgtIFlVjWggVH/15KfWk+Qo5JVPbME AIUBAQyL2OAx0n60AWec2WHnO9buHuG0ibtICgUMkE+2MRmYyKwYRdyVwGoIUemFuOyHp0AJ InX4T+vy2E7vkwODqjtMLfIoRkokW74Fi4nrvjlhOAw/vdq/twLbAmR9MOfPTpR4y7kQy1O2 /n+RkkRvh26vTzfbQmrH7cBJhk6aA/9Uwvu3E4zNJgHVZeS0HyWtmR1eOPPRbnkPgJTToX5O KMKzTJI/FX6kT7cFoCamitHrW3BJP4Dx+cMMsa47EGxqVTdbVJ4LjogsXTXxb+0Fn1u4zBdx x3Cer6O7+hqWy7zvpzeC6nSREjqDKa5CgHtv/GLm5uFPOmsjAsnHj2tlBs0mV2F5bmUgU3Rh bWJhdWdoIDxzdGFtYmF1Z2h3QGdtYWlsLmNvbT7CYgQTEQIAIgUCWXDoogIbAwYLCQgHAwIG FQgCCQoLBBYCAwECHgECF4AACgkQG1FxaVn4JF5QbACgmUn1LehNSvH8BMlCRmApskCt8sgA nAw4GoFvw6bm3b7w/Tv4cwapzwPAzsFNBEM0hzEQCACAKu77f9o4LpEKOm9gLvbBj53lKYem ELrJ6JXb+Y66bK3kwuj8+zYbOdmvXUmymoWTkr9mm+kwwuqqMNnf37nRraIpFAUno2Ur6ElY yaPp4nKBCsLBijcaNzoKp+upS/7xVKd/+Lmwhma05UDhmMwvXwy4G8xKw11UsUl3kc2dhvWI 4QKm+p09WH/bUssITDsxRQYaccGEKuaTZol7mEWZxI2DiV0FxeuAxAHB/toxWihtcEwUNv8g Q0HJefSWUHsavYgUxGY1L3+nyz8gjViXZtOrJfgVLPxx+fsL0oTPt9pnvDMBynAcUL/Ozcmg CMnQgQp01SkjACUozNPcLNy3AAMFB/9zGkbbwwrKuqSc2ar/wtAvL7HoVJhcEuPFDP0GIE1h 56wNlDonlRsvWaOknMxrm0tnKk9ijhtsbJHbaGtvIMUruboBxVowgkqX3yDi6Qy60V8AnJEN pEQflmX9fU/i7Vn/JoAjL2Ypo1torX/l2M0nnAJMV6dNSACn3F1zfSQaQUN0skWnm7ENjg/S 9pmJl2NQK8MzdmO/kjOk05/FWpNQFA1Q/8GecqGSTSkNMPqzdfxL4PSs60QFDwrRzAREj8Tw QVryePRM3Dh7YxgZHzCD5LGonvPl/TM9jRs7ob0MMUHBgKrPM9Yap0CH28Dn3vVMBs8RG10X JuGS6ujOnZJ9wkkEGBECAAkFAkM0hzECGwwACgkQG1FxaVn4JF6wdQCfSqokQS6ftWlwGN/e +uSvJR4wcrkAn1gPSGRloW9a9w+p6ugM6pNfNNpx
-
In-reply-to:
<20180429100944.GA5190@pythagoras>
-
Openpgp:
preference=signencrypt
-
User-agent:
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
On 4/29/2018 6:09 AM, Marvin Schmidt wrote:
> On Sat, Apr 28, 2018 at 09:56:48PM +0200, Simon Richter wrote:
>>
>> This is substituted at configuration time, creating an absolute path, which
>> breaks overriding CMAKE_INSTALL_PREFIX at installation time, breaking the
>> workflow for installation using GNU stow.
>> ---
>> CMakeLists.txt | 10 +++++-----
>> 1 file changed, 5 insertions(+), 5 deletions(-)
>>
>
>> diff --git a/CMakeLists.txt b/CMakeLists.txt
>> index 1ef7c344d..d74ac52fd 100644
>> --- a/CMakeLists.txt
>> +++ b/CMakeLists.txt
>> @@ -431,7 +431,7 @@ if( NOT APPLE )
>> else()
>> # everything without leading / is relative to CMAKE_INSTALL_PREFIX.
>> # CMAKE_INSTALL_PREFIX is root of .dmg image
>> - set( KICAD_BIN ${CMAKE_INSTALL_PREFIX}
>> + set( KICAD_BIN "."
>> CACHE PATH "Location of KiCad binaries." FORCE )
>>
>> # some paths to single app bundle
>> @@ -861,25 +861,25 @@ if( UNIX AND NOT APPLE )
>>
>> # Install Mime directory
>> install( DIRECTORY ${UNIX_ICON_FILES}
>> - DESTINATION ${CMAKE_INSTALL_PREFIX}/share
>> + DESTINATION share
>> COMPONENT resources
>> )
>>
>> # Install Icons
>> install( DIRECTORY ${UNIX_MIME_FILES}
>> - DESTINATION ${CMAKE_INSTALL_PREFIX}/share
>> + DESTINATION share
>> COMPONENT resources
>> )
>>
>> # Install Applications directory (.desktop files)
>> install( DIRECTORY ${UNIX_APPLICATIONS_FILES}
>> - DESTINATION ${CMAKE_INSTALL_PREFIX}/share
>> + DESTINATION share
>> COMPONENT resources
>> )
>>
>> # Install AppStream directory (app store entry)
>> install( DIRECTORY ${UNIX_APPDATA_FILES}
>> - DESTINATION ${CMAKE_INSTALL_PREFIX}/share
>> + DESTINATION share
>> COMPONENT resources
>> )
>> endif()
>
> Could we use the appropriate GNUInstallDirs variables instead?
> Using relative paths like `share` doesn't play very nice in scenarios
> where `datarootdir` is not ${prefix}/share. On Exherbo for example
> we support targeting multiple architectures and for that
> architecture-dependent stuff is installed into /usr/${CHOST}/{bin,lib,include}
> and architecture-independent things into /usr/share.
> `DESTINATION share` and CMAKE_INSTALL_PREFIX=/usr/${CHOST} will result
> in data being installed into /usr/${CHOST}/share which we try to prevent
>
> Best regards
I'm not sure GNUInstallDir wont break all other platform installs so I'm
a bit reluctant to use it this close to v5 release. We certainly take a
look at it for v6. Is there some way to force GNUInstallDirs at config
time on the cmake command line?
>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help : https://help.launchpad.net/ListHelp
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References