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

[texlive-bin] 02/02: do not install tex4ht dangling symlinks (Closes: #835803)



This is an automated email from the git hooks/post-receive script.

preining pushed a commit to branch master
in repository texlive-bin.

commit 9bc9db2897a71a4615a0a849896d1bf5f3384500
Author: Norbert Preining <preining@debian.org>
Date:   Mon Aug 29 11:19:10 2016 +0900

    do not install tex4ht dangling symlinks (Closes: #835803)
---
 debian/changelog |  8 ++++++++
 debian/control   |  3 ++-
 debian/rules     | 14 ++++++++++++++
 3 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 7653b7c..2b5334c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+texlive-bin (2016.20160513.41080-7) UNRELEASED; urgency=medium
+
+  * UNRELEASED
+  * do not install tex4ht dangling symlinks, leave that to tl-htmlxml
+    (Closes: #835803)
+
+ -- Norbert Preining <preining@debian.org>  Mon, 29 Aug 2016 11:18:10 +0900
+
 texlive-bin (2016.20160513.41080-6) unstable; urgency=medium
 
   * release to unstable
diff --git a/debian/control b/debian/control
index 4f85dcb..ae19471 100644
--- a/debian/control
+++ b/debian/control
@@ -60,7 +60,8 @@ Depends: libptexenc1 (>= ${source:Version}),
 Recommends: texlive-base, python, ruby, wish
 Replaces: texlive-metapost (<< 2010), texlive-base (<< 2010), ptex-bin, mendexk, jmpost, luatex (<< 2014), musixtex (<< 1:1.20.ctan20151216-3), pmx (<< 2.7.0.ctan20150301-3), m-tx (<< 0.61.ctan20151217-2), gregorio (<= 2.3-1), tex4ht (<< 20160814)
 Conflicts: mendexk, makejvf, jmpost
-Breaks: texlive-base (<< 2016), jtex-bin, multex-bin, luatex (<< 2014), tex-common (<< 6), musixtex (<< 1:1.20.ctan20151216-3), pmx (<< 2.7.0.ctan20150301-3), m-tx (<< 0.61.ctan20151217-2), gregorio (<= 2.3-1), context (<< 2016), tex4ht (<< 20160814)
+Breaks: texlive-base (<< 2016), jtex-bin, multex-bin, luatex (<< 2014), tex-common (<< 6), musixtex (<< 1:1.20.ctan20151216-3), pmx (<< 2.7.0.ctan20150301-3), m-tx (<< 0.61.ctan20151217-2), gregorio (<= 2.3-1), context (<< 2016), tex4ht (<< 20160814),
+  texlive-htmlxml (<< 2016.20160829)
 Provides: texlive-base-bin, makejvf, mendexk, jmpost, luatex
 Description: Binaries for TeX Live
  This package contains all the binaries of TeX Live packages.
diff --git a/debian/rules b/debian/rules
index d9d6f65..b6f7025 100755
--- a/debian/rules
+++ b/debian/rules
@@ -214,12 +214,26 @@ override_dh_install:
 	rm debian/texlive-binaries/usr/share/man/man1/pdflatex.1*
 	rm debian/texlive-binaries/usr/share/man/man1/lamed.1*
 	rm debian/texlive-binaries/usr/share/man/man1/amstex.1*
+	#
+	# remove tex4ht links, they are shipped with tl-htmlxml
+	for i in ht htcontext htlatex htmex httex httexi htxelatex htxetex mk4ht ; do \
+	  rm debian/texlive-binaries/usr/bin/$$i ; \
+	done
 	# for alternatives treatment we rename usr/bin/bibtex to
 	# usr/bin/bibtex.original
 	mv debian/texlive-binaries/usr/bin/bibtex \
 	   debian/texlive-binaries/usr/bin/bibtex.original
 	mv debian/texlive-binaries/usr/share/man/man1/bibtex.1 \
 	   debian/texlive-binaries/usr/share/man/man1/bibtex.original.1
+	# find dangling symlinks in /usr/bin and error out if found
+	err=0 ; for i in `find debian/texlive-binaries/usr/bin -type l` ; do \
+	  f=`readline $$i` ; \
+	  if [ ! -r "$$f" ] ; then \
+	    echo "ERROR: dangling symbolic link $$f" ; \
+	    err=1 ; \
+	  fi ; \
+	done ; if [ $$err = 1 ] ; then exit 1 ; fi
+
 
 override_dh_installdocs:
 	dh_installdocs

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-tex/texlive-bin.git


Reply to: