Commit Graph

24 Commits

Author SHA1 Message Date
Luke Elliott ce691f8c98 Add comments suggesting to keep shell completion scripts up-to-date near cmd line argument code 2023-11-01 00:06:19 +02:00
L. E. Segovia 878d950887 environment, env2mfile: Don't shell split paths if they point to a valid executable
Fixes #11128
2023-09-15 07:31:37 -04:00
Eli Schwartz 13f8eba9b6
treewide: internally avoid deprecated machine file uses of "pkgconfig"
We support this in a machine file:

```
[binaries]
pkgconfig = 'pkg-config'
pkg-config = 'pkg-config'
```

and you can use either one, because internally we look up both. If you
only set *one* of them, this plays awkwardly with setting $PKG_CONFIG,
since we don't know which one you set in the machine file and the
*other* one will be initialized from the environment instead.

In commit 22df45a319 we changed program
lookup of config-tool style dependencies to use the regular tool names
and only fall back on the strange internal names. This affected the
pkg-config class too.

The result is that instead of preferring `pkgconfig =` followed by
$PKG_CONFIG followed by `pkg-config =`, we inverted the lookup order.
This is a good idea anyway, because now it behaves consistently with
`find_program('pkg-config')`.

Unfortunately, we documented the wrong name in a bunch of places, and
also used the wrong name in various testsuite bits, which meant that if
you set $PKG_CONFIG and then ran the testsuite, it would fail.

Correct these references, because they are buggy.

One test case expected to find_program() a native copy for convenience
of testing against natively installed glib. Force it to resolve a native
copy.
2023-08-02 01:35:16 -04:00
Jussi Pakkanen b0d2a92584 Add kernel and subsystem properties to machine objects. 2023-06-19 18:03:57 +03:00
Xavier Claessens dbb857dd71
env2mfile: Take pkg-config properties from env 2023-06-12 15:08:30 -04:00
Xavier Claessens 62a5673b98
env2mfile: Take binaries from env for cross file too 2023-06-12 15:08:28 -04:00
Xavier Claessens 1ab7d3b28e
env2mfile: Not all compilers have env for flags 2023-06-12 15:08:26 -04:00
Jussi Pakkanen 65482497d3 Import cpu detection fix from Debian.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1033579
2023-03-28 11:50:44 +03:00
Jussi Pakkanen 5ccac0699f Add detection code for powerpc64le.
Originally from:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1019413
2023-02-28 20:24:51 +02:00
Jussi Pakkanen 38b6d6d61a Add a deb_ prefix to constants that are only used in Debian system detection. 2023-02-28 20:24:51 +02:00
Jussi Pakkanen 2aa4d6e54e Handle a cross compilation setup that only has a C compiler. 2023-02-28 20:24:51 +02:00
Jussi Pakkanen bc38db035e Add Debian platform autodetect to env2mfile. 2023-02-28 20:24:51 +02:00
Eli Schwartz c9ac73a4da
simplify instantiation of builtin type using builtins instead of functions 2023-02-01 17:01:30 -05:00
Jussi Pakkanen fd43842041 Fix writing single strings in env2mfile. 2022-11-22 02:19:59 +02:00
Jussi Pakkanen 611bd4e6db Add CMake to cross file.
Original patch by Helmut Grohne.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1023744
2022-11-12 14:21:47 +02:00
Jussi Pakkanen 318579b367 Fix ppc64 detection in Debian.
Original patch by Helmut Grohne.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1023744
2022-11-12 14:21:47 +02:00
Dylan Baker 8c819ab805
pylint: enable unspecified-encoding 2022-10-03 00:02:02 -04:00
Eli Schwartz 388cb0f805 env2mfile: reuse logical lists of interesting facts from meson itself
Meson internally knows about many languages and tools, and *FLAGS
variables, and which languages to use them for. Instead of duplicating
this logic, import it from mesonbuild.*

This logic was originally standalone, but now that it is merged into the
Meson tree we can have a single source of truth.
2022-09-01 01:05:48 +03:00
Eli Schwartz 462b35e4b1 flake8: fix various whitespace nits 2022-06-13 13:34:39 +03:00
Eli Schwartz a49cd00d64 treewide: various cleanups to move imports for mypy into typechecking blocks
Along the way, add __future__ annotations where lacking.
2022-06-10 09:15:48 -04:00
Jussi Pakkanen b78d33f0b5 Fix typo that breaks g++ cross detection on Debian. 2022-04-23 23:57:15 +03:00
Jussi Pakkanen 04ef7ec45d Add new env2mfile command. 2022-03-09 18:02:04 -05:00
Eli Schwartz 7cc4ca2cbb
Revert "Add new env2cross command."
This reverts commit e257a870fe.

The PR adding this command had infinitely hanging CI, and now that it is
merged to master we cannot get any CI on any PR to succeed.
2022-03-08 21:34:39 -05:00
Jussi Pakkanen e257a870fe Add new env2cross command. 2022-03-08 23:40:03 +02:00