Page MenuHomeFreeBSD

devel/linux_libusb: Use CSTD of gnu11 for the c7 flavor
ClosedPublic

Authored by jhb on Feb 12 2025, 10:37 PM.
Tags
None
Referenced Files
F166140144: D48973.diff
Tue, Aug 11, 11:19 PM
Unknown Object (File)
Mon, Aug 10, 4:55 AM
Unknown Object (File)
Sat, Aug 8, 1:25 AM
Unknown Object (File)
Wed, Aug 5, 9:48 AM
Unknown Object (File)
Tue, Jul 28, 10:15 PM
Unknown Object (File)
Sun, Jul 26, 2:23 PM
Unknown Object (File)
Thu, Jul 23, 7:08 AM
Unknown Object (File)
Tue, Jul 21, 6:21 PM
Subscribers

Details

Summary

This fixes the build on 15.0 where the default CSTD of gnu17 is not
supported by the old version of gcc used for CentOS 7.

PR: 284039

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Feb 12 2025, 10:37 PM
jhb created this revision.

I'm obscured how this works. What exactly reacts to the CSTD env var? I see nothing using it in Ports framework, nor in devel/linux_libusb sources.

This is building FreeBSD source code from the base system but cross-compiled for Linux. It is using bsd.lib.mk from base and that is what uses CSTD. I recently bumped CSTD from gnu99 to gnu17 in main which broke this port since the version of GCC that ships with CentOS 7 is too old to understand C17.

Ah, now I see, thanks for explanations. The patch is good Ports-wise.

This revision is now accepted and ready to land.Feb 27 2025, 6:28 AM