| Name |
ghostscript |
| Description |
interpreter for the PostScript language and for PDF |
| Version |
10.05.1~dfsg-1+deb13u1 |
| Package Base |
|
| Homepage |
https://www.ghostscript.com/ |
| Maintainers |
['Debian Printing Team <debian-printing@lists.debian.org>'] |
| Contributors |
['Steve M. Robbins <smr@debian.org>'] |
| Distro-repo |
https://salsa.debian.org/debian/ghostscript |
| Sources |
['https://sources.debian.org/data/main/g/ghostscript/10.05.1~dfsg-1+deb13u1/debian/watch', 'https://sources.debian.org/src/ghostscript/10.05.1~dfsg-1+deb13u1/debian/patches/0001_CVE-2025-7462.patch', 'https://sources.debian.org/src/ghostscript/10.05.1~dfsg-1+deb13u1/debian/patches/0002_pdfwrite-bounds-check-some-strings.patch', 'https://sources.debian.org/src/ghostscript/10.05.1~dfsg-1+deb13u1/debian/patches/0003_pdfwrite-avoid-buffer-overrun.patch', 'https://sources.debian.org/src/ghostscript/10.05.1~dfsg-1+deb13u1/debian/patches/1004_enable_spot_devices.patch', 'https://sources.debian.org/src/ghostscript/10.05.1~dfsg-1+deb13u1/debian/patches/1005_simplify_ps2ascii.patch', 'https://sources.debian.org/src/ghostscript/10.05.1~dfsg-1+deb13u1/debian/patches/2001_docdir_fix_for_debian.patch', 'https://sources.debian.org/src/ghostscript/10.05.1~dfsg-1+deb13u1/debian/patches/2002_gs_man_fix_debian.patch', 'https://sources.debian.org/src/ghostscript/10.05.1~dfsg-1+deb13u1/debian/patches/2003_support_multiarch.patch', 'https://sources.debian.org/src/ghostscript/10.05.1~dfsg-1+deb13u1/debian/patches/2004_remove_non-Debian_paths_from_docs.patch', 'https://sources.debian.org/src/ghostscript/10.05.1~dfsg-1+deb13u1/debian/patches/2005_fix_Debian_paths_in_docs.patch', 'https://sources.debian.org/src/ghostscript/10.05.1~dfsg-1+deb13u1/debian/patches/2006_suggest_install_ghostscript-doc_in_docs.patch', 'https://sources.debian.org/src/ghostscript/10.05.1~dfsg-1+deb13u1/debian/patches/2007_suggest_install_ghostscript-doc_in_code.patch', 'https://sources.debian.org/src/ghostscript/10.05.1~dfsg-1+deb13u1/debian/patches/2008_mention_ghostscript-x_in_docs.patch', 'https://sources.debian.org/src/ghostscript/10.05.1~dfsg-1+deb13u1/debian/patches/2010_add_build_timestamp_setting.patch', 'https://sources.debian.org/src/ghostscript/10.05.1~dfsg-1+deb13u1/debian/patches/2011_disable_google_analytics.patch', 'https://sources.debian.org/src/ghostscript/10.05.1~dfsg-1+deb13u1/debian/patches/README', 'https://sources.debian.org/src/ghostscript/10.05.1~dfsg-1+deb13u1/debian/patches/series'] |
| Dependencies |
['libc6', 'libgs10'] |
| Optional-Dependencies |
['texlive-binaries'] |
| Build-Dependencies |
['debhelper-compat', 'dh-linktree', 'dh-sequence-pkgkde-symbolshelper', 'fonts-urw-base35', 'freeglut3-dev', 'libcups2-dev [!kfreebsd-any]', 'libcupsimage2-dev [!kfreebsd-any]', 'libexpat-dev', 'libfontconfig-dev', 'libfreetype-dev', 'libice-dev', 'libidn-dev', 'libijs-dev', 'libjbig2dec0-dev', 'libjpeg-dev', 'liblcms2-dev', 'libopenjp2-7-dev', 'libpaper-dev', 'libpng-dev', 'libsm-dev', 'libtiff-dev', 'libx11-dev', 'libxext-dev', 'libxt-dev', 'pkgconf', 'rename', 'zlib1g-dev'] |
| Provides |
[] |
| Builddate |
|
| Architecture |
amd64 |
| Distro-Version |
trixie |
| Licenses |
[] |
| Hash |
82f9974dcc297bca32994a365b29f255d531060ad2c5012260f0a2b4138a9c9e |
#!/usr/bin/make -f
# get upstream ABI variable, and export it for use by debhelper snippets
include base/version.mak
export GS_DOT_VERSION
include /usr/share/dpkg/pkg-info.mk
# detect if build targets experimental suite (or is a draft)
DEB_SUITE_EXP = $(filter experimental% UNRELEASED,$(DEB_DISTRIBUTION))
pkg-data = libgs10-common
binaries := $(shell dh_listpackages)
# don't run configure during autogen.sh
export NOCONFIGURE = 1
fontdirs = /var/lib/ghostscript/fonts /usr/share/cups/fonts \
/usr/share/ghostscript/fonts /usr/local/lib/ghostscript/fonts \
/usr/share/fonts
# Remove some of the scripts
DEB_DH_INSTALL_ARGS_ALL += $(addprefix -Xbin/,\
unix-lpr.sh lprsetup.sh pv.sh fixmswrd.pl)
# Do not include the Ghostscript loader executable with GTK support
DEB_DH_INSTALL_ARGS_ALL += -Xbin/gsx
# Strip CMap files (separately packaged in poppler-data)
DEB_DH_INSTALL_ARGS_ALL += -X/Resource/CMap
# Recommend fonts-droid (not ship DroidSansFallback.ttf)
DEB_DH_INSTALL_ARGS_ALL += -XDroidSansFallback.ttf
# relax symbols check when bootstrapping an arch or targeting experimental
STAGE1 = $(findstring stage1,$(DEB_BUILD_PROFILES))
export DPKG_GENSYMBOLS_CHECK_LEVEL=$(if $(DEB_SUITE_EXP)$(STAGE1),0,1)
# # FIXME: Enable parallel when not causing spurious errors like this:
# <https://buildd.debian.org/status/fetch.php?pkg=ghostscript&arch=amd64&ver=9.25~dfsg-6&stamp=1541195477&raw=0>
%:
dh $@ --no-parallel
# use upstream bootstrapping script
override_dh_autoreconf:
dh_autoreconf ./autogen.sh
# * TODO: enable pcl when supporting system-shared libjpeg
# <https://bugs.ghostscript.com/show_bug.cgi?id=696654>
# * TODO: maybe enable openjpeg (requires fork for ICC and CMYK support)
override_dh_auto_configure:
dh_auto_configure -- \
--without-pcl \
--with-x --disable-gtk \
--disable-compile-inits \
--with-fontpath=$(subst $() ,:,$(strip $(fontdirs)))
override_dh_auto_build:
dh_auto_build -- so $(gs_opts)
execute_after_dh_auto_build-indep:
ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES) $(DEB_BUILD_OPTIONS)))
sphinx-build -bhtml doc/src doc/build/html
endif
# check that tracked issues are solved
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_PROFILES) $(DEB_BUILD_OPTIONS)))
GS="LD_LIBRARY_PATH=sobin GS_LIB=Resource/Init sobin/gsc" \
$(MAKE) --file debian/tests/smoke.mk
GS="LD_LIBRARY_PATH=sobin GS_LIB=Resource/Init sobin/gsc" \
$(MAKE) --file debian/tests/issues/bug_700317/check.mk
endif
override_dh_auto_install:
$(MAKE) soinstall DESTDIR=debian/tmp
override_dh_install:
# Rename /usr/bin/gsc, to not conflict with gambc
mv debian/tmp/usr/bin/gsc debian/tmp/usr/bin/gs
mkdir -p debian/tmp/usr/sbin/
install -m 755 debian/update-gsfontmap debian/tmp/usr/sbin
# Move ICC profiles to shared dir, to allow reuse by others.
mkdir -p debian/tmp/usr/share/color/icc
mv debian/tmp/usr/share/ghostscript/$(GS_DOT_VERSION)/iccprofiles \
debian/tmp/usr/share/color/icc/ghostscript
dh_install $(DEB_DH_INSTALL_ARGS_ALL)
dh_link --package=$(pkg-data) -- $(DEB_DH_LINK_$(pkg-data))
dh_link --no-package=$(pkg-data)
ifneq ($(filter $(pkg-data),$(binaries)),)
file='debian/$(pkg-data)/usr/share/ghostscript/$(GS_DOT_VERSION)/Resource/Init/cidfmap'; \
! egrep -v '^(%([^%].*)?)?$$' "$$file" && rm "$$file" || ( \
echo; \
echo 'ERROR: cidfmap not virtually empty as expected,'; \
echo ' so some alternative to just dropping that file is required.'; \
echo ' More info at bug#531182.'; \
exit 1 )
rename 's/$$/.t1/' \
debian/$(pkg-data)/usr/share/ghostscript/$(GS_DOT_VERSION)/Resource/Font/*
dh_linktree -p$(pkg-data) -- \
replace usr/share/fonts/type1/urw-base35 \
usr/share/ghostscript/$(GS_DOT_VERSION)/Resource/Font
rename 's/\.t1$$//' \
debian/$(pkg-data)/usr/share/ghostscript/$(GS_DOT_VERSION)/Resource/Font/*
endif
execute_after_dh_installdocs-indep:
ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES) $(DEB_BUILD_OPTIONS)))
dh_sphinxdoc
endif
override_dh_compress:
dh_compress -X.pdf