This repository has been archived by the owner. It is now read-only.

Ghostscript 9.02 fails to build on 10.7 #6381

Closed
PacifistRiot opened this Issue Jul 10, 2011 · 14 comments

Comments

@PacifistRiot

PacifistRiot commented Jul 10, 2011

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

@kule

This comment has been minimized.

Show comment
Hide comment
@kule

kule Jul 11, 2011

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.

kule commented Jul 11, 2011

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.

@adamv

This comment has been minimized.

Show comment
Hide comment
@adamv

adamv Jul 21, 2011

Contributor

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

Contributor

adamv commented Jul 21, 2011

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

@CharlieRoot

This comment has been minimized.

Show comment
Hide comment
@CharlieRoot

CharlieRoot Jul 21, 2011

Contributor

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

Contributor

CharlieRoot commented Jul 21, 2011

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

@ipranay

This comment has been minimized.

Show comment
Hide comment
@ipranay

ipranay Jul 25, 2011

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

ipranay commented Jul 25, 2011

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

@polysign

This comment has been minimized.

Show comment
Hide comment
@polysign

polysign Jul 25, 2011

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

polysign commented Jul 25, 2011

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

@conatus

This comment has been minimized.

Show comment
Hide comment
@conatus

conatus Aug 1, 2011

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

conatus commented Aug 1, 2011

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

@erwin16

This comment has been minimized.

Show comment
Hide comment
@erwin16

erwin16 Aug 2, 2011

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

erwin16 commented Aug 2, 2011

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

@borrible13th

This comment has been minimized.

Show comment
Hide comment
@borrible13th

borrible13th Aug 2, 2011

When is this patch going to be included?

borrible13th commented Aug 2, 2011

When is this patch going to be included?

@CharlieRoot

This comment has been minimized.

Show comment
Hide comment
@CharlieRoot

CharlieRoot Aug 2, 2011

Contributor

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

Contributor

CharlieRoot commented Aug 2, 2011

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

@CharlieRoot

This comment has been minimized.

Show comment
Hide comment
@CharlieRoot

CharlieRoot Aug 2, 2011

Contributor

Before pull request is accepted, you can

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

CharlieRoot commented Aug 2, 2011

Before pull request is accepted, you can

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

This comment has been minimized.

Show comment
Hide comment
@borrible13th

borrible13th Aug 2, 2011

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

borrible13th commented Aug 2, 2011

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

@Artspot

This comment has been minimized.

Show comment
Hide comment
@Artspot

Artspot Aug 4, 2011

Thanks guys!

Artspot commented Aug 4, 2011

Thanks guys!

@adamv

This comment has been minimized.

Show comment
Hide comment
@adamv

adamv Aug 4, 2011

Contributor

Fixed in #6516

Contributor

adamv commented Aug 4, 2011

Fixed in #6516

@adamv adamv closed this Aug 4, 2011

@rackom

This comment has been minimized.

Show comment
Hide comment
@rackom

rackom Oct 22, 2011

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

rackom commented Oct 22, 2011

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

@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016

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