GNU Astronomy Utilities - Bugs: bug #47868, Check Ghostscript version at...
You are not allowed to post comments on this tracker with your current authentication level.
bug #47868: Check Ghostscript version at ./configure time
Submitter: | Mohammad Akhlaghi <makhlaghi> | ||
Submitted: | Sat 07 May 2016 06:30:37 AM UTC | ||
Category: | Installation | Severity: | 4 - Important |
Item Group: | Crash | Status: | Confirmed |
Privacy: | Public | Assigned to: | giordano |
Open/Closed: | Closed |
Jump to the original submission
Mon 30 May 2016 08:49:03 AM UTC, comment #12: |
Mohammad Akhlaghi <makhlaghi> |
Mon 30 May 2016 08:38:24 AM UTC, comment #11: Uh,
|
Mosè Giordano <giordano> |
Mon 30 May 2016 01:53:01 AM UTC, comment #10: Ghostscript 9.05 does return "9.05". The initial script was tested on my own GNU/Linux system and a friend also tested it on a Mac OS X. In both cases the initial script would not recognize that "9.05" is smaller than "9.10" and would thus assume that Ghostscript can be used, which would result in a FAILed test result. |
Mohammad Akhlaghi <makhlaghi> |
Sun 29 May 2016 05:14:13 PM UTC, comment #9: Nice solution, but I don't understand why it was needed. Doesn't Ghostscript 9.05 return "9.05" when querying the version? |
Mosè Giordano <giordano> |
Fri 13 May 2016 10:50:58 AM UTC, comment #8: When the version of Ghostscript is 9.05, the version test we had initially implemented wasn't successful (so `make check' would give a FAILed result for the `convertt/fitstopdf.sh' test).
|
Mohammad Akhlaghi <makhlaghi> |
Thu 12 May 2016 06:27:54 AM UTC, comment #7: Thank you for the interesting solution. Apparently Gnulib is rarely tested on Native Windows and has a low priority for them (Gnuastro heavily relies on Gnulib).
|
Mohammad Akhlaghi <makhlaghi> |
Mon 09 May 2016 10:33:15 PM UTC, comment #6: AC_CHECK_PROGS or AC_PATH_PROGS can be used to test different names of a program. In AUCTeX there is this instruction
|
Mosè Giordano <giordano> |
Mon 09 May 2016 09:08:02 AM UTC, comment #5: Thanks. It has been merged into master. |
Mohammad Akhlaghi <makhlaghi> |
Sat 07 May 2016 01:36:12 PM UTC, comment #4: I pushed a fix to my "gs-version" branch. |
Mosè Giordano <giordano> |
Sat 07 May 2016 01:05:13 PM UTC, comment #3: In AUCTeX we support "rungs", "mgs", "GSWIN32C.EXE", and "gs", see http://git.savannah.gnu.org/gitweb/?p=auctex.git;a=blob;f=preview.el.in;h=8a5810493827c0de6fe7e84e4efe8e57f62c4f55;hb=HEAD#l349
|
Mosè Giordano <giordano> |
Sat 07 May 2016 01:00:31 PM UTC, comment #2: That is correct, the only time Ghostscript is used is in that line you found with a hard-coded `gs'. It would be great if the program name could be found at configure time along with the version. Just out of curiosity, are there other executable names for Ghostscript?
|
Mohammad Akhlaghi <makhlaghi> |
Sat 07 May 2016 12:53:19 PM UTC, comment #1: I think I can fix it, but I need the name of the program. Is it recorded in a variable during configuration or a hard-coded "gs" is used? The only occurrence of "-dPDFFitPage" I found is in src/convertt/eps.c, and hard-coded "gs" is used there. |
Mosè Giordano <giordano> |
Sat 07 May 2016 06:30:37 AM UTC, original submission:
Currently ./configure only checks if Ghostscript exists with `AC_CHECK_PROG'. However, in converting an EPS file to a PDF, ConvertType uses the `-dPDFFitPage' option which was introduced in Ghostscript in version 9.10.
|
Mohammad Akhlaghi <makhlaghi> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 3 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2016-05-09 | makhlaghi | Assigned to | None | giordano | |
Open/Closed | Open | Closed | |||
2016-05-07 | makhlaghi | Summary | Check Ghostscript\'s PDF creation at ./configure time | Check Ghostscript version at ./configure time |
Powered by Savane 3.13-02a9.
Corresponding source code
Putting this in a `test.sh' script and running it on the shell does give "before 9.10" on my system too. I am not sure why, but in the configure script, it would not work.
This is part of the `./configure' output for version 0.0.162-d6f0 that my friend sent to me. I had added the "checking Ghostscript version..." report to make sure why the tests FAILs on his system. You see that while the version is "9.05", but ultimately there is no warning for Ghostscript (showing how the test had failed).