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
F164119788: D48973.id.diff
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
Unknown Object (File)
Sun, Jul 19, 9:18 PM
Unknown Object (File)
Mon, Jul 13, 2:19 AM
Unknown Object (File)
Jun 25 2026, 12:36 PM
Unknown Object (File)
Jun 24 2026, 7:01 AM
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