Page MenuHomeFreeBSD

net-p2p/amule: Disable errors related to the 'register' keyword instead of changing C++ standard used to build port
ClosedPublic

Authored by rakuco on Jul 8 2023, 9:45 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 1, 9:50 PM
Unknown Object (File)
Oct 17 2024, 1:42 AM
Unknown Object (File)
Oct 16 2024, 8:56 AM
Unknown Object (File)
Oct 13 2024, 7:57 PM
Unknown Object (File)
Oct 12 2024, 5:30 AM
Unknown Object (File)
Oct 10 2024, 9:48 PM
Unknown Object (File)
Oct 10 2024, 3:45 PM
Unknown Object (File)
Oct 8 2024, 3:44 PM
Subscribers

Details

Summary

Instead of forcing the port to build with -std=c++11 in all FreeBSD versions, just pass -Wno-register when the port is being built with a Clang release that defaults to C++17 mode (which does not have the register keyword by default).

Test Plan

The port built fine on amd64-CURRENT.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

rakuco requested review of this revision.Jul 8 2023, 9:45 AM
net-p2p/amule/Makefile
17

With this fix, can compiler:c++11-lang be removed from USES?

Thanks very much for this awesome fix.

This revision is now accepted and ready to land.Jul 8 2023, 3:30 PM
rakuco added inline comments.
net-p2p/amule/Makefile
17

Good question. For tier 1 architectures this USES entry does not do anything, and it was added years ago for powerpc support with GCC based on the commits.

I'm not sure what the guidance is about these USES=compiler entries, but you can double check with @pkubaj if GCC is still needed and whether this can be removed.

net-p2p/amule/Makefile
17

For 13 and 14, it doesn't matter whether it's tier 1 or tier 2. All the architectures use LLVM. What matters is just the FreeBSD 12.4-RELEASE, where powerpc and powerpc64 use GCC 4.2 and it certainly supports neither C++11 nor C++17 so if the port requires C++11 or C++17, this entry is certainly necessary to build on 12.4.

net-p2p/amule/Makefile
17

Got it, thanks Piotr! Glad to know that we'll be able to remove a bunch of those USES=compiler entries next year.

net-p2p/amule/Makefile
17

Yep, it will be nice! I love removals and cleanups :)