Skip to content
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

a2ps: fix build with Xcode gcc #25711

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

barracuda156
Copy link
Contributor

Description

Fix build with old gcc

Type(s)
  • bugfix
  • enhancement
  • security fix
Tested on

macOS 10.6
Xcode 3.2

Verification

Have you

  • followed our Commit Message Guidelines?
  • squashed and minimized your commits?
  • checked that there aren't other open pull requests for the same change?
  • referenced existing tickets on Trac with full URL in commit message?
  • checked your Portfile with port lint --nitpick?
  • tried existing tests with sudo port test?
  • tried a full install with sudo port -vst install?
  • tested basic functionality of all binary files?
  • checked that the Portfile's most important variants haven't been broken?

Copy link
Contributor

@reneeotten reneeotten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not just select a compiler that understands this. Nobody wants s to keep on updating patches like this... and even if you would I am pretty sure MacPorts doesn't want to carry those forward indefinitely.

@barracuda156
Copy link
Contributor Author

why not just select a compiler that understands this. Nobody wants s to keep on updating patches like this... and even if you would I am pretty sure MacPorts doesn't want to carry those forward indefinitely.

I believe @kencu and maybe @ryandesign were in favor of patches in similar cases, unless those get ridiculous. I am fine with either choice personally.

@ryandesign
Copy link
Contributor

I agree that we are not the developers of a2ps and don't want to carry around patches forever. We prefer patches that can be sent upstream for inclusion in the next release. This patch is unsuitable for that since it just removes pragmas that they presumably want to use. If upstream development has ceased then it doesn't matter and we can patch whatever we want. I have indeed at times argued in favor of patching to appease older compilers, rather than declare older compilers incompatible, because compiling new compilers can be painfully slow on old computers.

@barracuda156
Copy link
Contributor Author

I agree that we are not the developers of a2ps and don't want to carry around patches forever. We prefer patches that can be sent upstream for inclusion in the next release. This patch is unsuitable for that since it just removes pragmas that they presumably want to use. If upstream development has ceased then it doesn't matter and we can patch whatever we want. I have indeed at times argued in favor of patching to appease older compilers, rather than declare older compilers incompatible, because compiling new compilers can be painfully slow on old computers.

@ryandesign So should I switch this to compiler.blacklist here? I am fine with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants