Page MenuHomeFreeBSD

graphics/mesa: Fix pr247138, detect sys/sysctl.h and fix sed

Authored by zeising on Jun 14 2020, 8:23 AM.



This is a round up of misc fixes to mesea ports:
Fix pr247138 by properly defining _GNU_SOURCE when building on FreeBSD. This was lost when moving from autotools to meson
Properly detect sys/sysctl.h on FreeBSD, it requres sys/types.h.
Fix a broken sed command to properly set ${PREFIX}/etc and ${PREFIX}/share as appropriate.

Test Plan

Build and see that -D_GNU_SOURCE and -DHAVE_SYS_SYSCTL_H is set on the command line.
Verify that the sed command actually worked by checking the resulting src/util/xmlconfig.c .

Diff Detail

rP FreeBSD ports repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

zeising created this revision.Jun 14 2020, 8:23 AM
zeising requested review of this revision.Jun 14 2020, 8:23 AM
zeising edited the test plan for this revision. (Show Details)Jun 14 2020, 8:27 AM
manu accepted this revision.Jun 16 2020, 12:35 PM

Thanks for fixing thoses issues.

This revision is now accepted and ready to land.Jun 16 2020, 12:35 PM
This revision was automatically updated to reflect the committed changes.