* [gentoo-commits] repo/gentoo:master commit in: dev-ml/lablgtk/, dev-ml/lablgtk/files/
@ 2020-05-14 20:30 Alfredo Tupone
0 siblings, 0 replies; 2+ messages in thread
From: Alfredo Tupone @ 2020-05-14 20:30 UTC (permalink / raw
To: gentoo-commits
commit: 2d2bdbe30102051df11a309541b172115cfa7f55
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu May 14 20:30:13 2020 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu May 14 20:30:13 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d2bdbe3
dev-ml/lablgtk: uses CFLAGS and fix -fno-common
Closes: https://bugs.gentoo.org/721952
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
dev-ml/lablgtk/files/lablgtk-2.18.10-cflags.patch | 97 +++++++++++++++++++++++
dev-ml/lablgtk/lablgtk-2.18.10.ebuild | 8 +-
2 files changed, 103 insertions(+), 2 deletions(-)
diff --git a/dev-ml/lablgtk/files/lablgtk-2.18.10-cflags.patch b/dev-ml/lablgtk/files/lablgtk-2.18.10-cflags.patch
new file mode 100644
index 00000000000..9cbc94a8a03
--- /dev/null
+++ b/dev-ml/lablgtk/files/lablgtk-2.18.10-cflags.patch
@@ -0,0 +1,97 @@
+--- a/src/Makefile 2020-05-14 22:01:09.565870733 +0200
++++ b/src/Makefile 2020-05-14 22:06:49.081621996 +0200
+@@ -18,6 +18,7 @@
+
+ include $(CONFIG)
+ #GTKCFLAGS += -Werror -Wno-error=deprecated-declarations
++CFLAGS=
+
+ TARGETS = varcc$(XE) lablgtktop$(XE) lablgtk2$(XB) gdk_pixbuf_mlsource$(XE) \
+ $(THINITOBJS) build.ml
+@@ -45,14 +46,13 @@
+
+ ifdef DEBUG
+ COMPILER += -warn-error A-52
+-CFLAGS = -g $(GTKCFLAGS)
++OCAMLCFLAGS = $(GTKCFLAGS)
+ CUSTOM = -custom
+ #MLLINK += -cclib -lcamlrund
+ MLBYTEFLAGS = -g -dtypes
+ else
+-CFLAGS = -DG_DISABLE_ASSERT -DG_DISABLE_CAST_CHECKS $(GTKCFLAGS)
++OCAMLCFLAGS = -DG_DISABLE_ASSERT -DG_DISABLE_CAST_CHECKS $(GTKCFLAGS)
+ ifneq ($(TOOLCHAIN),msvc)
+-CFLAGS += -O
+ endif
+ endif
+
+@@ -65,9 +65,9 @@
+ THLINK = unix.cma threads.cma
+
+ ifdef USE_CC
+-CCOMPILER = $(CC) -c -I"$(LIBDIR)" $(CFLAGS)
++CCOMPILER = $(CC) -c -I"$(LIBDIR)" $(OCAMLCFLAGS) $(CFLAGS)
+ else
+-CCOMPILER = $(CAMLC) -c -ccopt '$(CFLAGS)' -verbose
++CCOMPILER = $(CAMLC) -c -ccopt '$(OCAMLCFLAGS) $(CFLAGS)' -verbose
+ endif
+
+ ifdef USE_GL
+@@ -123,7 +123,7 @@
+ CLIBS += liblablrsvg$(XA)
+ RSVGMLOBJS = rsvg.cmo
+ RSVGCOBJS = ml_rsvg$(XO)
+-$(RSVGCOBJS) : CFLAGS+=$(HAVE_SVGZ)
++$(RSVGCOBJS) : OCAMLCFLAGS+=$(HAVE_SVGZ)
+ endif
+
+ ifdef USE_GTKSPELL
+@@ -140,7 +140,7 @@
+ opt:: lablgtksourceview.cmxs
+ endif
+
+-ml_gtksourceview.o: CFLAGS=$(GTKSOURCEVIEWCFLAGS)
++ml_gtksourceview.o: OCAMLCFLAGS=$(GTKSOURCEVIEWCFLAGS)
+ GTKSOURCEVIEWMLOBJS = gtkSourceView.cmo gSourceView.cmo
+ GTKSOURCEVIEWCOBJS = ml_gtksourceview$(XO)
+ ml_gtksourceview.c: pango_tags.h
+@@ -179,7 +179,7 @@
+ endif
+
+ ifdef USE_GTKQUARTZ
+-CFLAGS += -DHAS_GTKQUARTZ
++OCAMLCFLAGS += -DHAS_GTKQUARTZ
+ endif
+ # Rules
+ .SUFFIXES: .ml .mli .cmo .cmi .cmx .cmxs .cmxa .c $(XO) .d$(XO) .var .h .opt .def .ml4
+@@ -188,7 +188,7 @@
+ .cpp$(XO):
+ $(CCOMPILER) $<
+ .c.d$(XO):
+- $(CAMLC) -c -ccopt '-MT -DCAML_DLL -Fo$@ $(CFLAGS)' $<
++ $(CAMLC) -c -ccopt '-MT -DCAML_DLL -Fo$@ $(OCAMLCFLAGS) $(CFLAGS)' $<
+ .ml.cmo:
+ $(COMPILER) $(PRINCIPAL) $<
+ .mli.cmi:
+--- a/src/ml_gdk.h 2020-05-14 22:19:59.045394874 +0200
++++ b/src/ml_gdk.h 2020-05-14 22:20:06.694277819 +0200
+@@ -102,7 +102,7 @@
+ CAMLexport int OptFlags_GdkModifier_val (value);
+ CAMLexport int Flags_GdkModifier_val (value);
+ CAMLexport int Flags_Event_mask_val (value);
+-CAMLexport lookup_info *ml_table_extension_events;
++extern lookup_info *ml_table_extension_events;
+ #define Extension_events_val(key) ml_lookup_to_c(ml_table_extension_events,key)
+
+ #define GdkDragContext_val(val) check_cast(GDK_DRAG_CONTEXT,val)
+--- a/src/ml_gdk.c 2020-05-14 22:21:39.244861128 +0200
++++ b/src/ml_gdk.c 2020-05-14 22:21:57.571580518 +0200
+@@ -55,6 +55,8 @@
+ #define GDK_WINDOW_TYPE_HINT_DOCK GDK_WINDOW_TYPE_HINT_NORMAL
+ #endif
+
++lookup_info *ml_table_extension_events;
++
+ CAMLprim void ml_raise_gdk (const char *errmsg)
+ {
+ static const value * exn = NULL;
diff --git a/dev-ml/lablgtk/lablgtk-2.18.10.ebuild b/dev-ml/lablgtk/lablgtk-2.18.10.ebuild
index ad3698d27a5..780d515a5e0 100644
--- a/dev-ml/lablgtk/lablgtk-2.18.10.ebuild
+++ b/dev-ml/lablgtk/lablgtk-2.18.10.ebuild
@@ -26,6 +26,10 @@ BDEPEND="dev-ml/findlib
DOCS=( CHANGES README CHANGES.API )
+PATCHES=(
+ "${FILESDIR}"/${P}-cflags.patch
+)
+
src_configure() {
local myeconfargs=(
$(use_enable debug)
@@ -46,9 +50,9 @@ src_configure() {
src_compile() {
# parallel build crashes
- emake -j1 all
+ emake -j1 all CFLAGS="${CFLAGS}"
if use ocamlopt; then
- emake -j1 opt
+ emake -j1 opt CFLAGS="${CFLAGS}"
fi
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-ml/lablgtk/, dev-ml/lablgtk/files/
@ 2022-12-23 20:44 Alfredo Tupone
0 siblings, 0 replies; 2+ messages in thread
From: Alfredo Tupone @ 2022-12-23 20:44 UTC (permalink / raw
To: gentoo-commits
commit: 8524c3ce6eed7dee7777004321f9e3b5880cc75d
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 23 20:43:29 2022 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Fri Dec 23 20:43:29 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8524c3ce
dev-ml/lablgtk: fix Makefile
Closes: https://bugs.gentoo.org/887039
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
dev-ml/lablgtk/files/lablgtk-2.18.12-Makefile.patch | 11 +++++++++++
dev-ml/lablgtk/lablgtk-2.18.12.ebuild | 1 +
2 files changed, 12 insertions(+)
diff --git a/dev-ml/lablgtk/files/lablgtk-2.18.12-Makefile.patch b/dev-ml/lablgtk/files/lablgtk-2.18.12-Makefile.patch
new file mode 100644
index 000000000000..a77455afa8ef
--- /dev/null
+++ b/dev-ml/lablgtk/files/lablgtk-2.18.12-Makefile.patch
@@ -0,0 +1,11 @@
+--- a/src/Makefile 2022-12-23 21:39:09.743150707 +0100
++++ b/src/Makefile 2022-12-23 21:39:40.219667855 +0100
+@@ -617,7 +617,7 @@
+ gtk_tags.h gdk_tags.h ml_gtktext.h sourceView_tags.h wrappers.h
+
+ $(GTKSOURCEVIEW2COBJS): ml_glib.h ml_gdk.h ml_gtk.h ml_gobject.h ml_gdkpixbuf.h ml_pango.h \
+- gtk_tags.h gdk_tags.h ml_gtktext.h sourceView2_tags.h wrappers.h
++ gtk_tags.h gdk_tags.h ml_gtktext.h pango_tags.h sourceView2_tags.h wrappers.h
+
+ ml_glib$(XO): glib_tags.h ml_glib.h wrappers.h
+ ml_gobject$(XO): gobject_tags.h ml_gvaluecaml.h wrappers.h
diff --git a/dev-ml/lablgtk/lablgtk-2.18.12.ebuild b/dev-ml/lablgtk/lablgtk-2.18.12.ebuild
index f96bd8719b9c..fc6dec1fc9f2 100644
--- a/dev-ml/lablgtk/lablgtk-2.18.12.ebuild
+++ b/dev-ml/lablgtk/lablgtk-2.18.12.ebuild
@@ -28,6 +28,7 @@ DOCS=( CHANGES README CHANGES.API )
PATCHES=(
"${FILESDIR}"/${P}-cflags.patch
+ "${FILESDIR}"/${P}-Makefile.patch
)
src_configure() {
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-12-23 20:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-23 20:44 [gentoo-commits] repo/gentoo:master commit in: dev-ml/lablgtk/, dev-ml/lablgtk/files/ Alfredo Tupone
-- strict thread matches above, loose matches on Subject: below --
2020-05-14 20:30 Alfredo Tupone
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox