[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#717827: ghostscript: Patch to bootstrap without cups



Control: tags -1 + patch

Here's the patch (against version 9.05~dfsg-8) that I'm currently using to do 
a bootstrap build of ghostscript without cups available.  Although, depending 
on what happens with #735612, part or all of this patch may become obsolete. 
:)
-- 
Daniel Schepler
diff -urN ghostscript-9.05~dfsg.old/debian/rules ghostscript-9.05~dfsg/debian/rules
--- ghostscript-9.05~dfsg.old/debian/rules	2013-07-04 05:33:35.000000000 -0700
+++ ghostscript-9.05~dfsg/debian/rules	2013-07-06 18:01:17.737514100 -0700
@@ -27,6 +27,9 @@
 	sed $(SEDRULE_CONTENT) <debian/control.in.in >debian/control.in
 
 DEB_AUTO_UPDATE_AUTOCONF = 2.67
+ifneq (,$(findstring stage1,$(DEB_BUILD_PROFILES)))
+export DH_OPTIONS = -Nghostscript-cups
+endif
 include /usr/share/cdbs/1/rules/upstream-tarball.mk
 include /usr/share/cdbs/1/class/autotools.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
@@ -198,6 +201,7 @@
 dev-deps += freetype6
 dev-deps += fontconfig1
 
+ifeq (,$(findstring stage1,$(DEB_BUILD_PROFILES)))
 gs_opts += SHARE_LCUPS=1 SHARE_LCUPSI=1
 gs_opts += CUPSDATA=/usr/share/ppd/ghostscript
 DEB_CONFIGURE_EXTRA_FLAGS += --enable-cups --enable-dbus --with-install-cups
@@ -207,14 +211,20 @@
 CDBS_SUGGESTS_ghostscript +=, ghostscript-cups
 # recent cups needed for trigger file ghostscript-cups.ppd-updater
 CDBS_BREAKS +=, cups (<< 1.5.0-2~)
+INSTALL_CUPS = install-cups
+endif
 
 DEB_MAKE_BUILD_TARGET = so gs.a $(gs_opts)
-DEB_MAKE_INSTALL_TARGET = soinstall install-cups DESTDIR=$(DEB_DESTDIR) $(gs_opts)
+DEB_MAKE_INSTALL_TARGET = soinstall $(INSTALL_CUPS) DESTDIR=$(DEB_DESTDIR) $(gs_opts)
 
 DEB_DH_MAKESHLIBS_ARGS_ghostscript-x = -n
 
 SEDRULE_CONTENT = 's/__ABI__/$(abi)/g;s/__VER__/$(major)/g'
 
+ifneq (,$(findstring stage1,$(DEB_BUILD_PROFILES)))
+DEB_DH_MAKESHLIBS_ARGS = -- -c0
+endif
+
 pre-build:: debian/control.in.in
 	echo "sed $(SEDRULE_CONTENT) <$< | diff -u debian/control.in -"
 	@sed $(SEDRULE_CONTENT) <$< | diff -u debian/control.in - || ( \

Reply to: