Package Details: xsane 0.999-7

Git Clone URL: https://aur.archlinux.org/xsane.git (read-only, click to copy)
Package Base: xsane
Description: A GTK-based X11 frontend for SANE and plugin for Gimp.
Upstream URL: https://gitlab.com/sane-project/frontend/xsane
Licenses: GPL2
Submitter: gromit
Maintainer: Dreick
Last Packager: Dreick
Votes: 29
Popularity: 4.00
First Submitted: 2024-08-13 11:22 (UTC)
Last Updated: 2024-08-14 00:54 (UTC)

Pinned Comments

Dreick commented on 2024-08-14 00:49 (UTC)

Added a patch to make it build again

Latest Comments

1 2 Next › Last »

Mackin_cheese commented on 2025-05-07 01:28 (UTC)

@maderios regardless if the old gtk2 version is no longer being maintained, this should still be able to be built, so the package maintainer here has to either make some patches to make it build or delete the package.

As it stands, this cannot build in a clean CHROOT, so the package maintainer should be making changes to the PKGBUILD or adding patches

maderios commented on 2025-05-05 09:34 (UTC)

@moormaster Old gtk2 xsane is no more maintained by devs. They're working on future gtk3 version
https://gitlab.com/sane-project/frontend/xsane/-/commits/master

moormaster commented on 2025-05-04 17:31 (UTC)

Doesn't build for me

xsane-scan.c:905:3: error: too many arguments to function 'xsane_cancel_save'; expected 0, have 1
  905 |   xsane_cancel_save(&xsane.cancel_save);
      |   ^~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
In file included from xsane-scan.c:31:
xsane-save.h:53:13: note: declared here
   53 | extern void xsane_cancel_save();
      |             ^~~~~~~~~~~~~~~~~
xsane-gamma.c:581:70: error: passing argument 2 of 'gtk_timeout_add' from incompatible pointer type [-Wincompatible-pointer-types]
  581 |     xsane.slider_timer = gtk_timeout_add(XSANE_CONTINUOUS_HOLD_TIME, xsane_slider_hold_event, 0);
      |                                                                      ^~~~~~~~~~~~~~~~~~~~~~~
      |                                                                      |
      |                                                                      gint (*)(void) {aka int (*)(void)}
In file included from /usr/include/gtk-2.0/gtk/gtk.h:121:
/usr/include/gtk-2.0/gtk/gtkmain.h:175:56: note: expected 'GtkFunction' {aka 'int (*)(void *)'} but argument is of type 'gint (*)(void)' {aka 'int (*)(void)'}
  175 |                                     GtkFunction        function,
      |                                     ~~~~~~~~~~~~~~~~~~~^~~~~~~~
xsane-gamma.c:679:74: error: passing argument 2 of 'gtk_timeout_add' from incompatible pointer type [-Wincompatible-pointer-types]
  679 |         xsane.slider_timer = gtk_timeout_add(XSANE_CONTINUOUS_HOLD_TIME, xsane_slider_hold_event, 0);
      |                                                                          ^~~~~~~~~~~~~~~~~~~~~~~
      |                                                                          |
      |                                                                          gint (*)(void) {aka int (*)(void)}
xsane-save.c:155:6: error: conflicting types for 'xsane_cancel_save'; have 'void(int *)'
  155 | void xsane_cancel_save(int *cancel_save)
      |      ^~~~~~~~~~~~~~~~~
In file included from xsane-save.c:28:
xsane-save.h:53:13: note: previous declaration of 'xsane_cancel_save' with type 'void(void)'
   53 | extern void xsane_cancel_save();
      |             ^~~~~~~~~~~~~~~~~
xsane-gamma.c:693:61: error: passing argument 2 of 'gtk_timeout_add' from incompatible pointer type [-Wincompatible-pointer-types]
  693 |       xsane.slider_timer = gtk_timeout_add(XSANE_HOLD_TIME, xsane_slider_hold_event, 0);
      |                                                             ^~~~~~~~~~~~~~~~~~~~~~~
      |                                                             |
      |                                                             gint (*)(void) {aka int (*)(void)}
/usr/include/gtk-2.0/gtk/gtkmain.h:175:56: note: expected 'GtkFunction' {aka 'int (*)(void *)'} but argument is of type 'gint (*)(void)' {aka 'int (*)(void)'}
  175 |                                     GtkFunction        function,
      |                                     ~~~~~~~~~~~~~~~~~~~^~~~~~~~
xsane-gamma.c:570:13: note: 'xsane_slider_hold_event' declared here
  570 | static gint xsane_slider_hold_event()
      |             ^~~~~~~~~~~~~~~~~~~~~~~
xsane-gamma.c:1966:82: error: passing argument 2 of 'gtk_timeout_add' from incompatible pointer type [-Wincompatible-pointer-types]
 1966 |   xsane.batch_scan_gamma_timer = gtk_timeout_add(XSANE_CONTINUOUS_HOLD_TIME * 4, xsane_batch_scan_gamma_event, 0);
      |                                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                  |
      |                                                                                  gint (*)(void) {aka int (*)(void)}
/usr/include/gtk-2.0/gtk/gtkmain.h:175:56: note: expected 'GtkFunction' {aka 'int (*)(void *)'} but argument is of type 'gint (*)(void)' {aka 'int (*)(void)'}
  175 |                                     GtkFunction        function,
      |                                     ~~~~~~~~~~~~~~~~~~~^~~~~~~~
xsane-gamma.c:556:13: note: 'xsane_batch_scan_gamma_event' declared here
  556 | static gint xsane_batch_scan_gamma_event()
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

maderios commented on 2025-01-14 10:05 (UTC)

@sowieso It builds for me. Anyway, gtk2 is going to be dropped upstream. Look here
https://gitlab.com/sane-project/frontend/xsane/-/issues/66

sowieso commented on 2025-01-13 12:07 (UTC) (edited on 2025-01-13 12:07 (UTC) by sowieso)

For me it complained about gcc, patch, and make not being installed, maybe add it as build-dependency. In the end it failed with

ERROR: GTK-1.2.0 or newer is needed for compiling xsane
       if you installed gtk as rpm make sure you also included
       gtk-devel

though.

maderios commented on 2024-09-01 14:47 (UTC)

xsane-gimp doesn't build/work with Gimp 3.0, it's upstream issue, xsane-gimp project is outdated, no more maintained. I think that's why it was removed from official repo.

loqy commented on 2024-08-28 03:30 (UTC)

Is the patch forgetting to set HAVE_LIBLCMS2? 0165-xsane-0.999-lcms2.patch:

+/* Define if you have liblcms2. */
+#undef HAVE_LIBLCMS2

When I change undef to define it builds successfully.

loqy commented on 2024-08-28 03:14 (UTC)

Of course I'm up to date. Look at the end of 0165-xsane-0.999-lcms2.patch:

-# include "lcms.h"
+# ifdef HAVE_LIBLCMS2
+#  include "lcms2.h"
+# else
+#  include "lcms.h"

The preprocessor can't find lcms2, so it attempts to insert lcms instead.

maderios commented on 2024-08-27 19:28 (UTC)

@loqy Your error message says 'lcms.h'. There is no lcms package in Arch distribution and lcms is not required for building. Update Arch system and source

loqy commented on 2024-08-27 06:01 (UTC)

I had lcms2 installed while building. I have lcms2.h in /usr/include/lcms2.h