From ffa351d5df4a4782378b6bf4403d4538570d3b35 Mon Sep 17 00:00:00 2001 From: Rmys Date: Tue, 10 Feb 2026 10:15:35 +0300 Subject: [PATCH] sane-frontends rebuild --- hardware/scanner/sane-frontends/actions.py | 8 ++- .../files/sane-frontends-1.0.14-c99.patch | 51 +++++++++++++++++++ hardware/scanner/sane-frontends/pspec.xml | 3 +- 3 files changed, 60 insertions(+), 2 deletions(-) create mode 100644 hardware/scanner/sane-frontends/files/sane-frontends-1.0.14-c99.patch diff --git a/hardware/scanner/sane-frontends/actions.py b/hardware/scanner/sane-frontends/actions.py index 9ca9f13ec4..725f19655d 100644 --- a/hardware/scanner/sane-frontends/actions.py +++ b/hardware/scanner/sane-frontends/actions.py @@ -6,13 +6,19 @@ from pisi.actionsapi import autotools from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools from pisi.actionsapi import get + +WorkDir="sane-frontends-%s" % get.srcVERSION() + def setup(): + pisitools.cflags.add("-std=gnu11") + shelltools.system("sed -i 's/isfdtype(fileno(stderr), S_IFSOCK)/0/' sanei/sanei_init_debug.c") autotools.configure("--with-gnu-ld") def build(): - autotools.make() + shelltools.system("make") def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) diff --git a/hardware/scanner/sane-frontends/files/sane-frontends-1.0.14-c99.patch b/hardware/scanner/sane-frontends/files/sane-frontends-1.0.14-c99.patch new file mode 100644 index 0000000000..c02528bab9 --- /dev/null +++ b/hardware/scanner/sane-frontends/files/sane-frontends-1.0.14-c99.patch @@ -0,0 +1,51 @@ +https://bugs.gentoo.org/933615#c7 +Signed-off-by: Stephane Bakhos +--- a/acinclude.m4 ++++ b/acinclude.m4 +@@ -61,6 +61,7 @@ + AC_TRY_RUN([ + #include + #include ++#include + + int + main () +@@ -484,6 +485,7 @@ + AC_TRY_RUN([ + #include + #include ++#include + + int + main () +--- a/aclocal.m4 2024-09-17 00:41:08.100761458 -0400 ++++ b/aclocal.m4 2024-09-17 00:56:44.718894896 -0400 +@@ -494,6 +494,7 @@ + AC_TRY_RUN([ + #include + #include ++#include + + int + main () +--- a/configure 2024-09-17 01:07:22.612760156 -0400 ++++ b/configure 2024-09-17 01:07:39.628889934 -0400 +@@ -6818,6 +6818,7 @@ + + #include + #include ++#include + + int + main () +--- a/configure.in 2024-09-17 01:18:19.480771874 -0400 ++++ b/configure.in 2024-09-17 01:15:08.469314114 -0400 +@@ -75,7 +75,7 @@ + + dnl Checks for header files. + AC_HEADER_STDC +-AC_CHECK_HEADERS(os2.h fcntl.h unistd.h libc.h sys/time.h sys/types.h) ++AC_CHECK_HEADERS(os2.h fcntl.h unistd.h libc.h sys/time.h sys/types.h sys/socket.h) + + dnl Checks for typedefs, structures, and compiler characteristics. + AC_C_CONST diff --git a/hardware/scanner/sane-frontends/pspec.xml b/hardware/scanner/sane-frontends/pspec.xml index 8df66cea67..eb2f69afea 100644 --- a/hardware/scanner/sane-frontends/pspec.xml +++ b/hardware/scanner/sane-frontends/pspec.xml @@ -12,13 +12,14 @@ app:console Graphical frontend to SANE sane-frontends includes the scanadf and xcam programs. - ftp://ftp.uwsg.indiana.edu/linux/gentoo/distfiles/sane-frontends-1.0.14.tar.gz + https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/sane-frontends/1.0.14-16/sane-frontends_1.0.14.orig.tar.gz sane-backends-devel gimp-devel gtk2-devel + sane-frontends-1.0.14-c99.patch sane-frontends-1.0.14-array-out-of-bounds.patch sane-frontends-1.0.14-sane-backends-1.0.20.patch