Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=0a26f47377702c51f05b70c4c1ec2629158d06ea

commit 0a26f47377702c51f05b70c4c1ec2629158d06ea
Author: crazy <[email protected]>
Date:   Sun Jul 17 19:45:40 2016 +0200

texlive-20160523-2-x86_64
* sort version bump of some parts
* -source and -texmf sources gone are now newer with 'b' ( not sure why )
* patch out reset_root_home() that's plain broken.
* the devels should read the FM of sudo maybe..
* ofc when users request to *keep $HOME* in sudo configs we get what we see
* in that comment .. but this *is not a error* and not a reason to force 
touching /root
* also this function *breaks* the own texlive configs ..

diff --git a/source/xapps-extra/texlive/FrugalBuild 
b/source/xapps-extra/texlive/FrugalBuild
index 62d2ec7..0feac9b 100644
--- a/source/xapps-extra/texlive/FrugalBuild
+++ b/source/xapps-extra/texlive/FrugalBuild
@@ -16,16 +16,18 @@

pkgname=texlive
pkgver=20160523
-pkgrel=1
+pkgextra="b"
+pkgrel=2
pkgdesc="A complete TeX distribution"
archs=('i686' 'x86_64')
depends=('t1lib' 'gd>=2.1.1' 'ncurses>=6.0-3' 'poppler>=0.44.0' 'icu4c>=55.1' 
'zlib>=1.2.8' 'graphite2' 'zziplib' 'libpaper' 'harfbuzz')
rodepends=('ghostscript' 'perl' 'texlive-kpathsea' 'texlive-ptexen' 
'texlive-lua')
makedepends=('clisp' 'ffcall' 'x11-protos')
url='http://tug.org/texlive/'
-source=("ftp://tug.org/historic/systems/texlive/2016/$pkgname-$pkgver-source.tar.xz";
 \
-       
"ftp://tug.org/historic/systems/texlive/2016/$pkgname-$pkgver-texmf.tar.xz"; \
-       
"ftp://tug.org/historic/systems/texlive/2016/$pkgname-$pkgver-extra.tar.xz"; \
+source=(ftp://tug.org/historic/systems/texlive/2016/$pkgname-$pkgver$pkgextra-source.tar.xz
 \
+       
ftp://tug.org/historic/systems/texlive/2016/$pkgname-$pkgver$pkgextra-texmf.tar.xz
 \
+       
ftp://tug.org/historic/systems/texlive/2016/$pkgname-$pkgver-extra.tar.xz \
+       texmf-do-not-reset-root-home.patch do-not-reset-root-home.patch \
texmf.cnf \
texmfcnf.lua \
09-texlive.conf)
@@ -34,9 +36,11 @@ groups=('xapps-extra')
conflicts=('tetex' 'tetex-kpathsea')
provides=('tetex' 'tetex-kpathsea')
replaces=('tetex' 'tetex-kpathsea')
-sha1sums=('8cdcc00492fc642db59a9a07f9ea080ff6765460' \
-          '7bfde268d3665fdd6bc64e69ad25a1516ec4a1f1' \
+sha1sums=('bd0d58067b6eb269ef35992434646d5b08d504b4' \
+          '062f593cc31f46bafe3786959efcf75fcffafd82' \
'e6759cf3b7520a1815dc4c9c1109235fd25c199d' \
+          '4c633bfd2359d1365273ee187b5d6f92cbdb145b' \
+          '6fcc128ae95c9bc77784ce832945e9b2a086573b' \
'4fec5aa2a4eb504d96b802bd11376270658f923f' \
'438b6ea0f2ee6813bed725a24313db1408189f0d' \
'bf7ba21d45bee78657105a5f2c5e7e24b8614859')
@@ -169,6 +173,12 @@ build() {
export CXXFLAGS="${CXXFLAGS} -fPIC"
fi

+       Fcd $pkgname-$pkgver-texmf
+       Fpatch texmf-do-not-reset-root-home.patch
+
+       cd ../$pkgname-$pkgver-source || Fdie
+       Fpatch do-not-reset-root-home.patch
+
## disable ptex from format list by default
Fsed "^ptex ptex - ptex.ini" "#ptex ptex - ptex.ini" 
../$pkgname-$pkgver-texmf/texmf-dist/web2c/fmtutil.cnf
Fsed "^eptex eptex" "#eptex eptex" 
../$pkgname-$pkgver-texmf/texmf-dist/web2c/fmtutil.cnf
@@ -181,7 +191,9 @@ build() {
Fsed "-lXp" "" texk/xdvik/configure
Fsed "SELFAUTOPARENT" "TEXMFROOT" texk/tex4htk/t4ht.c

-       Fbuild --with-banner-add="/Frugalware Linux"
+       Fconf --with-banner-add="/Frugalware Linux"
+       make || Fdie
+       Fmakeinstall

## remove useless source files
rm -rf $Fsrcdir/$pkgname-$pkgver-texmf/texmf-dist/source || Fdie
diff --git a/source/xapps-extra/texlive/do-not-reset-root-home.patch 
b/source/xapps-extra/texlive/do-not-reset-root-home.patch
new file mode 100644
index 0000000..e1eac78
--- /dev/null
+++ b/source/xapps-extra/texlive/do-not-reset-root-home.patch
@@ -0,0 +1,12 @@
+diff -Naur 
texlive-20160523-source/texk/texlive/linked_scripts/texlive/fmtutil.pl 
texlive-20160523-source-p/texk/texlive/linked_scripts/texlive/fmtutil.pl
+--- texlive-20160523-source/texk/texlive/linked_scripts/texlive/fmtutil.pl     
2016-04-26 19:41:35.000000000 +0200
++++ texlive-20160523-source-p/texk/texlive/linked_scripts/texlive/fmtutil.pl   
2016-07-17 18:56:55.301267647 +0200
+@@ -65,7 +65,7 @@
+ # sudo sometimes does not reset the home dir of root, check on that
+ # see more comments at the definition of the function itself
+ # this function checks by itself whether it is running on windows or not
+-reset_root_home();
++#reset_root_home();
+
+ chomp(our $TEXMFDIST = `kpsewhich --var-value=TEXMFDIST`);
+ chomp(our $TEXMFVAR = `kpsewhich -var-value=TEXMFVAR`);
diff --git a/source/xapps-extra/texlive/texmf-do-not-reset-root-home.patch 
b/source/xapps-extra/texlive/texmf-do-not-reset-root-home.patch
new file mode 100644
index 0000000..8653f64
--- /dev/null
+++ b/source/xapps-extra/texlive/texmf-do-not-reset-root-home.patch
@@ -0,0 +1,12 @@
+diff -Naur texlive-20160523-texmf/texmf-dist/scripts/texlive/fmtutil.pl 
texlive-20160523-texmf-p/texmf-dist/scripts/texlive/fmtutil.pl
+--- texlive-20160523-texmf/texmf-dist/scripts/texlive/fmtutil.pl       
2016-04-22 15:16:07.000000000 +0200
++++ texlive-20160523-texmf-p/texmf-dist/scripts/texlive/fmtutil.pl     
2016-07-17 18:57:20.671268023 +0200
+@@ -65,7 +65,7 @@
+ # sudo sometimes does not reset the home dir of root, check on that
+ # see more comments at the definition of the function itself
+ # this function checks by itself whether it is running on windows or not
+-reset_root_home();
++#reset_root_home();
+
+ chomp(our $TEXMFDIST = `kpsewhich --var-value=TEXMFDIST`);
+ chomp(our $TEXMFVAR = `kpsewhich -var-value=TEXMFVAR`);
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to