-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
phosg: support tests; phosg, resource_dasm: some fixes for older systems and PPC #18103
Conversation
Notifying maintainers: |
Added simple fixes for
|
@@ -10,6 +10,7 @@ github.tarball_from archive | |||
|
|||
# blacklisting to select C++20 capable compilers | |||
compiler.blacklist-append {clang < 1300} | |||
compiler.cxx_standard 2020 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@barracuda156 your dedication to fixing ports on older systems is insane! Thank you for working on this 👍
Are you running bleeding-edge MacPorts on your machine? I think compiler.cxx_standard 2020
just sets the 2017 standard on stable MacPorts since support was only added 3 days ago (macports/macports-base@f23dca5).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@harens Okay, but setting 2017 would make no difference now, but will have to be changed anyway later to 2020? Or do I miss something?
Alternatively we need to blacklist several versions of GCC, because otherwise they get picked, and build fails.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively we need to blacklist several versions of GCC, because otherwise they get picked, and build fails.
I'm thinking more along those lines. Keep the cxx 20 but some other compilers might need to be blacklisted. From the mentioned commit:
-----------------------------------------------------------------------
#| C++ Standard | Clang | Xcode Clang | Xcode | GCC |
#|---------------------------------------------------------------------|
#| 2017 (C++17) | 5.0 | 1000.11.45.2 | 10.0 | 7 |
#| 2020 (C++20) | 14 | 1400.0.29.102 | 14.0 | 11 |
Changed to draft, since upstream added fixes, which have to be added here. |
I can take a look at the upstream changes tomorrow. |
@fracai That would be awesome, thank you.
We will also probably need some extra fixes for Clang builds on some older x86 OSs, judging by a quick look at buildbots’ logs. |
The quick changes to bring in the upstream changes is just:
Then I get a lot of |
After stashing the phosg and resource_dasm upstream changes, I still get the "unqualified std" errors. So something changed somewhere else. Is anyone aware of something like a change to |
@fracai Yeah, I was just waiting for extra fixes, since what we have does not work properly yet.
Nothing changed IMO, they were always failing, see: https://build.macports.org/builders/ports-10.15_x86_64-builder/builds/134711/steps/install-port/logs/stdio |
Oh, waiting for additional upstream changes? As in changes coming from upstream? Or should I take a look at what needs to be changed? What's weird is that they weren't always failing on my system. So I was confused why they were now. Though I just realized when I was testing, I reverted the commit hash updates, but not your patchfile changes, so that's "what changed". Basically I was testing partial changes and not realizing it. So, to be clear on the current state, there're additional upstream changes coming that should help here. |
Maybe you could join in: fuzziqersoftware/phosg#24
Buildbots were failing from Catalina down. I cannot verify that locally, but we have logs.
I have set my patches to be applied on systems which were already failing, so at least in theory nothing additional should have failed. In the worst case nothing gets fully fixed. (gcc build on 10.6.8 is fixed, but buildbots do not run that.)
Well, I hope so :) |
Perhaps won’t hurt merging as is? |
are tour proposed patched accepted by upstream? Any indication on whether/when they'll release a new version. Ideally we don't want to carry all these patches forward.. |
@reneeotten Well, it has been submitted back then: fuzziqersoftware/phosg#23 |
Description
Currently the port is broken on Catalina and downwards: https://ports.macports.org/port/phosg/details
This PR fixes the build on 10.6.8; it may fix it on some other systems too.
It also enables testing.
Type(s)
Tested on
macOS 10.6.8 Server
Xcode 3.2.6
Verification
Have you
port lint --nitpick
?sudo port test
?sudo port -vst install
?P. S. Several tests fail in Rosetta: