[arch-commits] Commit in texlive-bin/trunk (2 files)

2012-07-18 Thread Rémy Oudompheng
Date: Wednesday, July 18, 2012 @ 02:07:56
  Author: remy
Revision: 163719

upgpkg: texlive-bin 2012.0-2

Sort backup array, add patch to fix Luatex bug
with radicals.

Added:
  texlive-bin/trunk/luatex-r4449-radical-rule-thickness.patch
Modified:
  texlive-bin/trunk/PKGBUILD

---+
 PKGBUILD  |   22 +-
 luatex-r4449-radical-rule-thickness.patch |   23 +++
 2 files changed, 36 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2012-07-18 03:05:26 UTC (rev 163718)
+++ PKGBUILD2012-07-18 06:07:56 UTC (rev 163719)
@@ -4,7 +4,7 @@
 
 pkgname=texlive-bin
 pkgver=2012.0
-pkgrel=1
+pkgrel=2
 pkgdesc=TeX Live binaries
 license=('GPL')
 arch=('i686' 'x86_64')
@@ -22,19 +22,19 @@
 'poppler-0.20.patch'
 
'http://mirrors.kernel.org/archlinux/other/texlive/texlive-bin-source-20120623.tar.xz'
 
'http://mirrors.kernel.org/archlinux/other/texlive/texlive-bin-texmf-20120623.tar.xz'
+'luatex-r4449-radical-rule-thickness.patch'
 )
 backup=(etc/texmf/web2c/texmf.cnf \
-  etc/texmf/chktex/chktexrc \
-   etc/texmf/web2c/mktex.cnf \
-   etc/texmf/web2c/updmap.cfg \
-   etc/texmf/web2c/fmtutil.cnf \
+etc/texmf/chktex/chktexrc \
+   etc/texmf/dvipdfm/config/config \
+   etc/texmf/dvipdfmx/dvipdfmx.cfg \
+   etc/texmf/dvips/config/config.ps \
etc/texmf/tex/generic/config/language.dat \
etc/texmf/tex/generic/config/language.def \
etc/texmf/tex/generic/config/pdftexconfig.tex \
etc/texmf/ttf2pk/ttf2pk.cfg \
-   etc/texmf/dvips/config/config.ps \
-   etc/texmf/dvipdfmx/dvipdfmx.cfg \
-   etc/texmf/dvipdfm/config/config \
+   etc/texmf/web2c/fmtutil.cnf \
+   etc/texmf/web2c/mktex.cnf \
etc/texmf/xdvi/XDvi)
 
 md5sums=('220a4f4cc0d915bf8fcbcb553dcee1ae'
@@ -42,7 +42,8 @@
  '393a4bf67adc7ca5df2b386759d1a637'
  'e3a664d5a7f0923f35060fe9d25d2573'
  'ac2c3c3aa765581f8504e21a5edbfb9f'
- 'f315a860158cfc952c82a6d759961024')
+ 'f315a860158cfc952c82a6d759961024'
+ '5190f3295eb9a604c5f17f5bd607299b')
 
 build() {
if [ ${CARCH} = x86_64 ]; then
@@ -55,6 +56,9 @@
patch -Np0 -i fix-fontforge-encoding.patch
# fix build with poppler = 0.20
patch -Np0 -i poppler-0.20.patch
+   # fix radical rule thickness regression in Luatex
+   # http://tex.stackexchange.com/q/61952/729
+   patch -Np0 -i luatex-r4449-radical-rule-thickness.patch
# t4ht expects to be un /usr/share/texmf/bin/t4ht (FS#27251)
sed -i s/SELFAUTOPARENT/TEXMFROOT/ source/texk/tex4htk/t4ht.c
#

Added: luatex-r4449-radical-rule-thickness.patch
===
--- luatex-r4449-radical-rule-thickness.patch   (rev 0)
+++ luatex-r4449-radical-rule-thickness.patch   2012-07-18 06:07:56 UTC (rev 
163719)
@@ -0,0 +1,23 @@
+Index: source/texk/web2c/luatexdir/tex/mlist.w
+===
+--- source/texk/web2c/luatexdir/tex/mlist.w(revision 4448)
 source/texk/web2c/luatexdir/tex/mlist.w(revision 4449)
+@@ -1798,7 +1798,17 @@
+ theta = fraction_rule(cur_style);
+ y = var_delimiter(left_delimiter(q), cur_size,
+   height(x) + depth(x) + clr + theta, NULL, 
cur_style);
+-theta = height(y);
++  /* If |y| is a composite then set |theta| to the height of its top
++   character, else set it to the height of |y|. */
++if (list_ptr(y) != null
++ type(list_ptr(y)) == hlist_node
++ list_ptr(list_ptr(y)) != null
++ type(list_ptr(list_ptr(y))) == glyph_node) { /* and it 
should be */
++theta = char_height(font(list_ptr(list_ptr(y))),
++   character(list_ptr(list_ptr(y;
++} else {
++theta = height(y);
++}
+ } else {
+ y = var_delimiter(left_delimiter(q), cur_size,
+   height(x) + depth(x) + clr + theta, NULL, 
cur_style);



[arch-commits] Commit in texlive-bin/trunk (2 files)

2012-06-24 Thread Rémy Oudompheng
Date: Sunday, June 24, 2012 @ 14:43:27
  Author: remy
Revision: 162281

Update patch for building with latest poppler.

Added:
  texlive-bin/trunk/poppler-0.20.patch
Deleted:
  texlive-bin/trunk/luatex-poppler-0.20.patch

---+
 luatex-poppler-0.20.patch |   77 
 poppler-0.20.patch|   22 
 2 files changed, 22 insertions(+), 77 deletions(-)

Deleted: luatex-poppler-0.20.patch
===
--- luatex-poppler-0.20.patch   2012-06-24 18:41:47 UTC (rev 162280)
+++ luatex-poppler-0.20.patch   2012-06-24 18:43:27 UTC (rev 162281)
@@ -1,77 +0,0 @@
 source/texk/web2c/luatexdir/lua/lepdflib.cc.orig   2011-10-06 
06:14:20.0 +
-+++ source/texk/web2c/luatexdir/lua/lepdflib.cc2012-05-17 
11:30:26.327236883 +
-@@ -157,7 +157,7 @@
- pdfdoc_changed_error(L);
- uout = new_Annot_userdata(L);
- uout-d =
--new Annot((XRef *) uxref-d, (Dict *) udict-d, (Catalog *) 
ucatalog-d,
-+new Annot((PDFDoc *) uxref-pd, (Dict *) udict-d,
-   (Object *) uref-d);
- uout-atype = ALLOC_LEPDF;
- uout-pc = uxref-pc;
-@@ -179,7 +179,7 @@
- pdfdoc_changed_error(L);
- uout = new_Annots_userdata(L);
- uout-d =
--new Annots((XRef *) uxref-d, (Catalog *) ucatalog-d,
-+new Annots((PDFDoc *) uxref-pd,
-(Object *) uannotsobj-d);
- uout-atype = ALLOC_LEPDF;
- uout-pc = uxref-pc;
-@@ -369,7 +369,7 @@
- // Annot
- 
- m_poppler_get_BOOL(Annot, isOk);
--m_poppler_get_OBJECT(Annot, getAppearance);
-+m_poppler_get_OBJECT(Annot, getAppearanceResDict);
- m_poppler_get_poppler(Annot, AnnotBorder, getBorder);
- 
- static int m_Annot_match(lua_State * L)
-@@ -408,7 +408,7 @@
- 
- static const struct luaL_Reg Annot_m[] = {
- {isOk, m_Annot_isOk},
--{getAppearance, m_Annot_getAppearance},
-+{getAppearance, m_Annot_getAppearanceResDict},
- {getBorder, m_Annot_getBorder},
- {match, m_Annot_match},
- {__tostring, m_Annot__tostring},
-@@ -1433,7 +1433,7 @@
- 
- static int m_Object_getTypeName(lua_State * L)
- {
--char *s;
-+const char *s;
- udstruct *uin;
- uin = (udstruct *) luaL_checkudata(L, 1, M_Object);
- if (uin-pd != NULL  uin-pd-pc != uin-pc)
-@@ -2120,7 +2120,7 @@
- if ((uin-pd != NULL  uin-pd-pc != uin-pc)
- || (ucat-pd != NULL  ucat-pd-pc != ucat-pd-pc))
- pdfdoc_changed_error(L);
--links = ((Page *) uin-d)-getLinks((Catalog *) ucat-d);
-+links = ((Page *) uin-d)-getLinks();
- if (links != NULL) {
- uout = new_Links_userdata(L);
- uout-d = links;
-@@ -2738,7 +2738,10 @@
- return 1;
- }
- 
--m_poppler_get_INT(XRef, getSize);
-+static int m_XRef_getSize(lua_State * L)
-+{
-+return m_XRef_getNumObjects(L);
-+}
- 
- static int m_XRef_getEntry(lua_State * L)
- {
-@@ -2748,7 +2751,7 @@
- if (uin-pd != NULL  uin-pd-pc != uin-pc)
- pdfdoc_changed_error(L);
- i = luaL_checkint(L, 2);
--size = ((XRef *) uin-d)-getSize();
-+size = ((XRef *) uin-d)-getNumObjects();
- if (i  0  i = size) {
- uout = new_XRefEntry_userdata(L);
- uout-d = ((XRef *) uin-d)-getEntry(i);

Added: poppler-0.20.patch
===
--- poppler-0.20.patch  (rev 0)
+++ poppler-0.20.patch  2012-06-24 18:43:27 UTC (rev 162281)
@@ -0,0 +1,22 @@
+--- source/texk/web2c/luatexdir/lua/lepdflib.cc.orig   2011-10-06 
06:14:20.0 +
 source/texk/web2c/luatexdir/lua/lepdflib.cc2012-05-17 
11:30:26.327236883 +
+@@ -1433,7 +1433,7 @@
+ 
+ static int m_Object_getTypeName(lua_State * L)
+ {
+-char *s;
++const char *s;
+ udstruct *uin;
+ uin = (udstruct *) luaL_checkudata(L, 1, M_Object);
+ if (uin-pd != NULL  uin-pd-pc != uin-pc)
+--- source/texk/web2c/pdftexdir/pdftosrc.cc.orig   2012-06-24 
17:12:34.376329435 +0200
 source/texk/web2c/pdftexdir/pdftosrc.cc2012-06-24 17:12:25.490003152 
+0200
+@@ -134,7 +134,7 @@
+ exit(1);
+ }
+ if (extract_xref_table) {
+-int size = xref-getSize();
++int size = xref-getNumObjects();
+ int i;
+ for (i = 0; i  size; i++) {
+ if (xref-getEntry(i)-offset == 0x)