[gentoo-commits] repo/gentoo:master commit in: dev-ml/labltk/files/, dev-ml/labltk/

2023-01-25 Thread Alfredo Tupone
commit: 1e690a3e69af330e71274af2914a73278f3cebc9
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Wed Jan 25 18:56:13 2023 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Wed Jan 25 18:56:55 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e690a3e

dev-ml/labltk: fix function without prototype

Closes: https://bugs.gentoo.org/882057
Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-ml/labltk/files/labltk-8.06.12-c2x.patch | 47 
 dev-ml/labltk/labltk-8.06.12-r1.ebuild   |  1 +
 2 files changed, 48 insertions(+)

diff --git a/dev-ml/labltk/files/labltk-8.06.12-c2x.patch 
b/dev-ml/labltk/files/labltk-8.06.12-c2x.patch
new file mode 100644
index ..f495e532d590
--- /dev/null
+++ b/dev-ml/labltk/files/labltk-8.06.12-c2x.patch
@@ -0,0 +1,47 @@
+--- a/support/cltkWait.c   2023-01-25 19:38:41.920494229 +0100
 b/support/cltkWait.c   2023-01-25 19:39:51.246347410 +0100
+@@ -44,9 +44,7 @@
+   Tk_Window win;
+ };
+ 
+-static void WaitVisibilityProc(clientData, eventPtr)
+-ClientData clientData;
+-XEvent *eventPtr;   /* Information about event (not used). */
++static void WaitVisibilityProc(ClientData clientData, XEvent *eventPtr)
+ {
+   struct WinCBData *vis = clientData;
+   value cbid = Val_int(vis->cbid);
+--- a/support/cltkImg.c2023-01-25 19:42:03.647173018 +0100
 b/support/cltkImg.c2023-01-25 19:42:49.290423395 +0100
+@@ -111,9 +111,7 @@
+   return Val_int(0);
+ }
+ 
+-CAMLprim value camltk_setimgdata_bytecode(argv,argn)
+- value *argv;
+- int argn;
++CAMLprim value camltk_setimgdata_bytecode(value *argv, int argn)
+ {
+   return camltk_setimgdata_native(argv[0], argv[1], argv[2], argv[3],
+   argv[4], argv[5]);
+--- a/support/cltkVar.c2023-01-25 19:44:11.880066940 +0100
 b/support/cltkVar.c2023-01-25 19:46:16.580018764 +0100
+@@ -74,12 +74,12 @@
+ typedef char *(Tcl_VarTraceProc) _ANSI_ARGS_((ClientData clientData,
+ Tcl_Interp *interp, char *part1, char *part2, int flags));
+  */
+-static char * tracevar(clientdata, interp, name1, name2, flags)
+- ClientData clientdata;
+- Tcl_Interp *interp;/* Interpreter containing variable. */
+- char *name1;   /* Name of variable. */
+- char *name2;   /* Second part of variable name. */
+- int flags; /* Information about what happened. */
++static char * tracevar(ClientData clientdata, Tcl_Interp *interp,
++char *name1, char *name2, int flags)
++ /* interp -> Interpreter containing variable. */
++ /* name1  -> Name of variable. */
++ /* name2  -> Second part of variable name. */
++ /* flags  -> Information about what happened. */
+ {
+   Tcl_UntraceVar2(interp, name1, name2,
+ TCL_GLOBAL_ONLY|TCL_TRACE_WRITES|TCL_TRACE_UNSETS,

diff --git a/dev-ml/labltk/labltk-8.06.12-r1.ebuild 
b/dev-ml/labltk/labltk-8.06.12-r1.ebuild
index a85ce87f404c..6ec61653cabe 100644
--- a/dev-ml/labltk/labltk-8.06.12-r1.ebuild
+++ b/dev-ml/labltk/labltk-8.06.12-r1.ebuild
@@ -24,6 +24,7 @@ PATCHES=(
"${FILESDIR}/findlib.patch"
"${FILESDIR}"/${PN}-8.06.9-configure-clang16.patch
"${FILESDIR}"/${P}-shuffle.patch
+   "${FILESDIR}"/${P}-c2x.patch
 )
 
 src_prepare() {



[gentoo-commits] repo/gentoo:master commit in: dev-ml/labltk/files/, dev-ml/labltk/

2023-01-21 Thread Alfredo Tupone
commit: d1bcd57413cde95632e1601ebf71f5300eb1e5a8
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Sat Jan 21 21:30:53 2023 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Sat Jan 21 22:31:43 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1bcd574

dev-ml/labltk: add depend on makefile

Closes: https://bugs.gentoo.org/884509
Signed-off-by: Alfredo Tupone  gentoo.org>

 dev-ml/labltk/files/labltk-8.06.12-shuffle.patch | 12 
 dev-ml/labltk/labltk-8.06.12-r1.ebuild   |  3 ++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/dev-ml/labltk/files/labltk-8.06.12-shuffle.patch 
b/dev-ml/labltk/files/labltk-8.06.12-shuffle.patch
new file mode 100644
index ..7d5c94356c5c
--- /dev/null
+++ b/dev-ml/labltk/files/labltk-8.06.12-shuffle.patch
@@ -0,0 +1,12 @@
+--- a/compiler/Makefile2023-01-21 22:23:29.676828969 +0100
 b/compiler/Makefile2023-01-21 22:24:16.204141261 +0100
+@@ -73,6 +73,9 @@
+ .ml.cmo:
+   $(CAMLCOMP) $(COMPFLAGS) -I ../support $<
+ 
++maincompile.cmo: copyright.cmo
++maincompile.cmx: copyright.cmx
++
+ depend: parser.ml parser.mli lexer.ml pplex.ml ppyac.ml ppyac.mli
+   $(CAMLDEP) *.mli *.ml > .depend
+ 

diff --git a/dev-ml/labltk/labltk-8.06.12-r1.ebuild 
b/dev-ml/labltk/labltk-8.06.12-r1.ebuild
index fd876a1a68e2..a85ce87f404c 100644
--- a/dev-ml/labltk/labltk-8.06.12-r1.ebuild
+++ b/dev-ml/labltk/labltk-8.06.12-r1.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
@@ -23,6 +23,7 @@ DEPEND="${RDEPEND}
 PATCHES=(
"${FILESDIR}/findlib.patch"
"${FILESDIR}"/${PN}-8.06.9-configure-clang16.patch
+   "${FILESDIR}"/${P}-shuffle.patch
 )
 
 src_prepare() {