* [gentoo-commits] repo/gentoo:master commit in: app-office/glabels/files/, app-office/glabels/
@ 2020-12-13 18:49 Mart Raudsepp
0 siblings, 0 replies; 2+ messages in thread
From: Mart Raudsepp @ 2020-12-13 18:49 UTC (permalink / raw
To: gentoo-commits
commit: e643d66299e3bf059a6b0ceaacee0df36519c314
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 13 18:00:30 2020 +0000
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Sun Dec 13 18:47:41 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e643d662
app-office/glabels: fix compilation with gcc-10
Closes: https://bugs.gentoo.org/721968
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
app-office/glabels/files/glabels-externs.patch | 24 ++++++++++++++++++++++++
app-office/glabels/glabels-3.4.1.ebuild | 4 ++++
2 files changed, 28 insertions(+)
diff --git a/app-office/glabels/files/glabels-externs.patch b/app-office/glabels/files/glabels-externs.patch
new file mode 100644
index 00000000000..5722912154b
--- /dev/null
+++ b/app-office/glabels/files/glabels-externs.patch
@@ -0,0 +1,24 @@
+diff -up glabels-3.4.1/src/font-history.h.f32 glabels-3.4.1/src/font-history.h
+--- glabels-3.4.1/src/font-history.h.f32 2016-03-04 05:01:15.000000000 +0100
++++ glabels-3.4.1/src/font-history.h 2020-02-03 08:41:46.371176433 +0100
+@@ -28,7 +28,7 @@
+ G_BEGIN_DECLS
+
+
+-glFontHistoryModel *gl_font_history;
++extern glFontHistoryModel *gl_font_history;
+
+
+ void gl_font_history_init (void);
+diff -up glabels-3.4.1/src/template-history.h.f32 glabels-3.4.1/src/template-history.h
+--- glabels-3.4.1/src/template-history.h.f32 2016-03-04 05:01:15.000000000 +0100
++++ glabels-3.4.1/src/template-history.h 2020-02-03 08:42:28.547175850 +0100
+@@ -28,7 +28,7 @@
+ G_BEGIN_DECLS
+
+
+-glTemplateHistoryModel *gl_template_history;
++extern glTemplateHistoryModel *gl_template_history;
+
+
+ void gl_template_history_init (void);
diff --git a/app-office/glabels/glabels-3.4.1.ebuild b/app-office/glabels/glabels-3.4.1.ebuild
index 23065b3be10..2f70ff77c79 100644
--- a/app-office/glabels/glabels-3.4.1.ebuild
+++ b/app-office/glabels/glabels-3.4.1.ebuild
@@ -32,6 +32,10 @@ DEPEND="${RDEPEND}
virtual/pkgconfig
"
+PATCHES=(
+ "${FILESDIR}"/glabels-externs.patch # Fix compilation with -fno-common/gcc10; patch from Fedora
+)
+
src_configure() {
gnome2_src_configure \
$(use_with eds libebook) \
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-office/glabels/files/, app-office/glabels/
@ 2024-08-09 21:17 James Le Cuirot
0 siblings, 0 replies; 2+ messages in thread
From: James Le Cuirot @ 2024-08-09 21:17 UTC (permalink / raw
To: gentoo-commits
commit: 9b0db9696485db36116cb171c850b195b86800ee
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 9 21:17:11 2024 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Fri Aug 9 21:17:11 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b0db969
app-office/glabels: Fix building with GCC 14
Closes: https://bugs.gentoo.org/921144
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
app-office/glabels/files/glabels-gcc14.patch | 27 +++++++++++++++++++++++++++
app-office/glabels/glabels-3.4.1-r1.ebuild | 3 ++-
2 files changed, 29 insertions(+), 1 deletion(-)
diff --git a/app-office/glabels/files/glabels-gcc14.patch b/app-office/glabels/files/glabels-gcc14.patch
new file mode 100644
index 000000000000..61f21ed9f2ff
--- /dev/null
+++ b/app-office/glabels/files/glabels-gcc14.patch
@@ -0,0 +1,27 @@
+diff -Naur a/src/pixbuf-cache.c b/src/pixbuf-cache.c
+--- a/src/pixbuf-cache.c 2016-01-24 02:06:18.000000000 +0000
++++ b/src/pixbuf-cache.c 2024-08-09 22:11:46.908878425 +0100
+@@ -125,7 +125,7 @@
+ record = g_new0 (CacheRecord, 1);
+ record->key = g_strdup (name);
+ record->references = 0; /* Nobody has referenced it yet. */
+- record->pixbuf = g_object_ref (G_OBJECT (pixbuf));
++ record->pixbuf = pixbuf;
+
+ g_hash_table_insert (pixbuf_cache, record->key, record);
+
+diff -Naur a/src/ui-commands.c b/src/ui-commands.c
+--- a/src/ui-commands.c 2016-01-24 02:06:18.000000000 +0000
++++ b/src/ui-commands.c 2024-08-09 22:10:18.466271055 +0100
+@@ -1071,9 +1071,10 @@
+ } else {
+
+ window->merge_dialog =
++ GL_MERGE_PROPERTIES_DIALOG(
+ g_object_ref (
+ gl_merge_properties_dialog_new (GL_VIEW(window->view)->label,
+- GTK_WINDOW(window)) );
++ GTK_WINDOW(window)) ));
+
+ g_signal_connect (G_OBJECT(window->merge_dialog), "destroy",
+ G_CALLBACK (gtk_widget_destroyed),
diff --git a/app-office/glabels/glabels-3.4.1-r1.ebuild b/app-office/glabels/glabels-3.4.1-r1.ebuild
index cf1bc346deb7..029622812f7a 100644
--- a/app-office/glabels/glabels-3.4.1-r1.ebuild
+++ b/app-office/glabels/glabels-3.4.1-r1.ebuild
@@ -6,7 +6,7 @@ EAPI=8
inherit gnome2
DESCRIPTION="Program for creating labels and business cards"
-HOMEPAGE="https://glabels.org/"
+HOMEPAGE="https://github.com/jimevins/glabels-qt"
LICENSE="GPL-3+ LGPL-3+ CC-BY-SA-3.0 MIT"
SLOT="0"
@@ -35,6 +35,7 @@ BDEPEND="
PATCHES=(
"${FILESDIR}"/glabels-externs.patch # Fix compilation with -fno-common/gcc10; patch from Fedora
+ "${FILESDIR}"/glabels-gcc14.patch
)
src_configure() {
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-09 21:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-13 18:49 [gentoo-commits] repo/gentoo:master commit in: app-office/glabels/files/, app-office/glabels/ Mart Raudsepp
-- strict thread matches above, loose matches on Subject: below --
2024-08-09 21:17 James Le Cuirot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox