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

fontforge: patch startnoui.c to fix includes #17845

Closed
wants to merge 1 commit into from

Conversation

jtanx
Copy link
Contributor

@jtanx jtanx commented Sep 9, 2017

This patch is required, otherwise fontforge won't work (cf. FontCustom/fontcustom#355), especially as Homebrew compiles with --without-x (which exercises the less-used no-UI code paths).

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

@@ -47,6 +47,10 @@ def install
args << "--without-libspiro" if build.without? "libspiro"
args << "--without-libuninameslist" if build.without? "libuninameslist"

# Fix header includes
# fontforge/fontforge#3145
system "sed", "-i.bak", "s/#include \"fontforgevw.h\"/#include \"fontforgevw.h\"\\\n#include \"encoding.h\"/g", "fontforgeexe/startnoui.c"
Copy link
Member

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 inreplace here, I suspect.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks.

This patch is required, otherwise fontforge won't work (cf. FontCustom/fontcustom#355), especially as Homebrew compiles with `--without-x` (which exercises the less-used no-UI code paths).
@fxcoudert
Copy link
Member

Thanks @jtanx for the patch and pull request!

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.

3 participants