ghostscript: add `--without-x` #14596

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
6 participants
Contributor

2bits commented Aug 31, 2012

gs-9.06 is designed to build with only :libpng these days, but it
fails to compile with superenv unless we specify that we don't
want to build with X11.

  • Remove the ENV['LIBS'] = some/X11/path
  • Add --without-x to fix a build error.

Fixes #14564

nibbles 2bits ghostscript: add `--without-x`
gs-9.06 is designed to build with only `:libpng` these days, but it
fails to compile with superenv unless we specify that we don't
want to build with X11.

* Remove the `ENV['LIBS'] = some/X11/path`
* Add `--without-x` to fix a build error.

Fixes #14564
f28f1ba
Contributor

mistydemeo commented Aug 31, 2012

Thanks!

@Sharpie Sharpie pushed a commit to Sharpie/homebrew that referenced this pull request Sep 12, 2012

@mistydemeo nibbles 2bits + mistydemeo ghostscript: add `--without-x`
gs-9.06 is designed to build with only `:libpng` these days, but it
fails to compile with superenv unless we specify that we don't
want to build with X11.

* Remove the `ENV['LIBS'] = some/X11/path`
* Add `--without-x` to fix a build error.

Fixes #14564

Closes #14596.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
07bcb46
Contributor

claudiodsf commented Sep 17, 2012

Is there a way of building it with X11 support, for people still needing it?

Contributor

2bits commented Sep 17, 2012

I you can make a gs formula that has X11 as an option, submit a PR for it. That should be acceptable.

@snakeyroc3 snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this pull request Dec 17, 2012

@mistydemeo nibbles 2bits + mistydemeo ghostscript: add `--without-x`
gs-9.06 is designed to build with only `:libpng` these days, but it
fails to compile with superenv unless we specify that we don't
want to build with X11.

* Remove the `ENV['LIBS'] = some/X11/path`
* Add `--without-x` to fix a build error.

Fixes #14564

Closes #14596.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
94df065

I don't understand the original bug or the fix. I just know that when I run gv it receives an error message from gs saying that x11 is an unknown device. Could you add a comment to this bug on how to take advantage of :libpng if that is what is supposed to be used, or otherwise explain how to make gv usable. Thanks

Updated: I should be a little more precise. When I start ghostview I don't get any error. But if I try to open a pdf or ps or eps file then I get an error message dialog. In the title of the dialog it says "Ghostscript Messages". The contents of the message is

Unknown device: x11
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
    defaultdevice

So it seems that my install of ghostview is unusable. I checked brew info for ghostview and ghostscript and I don't see any options to "turn off" x11 and "turn on" libpng. So I'm left wondering how anyone is using ghostview in this state.

My homebrew install is up to date as of Jan 2, 2013.

I'm even more confused now. I just search for valid output devices for ghostscript: http://ghostscript.com/doc/current/Devices.htm#Display_devices

That documentations specifies a bunch of x11 devices and a display device for windows. There are no other options listed for Mac. So is there another bug open that states that ghostview is unusable?

Contributor

claudiodsf commented Jan 3, 2013

@michaelgwelch This is exactly my problem, and that's why I was asking for leaving an option to build Ghostscript with X11 support.

I opened a new issue #16865 to document the apparently broken gv. Perhaps an explanation can be added the new issue to explain how to get gv to work without x11 support in ghostscript.

Owner

MikeMcQuaid commented Jan 3, 2013

The answer is probably "gv doesn't work without X11 support". In that case we should probably delete it without X11 support and add a with-x11 option. I'll get to this eventually but if you guys want the latter I suggest giving it a go yourself and making a pull request.

@MikeMcQuaid I was afraid you would say that. Thanks for the update.

Contributor

RuiPereira commented Jan 6, 2013

@MikeMcQuaid @michaelgwelch Check PR #16924, it solves the gv problem for me.

Thanks i'll give it a try.

On Jan 6, 2013, at 8:22 AM, Rui Pereira notifications@github.com wrote:

@MikeMcQuaid https://github.com/mikemcquaid
@michaelgwelchhttps://github.com/michaelgwelchCheck PR
#16924 mxcl#16924, it solves the
gvproblem for me.


Reply to this email directly or view it on
GitHubhttps://github.com/mxcl/homebrew/pull/14596#issuecomment-11928983.

xu-cheng 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.