[gentoo-commits] repo/gentoo:master commit in: app-text/texlive-core/files/, app-text/texlive-core/

2023-02-27 Thread Sam James
commit: b970182de2a6a6da4748572295e4a6e46f16736c
Author: Sam James  gentoo  org>
AuthorDate: Tue Feb 28 02:56:15 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Feb 28 03:01:16 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b970182d

app-text/texlive-core: fix another Clang 16 configure issue

Bug: https://bugs.gentoo.org/882245
Bug: https://bugs.gentoo.org/874546
Signed-off-by: Sam James  gentoo.org>

 .../files/texlive-core-2021-clang-16.patch | 49 ++
 ...-2021-r5.ebuild => texlive-core-2021-r6.ebuild} |  2 +-
 2 files changed, 50 insertions(+), 1 deletion(-)

diff --git a/app-text/texlive-core/files/texlive-core-2021-clang-16.patch 
b/app-text/texlive-core/files/texlive-core-2021-clang-16.patch
index fcfbd26c8ed2..8d5f421544f8 100644
--- a/app-text/texlive-core/files/texlive-core-2021-clang-16.patch
+++ b/app-text/texlive-core/files/texlive-core-2021-clang-16.patch
@@ -3,6 +3,7 @@ https://bugs.gentoo.org/882245
 
 
https://github.com/TeX-Live/texlive-source/commit/3b1470c8911cd4bc9e4a02bfb5cac0f3bebcab3a
 
https://github.com/TeX-Live/texlive-source/commit/60b60503b21ea43c68d1ffbe214141a79a36190b
+https://github.com/TeX-Live/texlive-source/commit/bb307f8bd91c5ea4f191b9c788056470626893b7
 
 From 3b1470c8911cd4bc9e4a02bfb5cac0f3bebcab3a Mon Sep 17 00:00:00 2001
 From: Karl Berry 
