Both Arch and Nix solve this by making it very easy to write packages that work around the compatibility issues. When I used to use ubuntu and mint it was a lot more common to run into these types of issues.