packages: texlive/texlive.spec - set umask before calling texhash, ls-R is ...

baggins baggins at pld-linux.org
Sat May 16 19:31:30 CEST 2009


Author: baggins                      Date: Sat May 16 17:31:30 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- set umask before calling texhash, ls-R is a ghost, so in case
  of wrong umask we may get unreadable file

---- Files affected:
packages/texlive:
   texlive.spec (1.267 -> 1.268) 

---- Diffs:

================================================================
Index: packages/texlive/texlive.spec
diff -u packages/texlive/texlive.spec:1.267 packages/texlive/texlive.spec:1.268
--- packages/texlive/texlive.spec:1.267	Sat May 16 19:13:34 2009
+++ packages/texlive/texlive.spec	Sat May 16 19:31:23 2009
@@ -191,7 +191,7 @@
 %define		texmfdist %{texmf}-dist
 %define		texmfdoc %{texmf}-doc
 %define		fmtdir	/var/lib/texmf/web2c
-%define		texhash	[ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2;
+%define		texhash	umask 022; [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2;
 %define		_localstatedir	/var/lib/texmf
 %define		fixinfodir [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 ;
 %define		fmtutil(f:) [ ! \\\( -f %{_localstatedir}/web2c/%{-f*}.fmt.rpmnew -o -f %{_localstatedir}/web2c/%{-f*}.efmt.rpmnew \\\) ] || %{_bindir}/fmtutil-sys --byfmt %{-f*} >/dev/null 2>/dev/null || echo "Regenerating %{-f*} failed. See %{_localstatedir}/web2c/%{-f*}.log for details" 1>&2 && exit 0 ;
@@ -13945,6 +13945,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.268  2009/05/16 17:31:23  baggins
+- set umask before calling texhash, ls-R is a ghost, so in case
+  of wrong umask we may get unreadable file
+
 Revision 1.267  2009/05/16 17:13:34  baggins
 - removed empty epsutils and filters packages
 - split jadetex from other-utils
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/texlive/texlive.spec?r1=1.267&r2=1.268&f=u



More information about the pld-cvs-commit mailing list