Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#697 closed defect (fixed)

grass package requires a nonexistent gs package

Reported by: andreaerdna Owned by: osgeo4w-dev@…
Priority: minor Component: Package
Version: Keywords:
Cc:

Description (last modified by andreaerdna)

Among the required packages for the grass package (in the OSGeo4W v2 repository) there is a nonexistent gs package:

@ grass

sdesc: "GRASS GIS"

ldesc: "Geographic Resources Analysis Support System (GRASS GIS)"

category: Desktop

requires: liblas gdal303-runtime proj81-runtime avce00 gpsbabel gs python3-gdal python3-matplotlib libtiff python3-wxpython python3-pillow python3-pip python3-ply python3-pyopengl python3-psycopg2-binary python3-six zstd python3-pywin32

Change History (8)

comment:1 by jef, 3 years ago

Priority: majorminor

Do you know what gs is used for in GRASS?

comment:2 by andreaerdna, 3 years ago

In the old v1 OSGeo4W repository, the gs package is named "Ghostscript".

I don't know if GRASS actually requires the gs package and what it is required for. Maybe to export something in ps/pdf.

The Debian grass-gui (7.8.6-1) package has the ghostscript package listed as "recommends".

And in the Compile and Install instructions for Ubuntu ghostscript is listed among the compilation dependencies.

Last edited 3 years ago by andreaerdna (previous) (diff)

comment:3 by andreaerdna, 3 years ago

The nonexistent gs package is no longer listed among the required packages for the grass package.

comment:4 by andreaerdna, 3 years ago

Description: modified (diff)
Resolution: fixed
Status: newclosed

comment:5 by sbl, 3 years ago

The gs package is required for / used in the cartographic composer: https://trac.osgeo.org/grass/ticket/1554

What would be needed to make that available on MS Windows (again)?

in reply to:  5 ; comment:6 by jef, 3 years ago

Replying to sbl:

What would be needed to make that available on MS Windows (again)?

hm, repackaged gs 9.55 (from ghostscript.com). Exporting postscript works, but PDF doesn't, because GRASS requires .setpdfwrite on Windows, which ghostscript apparently doesn't have anymore.

in reply to:  6 ; comment:7 by andreaerdna, 3 years ago

Replying to jef:

GRASS requires .setpdfwrite on Windows, which ghostscript apparently doesn't have anymore.

It seems .setpdfwrite is no longer needed with ghostscript >= 9.50, so I think it could be removed from https://github.com/OSGeo/grass/blob/f52bc7a4a174bcc8973df7ff242283fdc00b913c/gui/wxpython/psmap/frame.py#L419

in reply to:  7 comment:8 by sbl, 3 years ago

Replying to andreaerdna:

Replying to jef:

GRASS requires .setpdfwrite on Windows, which ghostscript apparently doesn't have anymore.

It seems .setpdfwrite is no longer needed with ghostscript >= 9.50, so I think it could be removed from https://github.com/OSGeo/grass/blob/f52bc7a4a174bcc8973df7ff242283fdc00b913c/gui/wxpython/psmap/frame.py#L419

Thanks, jef and andreaerdna. I tried to adress this in: https://github.com/OSGeo/grass/pull/1961 and https://github.com/jef-n/OSGeo4W/pull/6

Note: See TracTickets for help on using tickets.