[Pkg-tcltk-devel] Bug#738130: tcltk-defaults: Patch to bootstrap without texlive-*

Daniel Schepler dschepler at gmail.com
Fri Feb 7 22:47:37 UTC 2014


Source: tcltk-defaults
Version: 8.5.0-2.1
Severity: wishlist
Tags: patch

As the subject says, the attached patch allows for bootstrapping
tcltk-defaults before texlive-* packages are available (as texlive-*
has fairly heavy dependency chains).

(Also, I have no idea why there's a Build-Depends on subversion at
all: the only reference to svn I see in the package is in a target
that's not run during the package build.)
-- 
Daniel Schepler
-------------- next part --------------
diff -urN tcltk-defaults-8.5.0.old/debian/rules tcltk-defaults-8.5.0/debian/rules
--- tcltk-defaults-8.5.0.old/debian/rules	2009-09-18 00:46:16.000000000 -0700
+++ tcltk-defaults-8.5.0/debian/rules	2014-02-07 14:38:04.001898697 -0800
@@ -10,7 +10,11 @@
 TKVER  := 8.5.0-1
 COMPATVER := 8.5.0-1
 
+ifeq (,$(findstring stage1,$(DEB_BUILD_PROFILES)))
 DOCS = tcltk-policy.html tcltk-policy.txt tcltk-policy.pdf
+else
+DH_EXCLUDES = -Ntcl-doc -Ntk-doc
+endif
 
 #
 # A new policy should be get manually and only after agreement
@@ -60,7 +64,7 @@
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	dh_installdirs
+	dh_installdirs $(DH_EXCLUDES)
 
 	for f in debian/*.links.in debian/*.p*.in debian/tcltk-depends.in; do \
 	    sed -e "s/@VER@/$(VER)/g" \
@@ -72,24 +76,24 @@
 
 # Build architecture-independent files here.
 binary-indep: install-stamp
-	dh_testdir -i
-	dh_testroot -i
-	dh_install -i
+	dh_testdir -i $(DH_EXCLUDES)
+	dh_testroot -i $(DH_EXCLUDES)
+	dh_install -i $(DH_EXCLUDES)
 	install -m 644 debian/tcl.lintian-override \
 		debian/tcl/usr/share/lintian/overrides/tcl
 	install -m 644 debian/tk.lintian-override \
 		debian/tk/usr/share/lintian/overrides/tk
-	dh_installdocs -i -A debian/README.Debian -Ntk-doc
-	dh_installchangelogs -i -Ntk-doc
-	dh_installman -i
-	dh_installmenu -i
-	dh_link -i
-	dh_compress -i -X.pdf
-	dh_fixperms -i
-	dh_installdeb -i
-	dh_gencontrol -i
-	dh_md5sums -i
-	dh_builddeb -i
+	dh_installdocs -i -A debian/README.Debian -Ntk-doc $(DH_EXCLUDES)
+	dh_installchangelogs -i -Ntk-doc $(DH_EXCLUDES)
+	dh_installman -i $(DH_EXCLUDES)
+	dh_installmenu -i $(DH_EXCLUDES)
+	dh_link -i $(DH_EXCLUDES)
+	dh_compress -i $(DH_EXCLUDES) -X.pdf
+	dh_fixperms -i $(DH_EXCLUDES)
+	dh_installdeb -i $(DH_EXCLUDES)
+	dh_gencontrol -i $(DH_EXCLUDES)
+	dh_md5sums -i $(DH_EXCLUDES)
+	dh_builddeb -i $(DH_EXCLUDES)
 
 # Build architecture-dependent files here.
 binary-arch:


More information about the Pkg-tcltk-devel mailing list