@@ -170,3 +171,51 @@ git-svn-id: svn://tug.org/texlive/trunk/Build/source@64953 
c570f23f-e606-0410-a8
  {
  xargc = argc;
 
+From bb307f8bd91c5ea4f191b9c788056470626893b7 Mon Sep 17 00:00:00 2001
+From: Karl Berry 
+Date: Thu, 2 Feb 2023 22:57:47 +
+Subject: [PATCH] avoid implicit wait and exit declarations for C99
+
+git-svn-id: svn://tug.org/texlive/trunk/Build/source@65717 
c570f23f-e606-0410-a88d-b1316a301751
+--- a/texk/xdvik/configure
 b/texk/xdvik/configure
+@@ -15455,6 +15455,9 @@ else
+ #ifdef HAVE_UNISTD_H
+ #include 
+ #endif
++#ifdef HAVE_SYS_WAIT_H
++#include 
++#endif
+ #ifdef HAVE_VFORK_H
+ #include 
+ #endif
+@@ -15476,7 +15479,7 @@ main ()
+ 
+ while (wait() != child)
+   ;
+-exit(
++_exit(
+/* Was there some problem with vforking?  */
+child < 0
+ 
+--- a/texk/xdvik/m4/xdvi-func-setsid-in-fork.m4
 b/texk/xdvik/m4/xdvi-func-setsid-in-fork.m4
+@@ -22,6 +22,9 @@ AC_DEFUN([XDVI_FUNC_SETSID_IN_VFORK],
+ #ifdef HAVE_UNISTD_H
+ #include 
+ #endif
++#ifdef HAVE_SYS_WAIT_H
++#include 
++#endif
+ #ifdef HAVE_VFORK_H
+ #include 
+ #endif]],
+@@ -40,7 +43,7 @@ AC_DEFUN([XDVI_FUNC_SETSID_IN_VFORK],
+ 
+ while (wait() != child)
+   ;
+-exit(
++_exit(
+/* Was there some problem with vforking?  */
+child < 0
+ 

diff --git a/app-text/texlive-core/texlive-core-2021-r5.ebuild 
b/app-text/texlive-core/texlive-core-2021-r6.ebuild
similarity index 99%
rename from app-text/texlive-core/texlive-core-2021-r5.ebuild
rename to app-text/texlive-core/texlive-core-2021-r6.ebuild
index 0c150524ab97..0b463ff9a7ff 100644
--- a/app-text/texlive-core/texlive-core-2021-r5.ebuild
+++ b/app-text/texlive-core/texlive-core-2021-r6.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7



[gentoo-commits] repo/gentoo:master commit in: app-text/texlive-core/files/, app-text/texlive-core/

2019-05-08 Thread Andreas Sturmlechner
commit: a790d0f672d6f7f2e2afc0ec6c0f69fe77b86644
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Wed May  8 22:45:17 2019 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Wed May  8 22:56:15 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a790d0f6

app-text/texlive-core: Fix build w/ poppler-0.75 and poppler-0.76

Closes: https://bugs.gentoo.org/681338
Closes: https://bugs.gentoo.org/685284
Thanks-to: Arfrever Frehtes Taifersar Arahesis  gmail.com>
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 app-text/texlive-core/Manifest |   1 +
 .../files/texlive-core-2017-poppler064.patch   | 118 -
 .../files/texlive-core-2017-poppler069.patch   | 216 
 .../files/texlive-core-2017-poppler071.patch   | 281 -
 .../files/texlive-core-2017-poppler072.patch   | 157 
 .../files/texlive-core-2017-poppler073.patch   |  74 --
 app-text/texlive-core/texlive-core-2017-r4.ebuild  |  11 +-
 7 files changed, 10 insertions(+), 848 deletions(-)

diff --git a/app-text/texlive-core/Manifest b/app-text/texlive-core/Manifest
index 47e26302447..5e327cf3ac1 100644
--- a/app-text/texlive-core/Manifest
+++ b/app-text/texlive-core/Manifest
@@ -1,5 +1,6 @@
 DIST texlive-20170524-source-freetype.patch.xz 625056 BLAKE2B 
70bcd15da1edfe5422f6dc0e736bc842f93787d45a81f823c8ddc5a420eff65f176ccce20cb17ac1dbc3b4eef3081de7dfbe34eb390f1baaa925e17f3d55c6c1
 SHA512 
daa0ff9306b39e6d5058c53572fdc741adad17cec9a874785005aacd0e57b75ce59f21d0d12260f4178d47b7b0e6509e49c44e2ab524613fe962ac1199a9120b
 DIST texlive-20170524-source.tar.xz 63483372 BLAKE2B 
44669d1228f5be27e9d93672a4f4ead40f7f4c6cf386f2db6fef54d64f8b8a743a485fe1170904d8117b9745f71ec77db8434caa6cdd79359b1f3f387130a3b4
 SHA512 
18c18940992ab94ce22e22ccd4ad798253ea14ac2ab296a10ea5e9a8da9f33989f2e2641b42b564d1d5fb53bd371da3e68726b676d706b469016ad146cd19daa
+DIST texlive-core-2017-poppler076.tar.xz 9232 BLAKE2B 
945e4f8e6f3230b78dc43560c664fbe4989fb32759b41c0ef83d656b43b008030cebdbf668718c4f22831d01c3fe1466f686f7f6b76183d3d1bb5e760f17140d
 SHA512 
63fb2b426921be5f6d310b31e7fea6fc0edc0900f4790445fcaface9c931ca6c3e8f98b81a3bccfd1c877750e854c9410a59ff9a124aa2826d7b4187d54ed8ab
 DIST texlive-core-patches-70.tar.xz 13068 BLAKE2B 
011cf51af10d28ac9df7c9b9d7aea2cac3e562d393dcf09d57b3c2832fe6816cf926458417577f7c9d9414639a291c09240444145bdbb3d132170f51a8a16980
 SHA512 
fd26b92a03cd0446007728d0c16a8c7301e254515b997e6a0bd9b325db162bf3f2a2e96be0cb185f042038205c4b4dacf1785a216c8326328682f1c42da9079e
 DIST texlive-module-a2ping-2017.tar.xz 31136 BLAKE2B 
cc0d2cb780711a2a423fa26135845fa1f2cbbac76485d64a0b3184e338e7a60cdcfeaca129e6251f72110b0069c32164f9c4904d7f7c9c2edc6306f50411
 SHA512 
4711f184222fd95498a6d3ee94db19209c7836e6b775303926766d97921f2e8324b0aa2252a958fb619dbeca50729d2be4851a2add5503e7e8f4e713fc993e41
 DIST texlive-module-a2ping.doc-2017.tar.xz 17524 BLAKE2B 
dea1db9fb3650c56161190823e4015d3e6399be3612f7e54702264a5187e72c7be987abb2cf8465d82711c9894d604fa03d79dc770bbf93b3404f18a633fbfa0
 SHA512 
8cfcc3b2a5dc462895a2bbd82f3a21537ae5d3fe81217b0b664b2008d6d18259f18de10e6eb3e3ac2655f96067b0f9bc6e30f69d068d9335598eb0b075eb4cea

diff --git a/app-text/texlive-core/files/texlive-core-2017-poppler064.patch 
b/app-text/texlive-core/files/texlive-core-2017-poppler064.patch
deleted file mode 100644
index 9e4c7044975..000
--- a/app-text/texlive-core/files/texlive-core-2017-poppler064.patch
+++ /dev/null
@@ -1,118 +0,0 @@
-Source: 
https://github.com/TeX-Live/texlive-source/commit/ea9e7b25c6566505fe6d994aa5263bd736593be1
-Backport: dilfri...@gentoo.org
-
-diff -ruN texlive-20170524-source.orig/texk/web2c/luatexdir/image/pdftoepdf.w 
texlive-20170524-source/texk/web2c/luatexdir/image/pdftoepdf.w
 texlive-20170524-source.orig/texk/web2c/luatexdir/image/pdftoepdf.w
2018-05-20 22:11:35.787633516 +0200
-+++ texlive-20170524-source/texk/web2c/luatexdir/image/pdftoepdf.w 
2018-05-20 22:12:26.607265149 +0200
-@@ -472,10 +472,10 @@
- break;
- */
- case objString:
--copyString(pdf, obj->getString());
-+copyString(pdf, (GooString *)obj->getString());
- break;
- case objName:
--copyName(pdf, obj->getName());
-+copyName(pdf, (char *)obj->getName());
- break;
- case objNull:
- pdf_add_null(pdf);
-diff -ruN texlive-20170524-source.orig/texk/web2c/luatexdir/lua/lepdflib.cc 
texlive-20170524-source/texk/web2c/luatexdir/lua/lepdflib.cc
 texlive-20170524-source.orig/texk/web2c/luatexdir/lua/lepdflib.cc  
2018-05-20 22:11:35.788633528 +0200
-+++ texlive-20170524-source/texk/web2c/luatexdir/lua/lepdflib.cc   
2018-05-20 22:12:26.608265161 +0200
-@@ -521,7 +521,7 @@
- uin = (udstruct *) luaL_checkudata(L, 1, M_##in);  \
- if (uin->pd != NULL && uin->pd->pc != uin->pc) \
- 

[gentoo-commits] repo/gentoo:master commit in: app-text/texlive-core/files/, app-text/texlive-core/

2019-02-16 Thread Andreas Sturmlechner
commit: a2fce90a0cb751294b36db4cfa639e9307be38fc
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sat Jan 12 20:50:53 2019 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sat Feb 16 21:44:56 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2fce90a

app-text/texlive-core: Fix build with poppler-0.71 and poppler-0.72

Bug: https://bugs.gentoo.org/672854
Package-Manager: Portage-2.3.55, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 .../files/texlive-core-2017-poppler069.patch   | 216 
 .../files/texlive-core-2017-poppler071.patch   | 281 +
 .../files/texlive-core-2017-poppler072.patch   | 157 
 app-text/texlive-core/texlive-core-2017-r4.ebuild  |   6 +-
 4 files changed, 659 insertions(+), 1 deletion(-)

diff --git a/app-text/texlive-core/files/texlive-core-2017-poppler069.patch 
b/app-text/texlive-core/files/texlive-core-2017-poppler069.patch
new file mode 100644
index 000..30934170500
--- /dev/null
+++ b/app-text/texlive-core/files/texlive-core-2017-poppler069.patch
@@ -0,0 +1,216 @@
+From 29f2412e10523158f5e601f32482d3d233a934fc Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner 
+Date: Sat, 12 Jan 2019 21:42:09 +0100
+Subject: [PATCH 1/2] Fix build with poppler-0.69.0
+
+---
+ texk/web2c/luatexdir/image/epdf.h  |  1 +
+ texk/web2c/luatexdir/image/pdftoepdf.w | 14 +++---
+ texk/web2c/luatexdir/lua/lepdflib.cc   | 18 +-
+ texk/web2c/luatexdir/lua/lpdfscannerlib.cc |  1 +
+ texk/web2c/pdftexdir/pdftoepdf.cc  |  7 ---
+ texk/web2c/pdftexdir/pdftosrc.cc   |  5 +++--
+ 6 files changed, 25 insertions(+), 21 deletions(-)
+
+diff --git a/texk/web2c/luatexdir/image/epdf.h 
b/texk/web2c/luatexdir/image/epdf.h
+index 57bb2e39..ebc83bdb 100644
+--- a/texk/web2c/luatexdir/image/epdf.h
 b/texk/web2c/luatexdir/image/epdf.h
+@@ -39,6 +39,7 @@ extern "C" {
+ #  include 
+ #  include 
+ #  include 
++#  include 
+ #  include 
+ #  include 
+ #  include 
+diff --git a/texk/web2c/luatexdir/image/pdftoepdf.w 
b/texk/web2c/luatexdir/image/pdftoepdf.w
+index 3aebf009..0a23b201 100644
+--- a/texk/web2c/luatexdir/image/pdftoepdf.w
 b/texk/web2c/luatexdir/image/pdftoepdf.w
+@@ -31,7 +31,7 @@
+ 
+ extern void md5(Guchar *msg, int msgLen, Guchar *digest);
+ 
+-static GBool isInit = gFalse;
++static bool isInit = false;
+ 
+ /* Maintain AVL tree of all PDF files for embedding */
+ 
+@@ -468,7 +468,7 @@ static void copyObject(PDF pdf, PdfDocument * pdf_doc, 
Object * obj)
+ break;
+ /*
+ case objNum:
+-GBool isNum() { return type == objInt || type == objReal; }
++bool isNum() { return type == objInt || type == objReal; }
+ break;
+ */
+ case objString:
+@@ -587,11 +587,11 @@ void read_pdf_info(image_dict * idict)
+ PDFRectangle *pagebox;
+ int pdf_major_version_found, pdf_minor_version_found;
+ float xsize, ysize, xorig, yorig;
+-if (isInit == gFalse) {
++if (isInit == false) {
+ if (!(globalParams))
+ globalParams = new GlobalParams();
+-globalParams->setErrQuiet(gFalse);
+-isInit = gTrue;
++globalParams->setErrQuiet(false);
++isInit = true;
+ }
+ if (img_type(idict) == IMG_TYPE_PDF)
+ pdf_doc = refPdfDocument(img_filepath(idict), FE_FAIL);
+@@ -960,7 +960,7 @@ void epdf_free()
+ if (PdfDocumentTree != NULL)
+ avl_destroy(PdfDocumentTree, destroyPdfDocument);
+ PdfDocumentTree = NULL;
+-if (isInit == gTrue)
++if (isInit == true)
+ delete globalParams;
+-isInit = gFalse;
++isInit = false;
+ }
+diff --git a/texk/web2c/luatexdir/lua/lepdflib.cc 
b/texk/web2c/luatexdir/lua/lepdflib.cc
+index 14558510..d47ec941 100644
+--- a/texk/web2c/luatexdir/lua/lepdflib.cc
 b/texk/web2c/luatexdir/lua/lepdflib.cc
+@@ -1374,9 +1374,9 @@ static int m_Object_initBool(lua_State * L)
+ pdfdoc_changed_error(L);
+ luaL_checktype(L, 2, LUA_TBOOLEAN);
+ if (lua_toboolean(L, 2) != 0)
+-*((Object *) uin->d) = Object(gTrue);
++*((Object *) uin->d) = Object(true);
+ else
+-*((Object *) uin->d) = Object(gFalse);
++*((Object *) uin->d) = Object(false);
+ return 0;
+ }
+ 
+@@ -2881,12 +2881,12 @@ m_poppler_get_BOOL(Attribute, isHidden);
+ 
+ static int m_Attribute_setHidden(lua_State * L)
+ {
+-GBool i;
++bool i;
+ udstruct *uin;
+ uin = (udstruct *) luaL_checkudata(L, 1, M_Attribute);
+ if (uin->pd != NULL && uin->pd->pc != uin->pc)
+ pdfdoc_changed_error(L);
+-i = (GBool) lua_toboolean(L, 2);
++i = (bool) lua_toboolean(L, 2);
+ ((Attribute *) uin->d)->setHidden(i);
+ return 0;
+ }
+@@ -3023,7 +3023,7 @@ static int m_StructElement_getParentRef(lua_State * L)
+ // Ref is false if the C++ functione return false
+ static int m_StructElement_getPageRef(lua_State * L)
+ {
+-GBool 

[gentoo-commits] repo/gentoo:master commit in: app-text/texlive-core/files/, app-text/texlive-core/

2019-02-16 Thread Andreas Sturmlechner
commit: 280476dac64cd07b1db5dda47c9056494c2d156b
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Wed Jan 16 20:12:57 2019 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sat Feb 16 21:44:56 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=280476da

app-text/texlive-core: Fix build with poppler-0.73

Closes: https://bugs.gentoo.org/675448
Package-Manager: Portage-2.3.56, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 .../files/texlive-core-2017-poppler073.patch   | 74 ++
 app-text/texlive-core/texlive-core-2017-r4.ebuild  |  2 +-
 2 files changed, 75 insertions(+), 1 deletion(-)

diff --git a/app-text/texlive-core/files/texlive-core-2017-poppler073.patch 
b/app-text/texlive-core/files/texlive-core-2017-poppler073.patch
new file mode 100644
index 000..487ecc0129c
--- /dev/null
+++ b/app-text/texlive-core/files/texlive-core-2017-poppler073.patch
@@ -0,0 +1,74 @@
+From b3df00dcf7332ae9b64f019278af8708c1ced284 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner 
+Date: Wed, 16 Jan 2019 21:10:09 +0100
+Subject: [PATCH] Fix build with poppler-0.73
+
+---
+ texk/web2c/luatexdir/image/pdftoepdf.w | 2 +-
+ texk/web2c/luatexdir/lua/lepdflib.cc   | 8 
+ texk/web2c/pdftexdir/pdftosrc.cc   | 2 +-
+ 3 files changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/texk/web2c/luatexdir/image/pdftoepdf.w 
b/texk/web2c/luatexdir/image/pdftoepdf.w
+index 2f143068..10ed9879 100644
+--- a/texk/web2c/luatexdir/image/pdftoepdf.w
 b/texk/web2c/luatexdir/image/pdftoepdf.w
+@@ -29,7 +29,7 @@
+ the functions of poppler, which happens to be written in C++.
+ */
+ 
+-extern void md5(Guchar *msg, int msgLen, Guchar *digest);
++extern void md5(unsigned char *msg, int msgLen, unsigned char *digest);
+ 
+ static bool isInit = false;
+ 
+diff --git a/texk/web2c/luatexdir/lua/lepdflib.cc 
b/texk/web2c/luatexdir/lua/lepdflib.cc
+index 6b24a39b..87078fc5 100644
+--- a/texk/web2c/luatexdir/lua/lepdflib.cc
 b/texk/web2c/luatexdir/lua/lepdflib.cc
+@@ -2867,12 +2867,12 @@ m_poppler_get_GUINT(Attribute,getRevision);
+ 
+ static int m_Attribute_setRevision(lua_State * L)
+ {
+-Guint i;
++unsigned int i;
+ udstruct *uin;
+ uin = (udstruct *) luaL_checkudata(L, 1, M_Attribute);
+ if (uin->pd != NULL && uin->pd->pc != uin->pc)
+ pdfdoc_changed_error(L);
+-i = (Guint) luaL_checkint(L, 2);
++i = (unsigned int) luaL_checkint(L, 2);
+ ((Attribute *) uin->d)->setRevision(i);
+ return 0;
+ }
+@@ -3057,12 +3057,12 @@ static int m_StructElement_getTypeName(lua_State * L)
+ 
+ static int m_StructElement_setRevision(lua_State * L)
+ {
+-Guint i;
++unsigned int i;
+ udstruct *uin;
+ uin = (udstruct *) luaL_checkudata(L, 1, M_StructElement);
+ if (uin->pd != NULL && uin->pd->pc != uin->pc)
+ pdfdoc_changed_error(L);
+-i = (Guint) luaL_checkint(L, 2);
++i = (unsigned int) luaL_checkint(L, 2);
+ ((StructElement *) uin->d)->setRevision(i);
+ return 0;
+ }
+diff --git a/texk/web2c/pdftexdir/pdftosrc.cc 
b/texk/web2c/pdftexdir/pdftosrc.cc
+index bad1b78f..295c4e66 100644
+--- a/texk/web2c/pdftexdir/pdftosrc.cc
 b/texk/web2c/pdftexdir/pdftosrc.cc
+@@ -156,7 +156,7 @@ int main(int argc, char *argv[])
+ Object objStr, obj1, obj2;
+ int nObjects, first, n;
+ int localOffset = 0;
+-Guint firstOffset;
++unsigned int firstOffset;
+ 
+ objStr = xref->fetch(e->offset, 0);
+ assert(objStr.isStream());
+-- 
+2.20.1
+

diff --git a/app-text/texlive-core/texlive-core-2017-r4.ebuild 
b/app-text/texlive-core/texlive-core-2017-r4.ebuild
index 6c88e065080..e0cf232cbf4 100644
--- a/app-text/texlive-core/texlive-core-2017-r4.ebuild
+++ b/app-text/texlive-core/texlive-core-2017-r4.ebuild
@@ -167,7 +167,7 @@ src_prepare() {
epatch "${FILESDIR}/${P}-poppler064.patch"
 
if has_version ">=app-text/poppler-0.69.0"; then
-   epatch "${FILESDIR}"/${P}-poppler0{69,71,72}.patch # bug #672854
+   epatch "${FILESDIR}"/${P}-poppler0{69,71,72,73}.patch # bugs 
#672854, 675448
fi
 
sed -i \