Fortunately patching out such nonsense is as easy as running a few commands.
Project tracking these laws and providing patches as needed: https://agelesslinux.org/