[PATCH 0/4] meson: Use osdep_prefix for strchrnul()

Akihiko Odaki posted 4 patches 6 months, 3 weeks ago
Failed in applying to current master (apply log)
meson.build | 80 ++++++++++++++++++++++++++-----------------------------------
1 file changed, 34 insertions(+), 46 deletions(-)
[PATCH 0/4] meson: Use osdep_prefix for strchrnul()
Posted by Akihiko Odaki 6 months, 3 weeks ago
macOS SDK may have the symbol of strchrnul(), but it is actually
available only on macOS 15.4 or later and that fact is codified in
string.h. Include the header file using osdep_prefix to check if the
function is available on the deployment target.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
Akihiko Odaki (4):
      meson: Use has_header_symbol() to check getcpu()
      meson: Remove CONFIG_STATX and CONFIG_STATX_MNT_ID
      meson: Share common C source prefixes
      meson: Use osdep_prefix for strchrnul()

 meson.build | 80 ++++++++++++++++++++++++++-----------------------------------
 1 file changed, 34 insertions(+), 46 deletions(-)
---
base-commit: 1da8f3a3c53b604edfe0d55e475102640490549e
change-id: 20250423-buildsys-84d2feefca6b

Best regards,
-- 
Akihiko Odaki <akihiko.odaki@daynix.com>
Re: [PATCH 0/4] meson: Use osdep_prefix for strchrnul()
Posted by Philippe Mathieu-Daudé 6 months, 3 weeks ago
Hi Paolo, Pierrick,

On 24/4/25 06:50, Akihiko Odaki wrote:
> macOS SDK may have the symbol of strchrnul(), but it is actually
> available only on macOS 15.4 or later and that fact is codified in
> string.h. Include the header file using osdep_prefix to check if the
> function is available on the deployment target.
> 
> Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
> ---
> Akihiko Odaki (4):
>        meson: Use has_header_symbol() to check getcpu()
>        meson: Remove CONFIG_STATX and CONFIG_STATX_MNT_ID
>        meson: Share common C source prefixes
>        meson: Use osdep_prefix for strchrnul()

If you don't have objections, I'm queuing this series as a hotfix
because multiple users are complaining building QEMU on macOS fails
by default. Unfortunately Apple made their SDK change the week we
released v10.0.0, I recommend it gets in v10.0.1 soon enough.

Thanks,

Phil.