Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Ghostscript 9.02 fails to build on 10.7 #6381

Closed
PacifistRiot opened this Issue · 14 comments

11 participants

Eli Luke Pearce Adam Vandenberg Dmitry Remesov Pranay Joshi Georges Jentgen Alex yvesdufour Katharina Marzok Artspot rackom
Eli

Im assuming 10.7 has an updated version of libpng and Ghostscript 9.02 build fails on libpng 1.5.

Here is a patch to fix the issue with gdevpng.c and allows the build to finish: http://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/print/ghostscript/patches/patch-ak

Luke Pearce

Thanks for this.

brew edit ghostscript

Then add:

....
class Ghostscript < Formula
    ....
    def patches
        { :p0 => 'http://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/print/ghostscript/patches/patch-ak' }
    end
end   

Incase anyone else has the same issue.

Adam Vandenberg
Owner

Is this safe to apply against libpng 1.2 as well, or do we need to if the application of this patch?

Dmitry Remesov

Made a patch that compiles against 1.2 and 1.5
Also it makes ghostscript use system freetype and expat and lcms, jasper and libtiff from homebrew
Pull from
git://github.com/CharlieRoot/homebrew.git fix_ghostscript_png

Not sure about 10.6 freetype so ghostscript uses bundled version instead of system on 10.6

Pranay Joshi

That worked like a charm!!... Thanks guys!

Georges Jentgen

Awesome! This seemed to solve my issues I had installing ghostscript on Lion. Thx

Alex

This also fixed my problem doing a make install on Lion. Thanks a great deal!

yvesdufour

Thanks again for being quick on patches .... running faster than a lion !

Katharina Marzok

When is this patch going to be included?

Dmitry Remesov

@borrible13th, who knows :)
Made a pull request #6516 July 21

Dmitry Remesov

Before pull request is accepted, you can

$ cd `brew --repository`
$ git pull git://github.com/CharlieRoot/homebrew.git fix_ghostscript_png
Katharina Marzok

@CharlieRoot: Thank you, that works for me! :-) Commented it also at your pull request #6516.

Artspot

Thanks guys!

Adam Vandenberg
Owner

Fixed in #6516

Adam Vandenberg adamv closed this
rackom

should i run then brew install gs?
commented on #6381

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.