kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #35643
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 15:48:49 -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:
<CAJXA3hTO1wQL9KLnovpZw3mCdf4JEF5rmCryJCof14z-Q=h3Pw@mail.gmail.com>
-
Openpgp:
preference=signencrypt
-
User-agent:
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
Adam,
Looks like this is the culprit:
@@ -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 )
This is inside the macos specific install code. My guess is Simon did a
grep and replaced all of the offending code and missed that this was
macos specific. I just pushed the change that restored the original
behavior.
Cheers,
Wayne
On 4/30/2018 2:58 PM, Adam Wolf wrote:
> Hi all,
>
> I am seeing build issues on macOS today, and they go away when I
> checkout the commit before the CMAKE_INSTALL_PREFIX change.
>
> I am deep into my own branch right now, but can someone doublecheck
> this is guarded to not make changes in macOS? I skimmed the patch and
> it looked like it wouldn't, but I could use another set of eyes while
> I finish my other KiCad work. I am pretty sure BundleUtilities uses
> CMAKE_INSTALL_PREFIX and matches the error messages I'm seeing.
>
> Sorry folks, I hope this isn't just noise.
>
> Adam
>
> On Mon, Apr 30, 2018 at 10:02 AM, Simon Richter
> <Simon.Richter@xxxxxxxxxx> wrote:
>> Hi Nick,
>>
>> On 30.04.2018 16:35, Nick Østergaard wrote:
>>
>>> @Simon, does MAKE_INSTALL_DATADIR work for gnu stow? If so, I guess it
>>> is safer to use that variable, as we do elsewhere.
>>
>> The problem I'm addressing with my patch is configure time vs. install
>> time path resolution -- if you explicitly use the variable there, you
>> generate an absolute path at configure time, and it remains absolute
>> during installation, while a relative path has a variable reference
>> implicitly prepended to it which is resolved at install time.
>>
>> So using CMAKE_INSTALL_DATADIR wouldn't work, what is needed is some way
>> to say "relative to whatever the variable is set to during installation".
>>
>> The traditional way to install with stow is to configure for a prefix of
>> /usr/local, then override that as /usr/local/DIR/kicad for installation
>> and symlink the files into the /usr/local tree -- that way, if you have
>> compiled-in paths, they will use the /usr/local prefix, so the software
>> will only be a tiny bit confused if it expects its data files not to be
>> symlinks).
>>
>> This is very close to what we do with DESTDIR (which is what most
>> distros use), but works without an extra renaming step.
>>
>> Simon
>>
>>
>> _______________________________________________
>> 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