[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#36477] [PATCH v3 04/48] gnu: cmake: Fix cross-compilation.
From: |
Mathieu Othacehe |
Subject: |
[bug#36477] [PATCH v3 04/48] gnu: cmake: Fix cross-compilation. |
Date: |
Fri, 20 Sep 2019 16:18:55 +0200 |
User-agent: |
mu4e 1.2.0; emacs 26.3 |
Hey Ludo,
> It seems to be enough to just add ‘search-paths’ to ‘cmake’:
>
I tried to do that but it doesn't work. Let's consider libgit2 which
uses cmake, when cross-compiling, both native-search-paths and
search-paths are set. Both are passed to bag-build in
"bag->cross-derivation".
Then, gnu-build is called from cmake-build and "set-paths" function is
called. "set-path-environment-variable" is called for CMAKE_PREFIX_PATH
which is in search-paths and then called again for CMAKE_PREFIX_PATH in
native-search-paths.
The later will cause the first setenv to be undone, and we end-up with
only native-inputs in CMAKE_PREFIX_PATH variable.
Whereas, with my patch only search-paths is set, so it can't be "undone"
by native-search-paths. CMAKE_PREFIX_PATH is filled with only "inputs"
which is what is expected.
I hope I'm clear and I'm sorry to reply so late, didn't have any slack
in my day job :(
WDYT?
Thanks,
Mathieu
- [bug#36477] [PATCH v3 05/48] gnu: libpaper: Fix aarch64 cross-compilation., (continued)
- [bug#36477] [PATCH v3 05/48] gnu: libpaper: Fix aarch64 cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 09/48] gnu: indent: Fix aarch64 cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 10/48] gnu: libsamplerate: Fix aarch64 cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 12/48] gnu: mkfontdir: Fix aarch64 cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 02/48] gnu: openssl: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 07/48] gnu: texinfo-5: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 06/48] gnu: groff: Fix cross compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 04/48] gnu: cmake: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 14/48] gnu: glibc-utf8-locales: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 11/48] gnu: cyrus-sasl: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 13/48] gnu: icu4c: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 16/48] gnu: eudev: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 19/48] gnu: bdb: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 17/48] gnu: lvm2: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 20/48] gnu: openldap: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 08/48] gnu: bc: Fix cross-compilation., Mathieu Othacehe, 2019/09/02