[packages/buoh] Rel 4; fix build
arekm
arekm at pld-linux.org
Mon Aug 11 20:28:11 CEST 2025
commit 2a038ac27e67d2f1d0a6238d84cb7b0382070a1a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Aug 11 20:28:04 2025 +0200
Rel 4; fix build
build.patch | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
buoh.spec | 5 +++-
2 files changed, 95 insertions(+), 1 deletion(-)
---
diff --git a/buoh.spec b/buoh.spec
index 9222367..270b2fc 100644
--- a/buoh.spec
+++ b/buoh.spec
@@ -2,13 +2,14 @@ Summary: The online comic reader application for GNOME
Summary(pl.UTF-8): Czytników komiksów online dla GNOME
Name: buoh
Version: 0.8.2
-Release: 3
+Release: 4
License: GPL v2+
Group: X11/Applications
Source0: http://buoh.steve-o.org/downloads/%{name}-%{version}.tar.bz2
# Source0-md5: 50474a8712ad20ab36d8f8058a4647fb
Patch0: %{name}-desktop.patch
Patch1: %{name}-libsoup24.patch
+Patch2: build.patch
URL: http://buoh.steve-o.org/
BuildRequires: GConf2-devel >= 2.2.0
BuildRequires: autoconf >= 2.57
@@ -20,6 +21,7 @@ BuildRequires: intltool >= 0.36.2
BuildRequires: libgnomeui-devel >= 2.6.0
BuildRequires: libsoup-devel >= 2.4.0
BuildRequires: libtool
+BuildRequires: libxml2-devel
BuildRequires: pkgconfig
BuildRequires: rpmbuild(macros) >= 1.311
Requires(post,postun): gtk-update-icon-cache
@@ -52,6 +54,7 @@ Buoh posiada wiele możliwości, między innymi:
%setup -q
%patch -P0 -p1
%patch -P1 -p1
+%patch -P2 -p1
%build
%{__intltoolize}
diff --git a/build.patch b/build.patch
new file mode 100644
index 0000000..6cd0c28
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,91 @@
+--- buoh-0.8.2/src/buoh-window.c~ 2006-10-22 17:21:37.000000000 +0200
++++ buoh-0.8.2/src/buoh-window.c 2025-08-11 20:15:34.336453433 +0200
+@@ -582,7 +582,7 @@
+ GTK_BUTTONS_CLOSE,
+ _("Unable to save comic"));
+
+- gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
++ gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s",
+ error->message);
+ gtk_dialog_run (GTK_DIALOG (dialog));
+
+--- buoh-0.8.2/src/buoh-comic-loader.c~ 2025-08-11 20:12:03.000000000 +0200
++++ buoh-0.8.2/src/buoh-comic-loader.c 2025-08-11 20:16:42.743521257 +0200
+@@ -249,7 +249,7 @@ buoh_comic_loader_job_read_next (SoupMes
+ if (job->error)
+ g_error_free (job->error);
+ job->error = g_error_new (BUOH_COMIC_LOADER_ERROR,
+- (gint) msg->status_code,
++ (gint) msg->status_code, "%s",
+ msg->reason_phrase);
+ }
+
+--- buoh-0.8.2/src/buoh-view-comic.c~ 2006-10-22 17:21:35.000000000 +0200
++++ buoh-0.8.2/src/buoh-view-comic.c 2025-08-11 20:17:16.463719002 +0200
+@@ -720,7 +720,7 @@ buoh_view_comic_load_cb (const gchar *
+ (guchar *)data, len, &error);
+
+ if (error) {
+- g_warning (error->message);
++ g_warning ("%s", error->message);
+ g_error_free (error);
+ return;
+ }
+--- buoh-0.8.2/src/buoh-view-message.c~ 2006-10-21 16:56:38.000000000 +0200
++++ buoh-0.8.2/src/buoh-view-message.c 2025-08-11 20:17:42.803873467 +0200
+@@ -167,7 +167,7 @@ buoh_view_message_set_icon (BuohViewMess
+ 0,
+ &error);
+ if (error) {
+- g_warning (error->message);
++ g_warning ("%s", error->message);
+ g_error_free (error);
+
+ return;
+--- buoh-0.8.2/src/buoh-comic-cache.c~ 2006-10-21 16:56:37.000000000 +0200
++++ buoh-0.8.2/src/buoh-comic-cache.c 2025-08-11 20:20:14.108094135 +0200
+@@ -181,7 +181,7 @@ buoh_comic_cache_to_disk (BuohComicCache
+ }
+
+ if (!buoh_comic_image_save (image, path, &error)) {
+- g_warning (error->message);
++ g_warning ("%s", error->message);
+ g_error_free (error);
+ g_free (path);
+ return;
+@@ -214,7 +214,7 @@ buoh_comic_cache_set_current (BuohComicC
+ gdk_pixbuf_loader_write (loader, image->data,
+ image->size, &error);
+ if (error) {
+- g_warning (error->message);
++ g_warning ("%s", error->message);
+ g_clear_error (&error);
+
+ cache->priv->current_pixbuf = NULL;
+@@ -232,7 +232,7 @@ buoh_comic_cache_set_current (BuohComicC
+ g_object_unref (loader);
+
+ if (error) {
+- g_warning (error->message);
++ g_warning ("%s", error->message);
+ g_clear_error (&error);
+
+ cache->priv->current_pixbuf = NULL;
+--- buoh-0.8.2/configure.in~ 2025-08-11 20:12:03.000000000 +0200
++++ buoh-0.8.2/configure.in 2025-08-11 20:26:21.420248348 +0200
+@@ -31,12 +31,14 @@ GLIB_REQUIRED=2.6.0
+ GTK_REQUIRED=2.6.0
+ LIBSOUP_REQUIRED=2.3.0.1
+ GCONF_REQUIRED=2.2.0
++LIBXML2_REQUIRED=2.6.0
+
+ PKG_CHECK_MODULES(BUOH,
+ glib-2.0 >= $GLIB_REQUIRED
+ gtk+-2.0 >= $GTK_REQUIRED
+ libsoup-2.4 >= $LIBSOUP_REQUIRED
+- gconf-2.0 >= $GCONF_REQUIRED)
++ gconf-2.0 >= $GCONF_REQUIRED
++ libxml-2.0 >= $LIBXML2_REQUIRED)
+ AC_SUBST(BUOH_CFLAGS)
+ AC_SUBST(BUOH_LIBS)
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/buoh.git/commitdiff/2a038ac27e67d2f1d0a6238d84cb7b0382070a1a
More information about the pld-cvs-commit
mailing list