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

xerces-c 3.2.0 #17371

Closed
wants to merge 13 commits into from
Closed

xerces-c 3.2.0 #17371

wants to merge 13 commits into from

Conversation

rleigh-codelibre
Copy link
Contributor

@rleigh-codelibre rleigh-codelibre commented Aug 29, 2017

  • [Y] Have you followed the guidelines for contributing?
  • [Y] Have you checked that there aren't other open pull requests for the same formula update/change?
  • [Y] Have you built your formula locally with brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • [Y] Does your build pass brew audit --strict <formula> (after doing brew install <formula>)?

Note, this release switches to cmake, and this automatically enables the use of char16_t for unicode strings in place of uint16_t. This means you can use u"string" directly which is a nice usability gain, but it does mean that all packages using xerces-c must compile with C++11 enabled. If this proves to be a problem, we can explicitly disable it until Xcode enables it by default. I've patched xalan-c (https://issues.apache.org/jira/browse/XALANC-773).

@@ -25,6 +26,7 @@ class XalanC < Formula

def install
ENV.deparallelize # See https://issues.apache.org/jira/browse/XALANC-696
ENV["CXXFLAGS"] = "-std=c++11"
Copy link
Contributor

Choose a reason for hiding this comment

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

You'll want to use

  needs :cxx11

and

    ENV.cxx11

instead.

ENV.deparallelize # See https://issues.apache.org/jira/browse/XALANC-696
ENV["CXXFLAGS"] = "-std=c++11"
Copy link
Contributor

Choose a reason for hiding this comment

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

this shouldn't be needed now that you've added ENV.cxx11.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

D'oh. I'll push that in just a second.

@rleigh-codelibre
Copy link
Contributor Author

@ilovezfs I've updated the revision of the dependent packages and added C++11 support there, but it's not building them in the CI testing AFAICT. Is something else missing? The errors when testing the bottled version are because the soname changed.

@ilovezfs
Copy link
Contributor

@rleigh-codelibre the ones that are failing need to be revision bumped.

@ilovezfs ilovezfs added revision bumps needed Reverse dependencies need to have their revision incremented in the same PR and removed revision bumps needed Reverse dependencies need to have their revision incremented in the same PR labels Aug 31, 2017
@ilovezfs
Copy link
Contributor

ilovezfs commented Sep 3, 2017

@rleigh-codelibre I have pushed the revision bumps.

@rleigh-codelibre
Copy link
Contributor Author

@ilovezfs Thanks. Some of them might need C++11 enabling. And some like zquilla need some patches to fix incompatibilities in the code. I'm working my way through these in the BSD ports tree, and I'll carry the patches over to homebrew once I've tested them.

@rleigh-codelibre
Copy link
Contributor Author

@ilovezfs I've patched all the necessary packages and filed bug reports upstream wherever possible. The remaining errors are not in this PR but are warnings about existing problems:

11:25:34 ==> FAILED
11:25:34 Error: 1 problem in 1 formula
11:25:34 xml-tooling-c:
11:25:34   * Dependency curl should not use option with-openssl

11:54:55 ==> FAILED
11:54:55 Error: 1 problem in 1 formula
11:54:55 enigma:
11:54:55   * Dependency sdl_mixer should not use option with-libmikmod


12:06:16 ==> FAILED
12:06:16 Error: 1 problem in 1 formula
12:06:16 shibboleth-sp:
12:06:16   * Dependency curl should not use option with-openssl

Should these problems be addressed in this PR? I'm not exactly sure what the fixes are for these audit violations.

@ilovezfs
Copy link
Contributor

ilovezfs commented Sep 4, 2017

Should these problems be addressed in this PR? I'm not exactly sure what the fixes are for these audit violations.

Nope. They're being tracked in #13133.

I've patched all the necessary packages and filed bug reports upstream wherever possible.

Please submit PR(s) to https://github.com/Homebrew/formula-patches so they don't have to live in the formulae themselves.

@rleigh-codelibre
Copy link
Contributor Author

@ilovezfs I've opened Homebrew/formula-patches#175 . I'll update this PR once that one is merged?

@JCount
Copy link
Contributor

JCount commented Sep 10, 2017

@rleigh-codelibre I've merged all the patches, and I apologize for pinging you repeatedly whilst doing so. However, you should be set to move this PR forward. Thank you for your patience.

@ilovezfs
Copy link
Contributor

@rleigh-codelibre ping. Also note that this PR should be 1 commit per formula.

@rleigh-codelibre
Copy link
Contributor Author

Thanks. I'm away for the next week, so I'll update this in 8 days.

@ilovezfs
Copy link
Contributor

@BrewTestBot test this please

1 similar comment
@ilovezfs
Copy link
Contributor

@BrewTestBot test this please

@dunn
Copy link
Contributor

dunn commented Sep 19, 2017

Looks like this needs to be rebased.

@ilovezfs
Copy link
Contributor

Right. But rleigh-codelibre is away for a few days, so …

@rleigh-codelibre
Copy link
Contributor Author

rleigh-codelibre commented Sep 25, 2017

@JCount @ilovezfs Sorry for the delay; I've updated the branch to use the formula-patches and split up the commits, and rebased the lot onto current master. Hope that's all OK.

@rleigh-codelibre
Copy link
Contributor Author

There's one audit failure which seems to be in shibboleth-sp related to curl/openssl, unrelated to this PR.

@ilovezfs
Copy link
Contributor

@BrewTestBot test this please

@ilovezfs
Copy link
Contributor

@gvenzl do you have any idea who we should report the patch for dbxml to? (see https://raw.githubusercontent.com/Homebrew/formula-patches/master/dbxml/c%2B%2B11.patch)

@ilovezfs
Copy link
Contributor

@BrewTestBot test this please

1 similar comment
@ilovezfs
Copy link
Contributor

ilovezfs commented Oct 7, 2017

@BrewTestBot test this please

@ilovezfs
Copy link
Contributor

ilovezfs commented Oct 7, 2017

Thanks @rleigh-codelibre! You're awesome :)

❇️ 🎉 🎊

@ilovezfs ilovezfs closed this in a593e3d Oct 7, 2017
@rleigh-codelibre rleigh-codelibre deleted the xerces-c-3.2.0 branch October 7, 2017 08:25
@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants