From 370959f2df3ef271f2bbf2a60ae1c196166b6b57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 2 May 2021 21:54:12 +0200 Subject: Fix sane config --- debian/changelog | 6 + debian/patches/0010-fix_missing_sane-config.patch | 164 +++++++++++++++++++++- 2 files changed, 164 insertions(+), 6 deletions(-) diff --git a/debian/changelog b/debian/changelog index e51e8c8..3da0a12 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +xsane (0.999-11) UNRELEASED; urgency=medium + + * Fix sane config. + + -- Jörg Frings-Fürst Sun, 02 May 2021 20:09:27 +0200 + xsane (0.999-10) unstable; urgency=medium * xsane-common: Remove unversioned Replaces: xsane. diff --git a/debian/patches/0010-fix_missing_sane-config.patch b/debian/patches/0010-fix_missing_sane-config.patch index 4a9c444..5cbee73 100644 --- a/debian/patches/0010-fix_missing_sane-config.patch +++ b/debian/patches/0010-fix_missing_sane-config.patch @@ -11,16 +11,168 @@ Index: trunk/configure.in =================================================================== --- trunk.orig/configure.in +++ trunk/configure.in -@@ -165,8 +165,10 @@ fi +@@ -165,7 +165,9 @@ fi AC_SUBST(INTLSUB) -AM_PATH_SANE(1.0.0, HAVE_SANE=yes, ) -- -+PKG_CHECK_MODULES([SANE], [sane-backends >= 1.0.0]) ++PKG_CHECK_MODULES([SANE], [sane-backends >= 1.0.0], [HAVE_SANE=yes]) +PKG_CHECK_VAR([SANE_PREFIX], [sane-backends >= 1.0.0], [prefix]) -+PKG_CHECK_VAR([SANE_LDFLAGS], [sane-backends >= 1.0.0], [ldflags], -+ [HAVE_SANE=yes]) ++PKG_CHECK_VAR([SANE_LDFLAGS], [sane-backends >= 1.0.0], [ldflags]) + if test "${USE_GIMP}" = "yes"; then if test "${TRY_GIMP_2}" = "yes"; then - AM_PATH_GIMP_2_0(1.3.23, HAVE_GIMP=yes, ) +Index: trunk/m4/sane.m4 +=================================================================== +--- trunk.orig/m4/sane.m4 ++++ /dev/null +@@ -1,149 +0,0 @@ +-# ******************************************************************** +-# Configure paths for SANE +-# Oliver Rauch 2000-10-30 +- +-dnl AM_PATH_SANE([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) +-dnl Test for SANE, and define SANE_CFLAGS and SANE_LIBS +-dnl +-AC_DEFUN(AM_PATH_SANE, +-[dnl +-dnl Get the cflags and libraries from the sane-config script +-dnl +- AC_ARG_ENABLE(sanetest, [ --disable-sanetest Do not try to compile and run a test SANE program], , enable_sanetest=yes) +- +- AC_PATH_PROG(SANE_CONFIG, sane-config, no) +- min_sane_version=ifelse([$1], ,1.0.0,$1) +- AC_MSG_CHECKING(for SANE - version >= $min_sane_version) +- no_sane="" +- if test "$SANE_CONFIG" = "no" ; then +- no_sane=yes +- else +- SANE_CFLAGS=`$SANE_CONFIG $sane_config_args --cflags` +- SANE_LDFLAGS=`$SANE_CONFIG $sane_config_args --ldflags` +-# SANE_LIBS=`$SANE_CONFIG $sane_config_args --libs` +- SANE_LIBS=`$SANE_CONFIG $sane_config_args --libs | sed -e 's/-lintl//g'` +- SANE_PREFIX=`$SANE_CONFIG $sane_config_args --prefix` +- sane_config_major_version=`$SANE_CONFIG $sane_config_args --version | \ +- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` +- sane_config_minor_version=`$SANE_CONFIG $sane_config_args --version | \ +- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` +- sane_config_micro_version=`$SANE_CONFIG $sane_config_args --version | \ +- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` +- if test "x$enable_sanetest" = "xyes" ; then +- ac_save_CFLAGS="$CFLAGS" +- ac_save_LDFLAGS="$LDFLAGS" +- ac_save_LIBS="$LIBS" +- CFLAGS="$CFLAGS $SANE_CFLAGS" +- LDFLAGS="$LDFLAGS $SANE_LDFLAGS" +- LIBS="$LIBS $SANE_LIBS" +-dnl +-dnl Now check if the installed SANE is sufficiently new. (Also sanity +-dnl checks the results of sane-config to some extent +-dnl +- rm -f conf.sanetest +- AC_TRY_RUN([ +-#include +-#include +- +-int +-main () +-{ +- int major, minor, micro; +- +- system ("touch conf.sanetest"); +- +- if (sscanf("$min_sane_version", "%d.%d.%d", &major, &minor, µ) != 3) { +- printf("%s, bad version string\n", "$min_sane_version"); +- exit(1); +- } +- +- if ( ($sane_config_major_version == major) && +- ( ($sane_config_minor_version > minor) || +- ( ($sane_config_minor_version == minor) && ($sane_config_micro_version >= micro)))) +- { +- return 0; +- } +- else if ($sane_config_major_version > major) +- { +- printf("\n*** A too new version of SANE (%d.%d.%d) was found.\n", +- $sane_config_major_version, $sane_config_minor_version, $sane_config_micro_version); +- printf("*** You need a version of SANE with the major version number %d.\n", major); +- } +- else +- { +- printf("\n*** An old version of SANE (%d.%d.%d) was found.\n", +- $sane_config_major_version, $sane_config_minor_version, $sane_config_micro_version); +- printf("*** You need a version of SANE newer than %d.%d.%d. The latest version of\n", +- major, minor, micro); +- } +- +- printf("*** SANE is always available from ftp://ftp.mostang.com\n"); +- printf("***\n"); +- printf("*** If you have already installed a sufficient version, this error\n"); +- printf("*** probably means that the wrong copy of the sane-config shell script is\n"); +- printf("*** being found. The easiest way to fix this is to remove the old version\n"); +- printf("*** of SANE, but you can also set the SANE_CONFIG environment to point to the\n"); +- printf("*** correct copy of sane-config. (In this case, you will have to\n"); +- printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); +- printf("*** so that the correct libraries are found at run-time))\n"); +- +- return 1; +-} +-],, no_sane=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) +- CFLAGS="$ac_save_CFLAGS" +- LDFLAGS="$ac_save_LDFLAGS" +- LIBS="$ac_save_LIBS" +- fi +- fi +- if test "x$no_sane" = x ; then +- AC_MSG_RESULT(yes) +- ifelse([$2], , :, [$2]) +- else +- AC_MSG_RESULT(no) +- if test "$SANE_CONFIG" = "no" ; then +- echo "*** The sane-config script installed by SANE could not be found" +- echo "*** If SANE was installed in PREFIX, make sure PREFIX/bin is in" +- echo "*** your path, or set the SANE_CONFIG environment variable to the" +- echo "*** full path to sane-config." +- else +- if test -f conf.sanetest ; then +- : +- else +- echo "*** Could not run SANE test program, checking why..." +- CFLAGS="$CFLAGS $SANE_CFLAGS" +- LIBS="$LIBS $SANE_LIBS" +- LDFLAGS="$LDFLAGS $SANE_LDFLAGS" +- AC_TRY_LINK([ +-#include +-#include +-], [ return (SANE_CURRENT_MAJOR); ], +- [ echo "*** The test program compiled, but did not run. This usually means" +- echo "*** that the run-time linker is not finding SANE or finding the wrong" +- echo "*** version of SANE. If it is not finding SANE, you'll need to set your" +- echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" +- echo "*** to the installed location Also, make sure you have run ldconfig if that" +- echo "*** is required on your system" +- echo "***" +- echo "*** If you have an old version installed, it is best to remove it, although" +- echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" +- echo "***" ] +- [ echo "*** The test program failed to compile or link. See the file config.log for the" +- echo "*** exact error that occured. This usually means SANE was incorrectly installed" +- echo "*** or that you have moved SANE since it was installed. In the latter case, you" +- echo "*** may want to edit the sane-config script: $SANE_CONFIG" ]) +- CFLAGS="$ac_save_CFLAGS" +- LDFLAGS="$ac_save_LDFLAGS" +- LIBS="$ac_save_LIBS" +- fi +- fi +- SANE_CFLAGS="" +- SANE_LDFLAGS="" +- SANE_LIBS="" +- ifelse([$3], , :, [$3]) +- fi +- AC_SUBST(SANE_LDFLAGS) +- AC_SUBST(SANE_CFLAGS) +- AC_SUBST(SANE_LIBS) +- AC_SUBST(SANE_PREFIX) +- rm -f conf.sanetest +-]) -- cgit v1.2.3 From ccec8ec04171d7c6a223599dc333e1868ba69036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Tue, 4 May 2021 13:08:38 +0200 Subject: Fix Docs need symlink to be found from GUI --- debian/changelog | 4 +++- debian/xsane-common.links | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 3da0a12..014c992 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,8 @@ xsane (0.999-11) UNRELEASED; urgency=medium - * Fix sane config. + * Fix FTBFS on hppa (Closes: #987841). + - Thanks to John David Anglin . + * Fix Docs need symlink to be found from GUI (Closes: #983734). -- Jörg Frings-Fürst Sun, 02 May 2021 20:09:27 +0200 diff --git a/debian/xsane-common.links b/debian/xsane-common.links index 00c171b..ccc8612 100644 --- a/debian/xsane-common.links +++ b/debian/xsane-common.links @@ -1 +1,2 @@ +usr/share/doc/xsane-common/html usr/share/sane/xsane/doc usr/share/doc/xsane-common/html/sane-xsane-doc.html usr/share/doc/xsane-common/html/index.html -- cgit v1.2.3 From 63d7994abdce167cb62782c700d6f02a8c157820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Tue, 4 May 2021 13:23:21 +0200 Subject: Check build with autoconf 2.71-1 --- debian/changelog | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/changelog b/debian/changelog index 014c992..6f1a60c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,7 @@ xsane (0.999-11) UNRELEASED; urgency=medium * Fix FTBFS on hppa (Closes: #987841). - Thanks to John David Anglin . * Fix Docs need symlink to be found from GUI (Closes: #983734). + * Check build with autoconf 2.71-1 (Closes: #978925). -- Jörg Frings-Fürst Sun, 02 May 2021 20:09:27 +0200 -- cgit v1.2.3 From 951161a767be3f1d83bad23ba42bda79881a2ab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Tue, 4 May 2021 14:07:50 +0200 Subject: Remove deprecated full menu path for gimp --- debian/changelog | 1 + debian/patches/0105-deb_gimp_acquire_menu.patch | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 6f1a60c..1a074bc 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,7 @@ xsane (0.999-11) UNRELEASED; urgency=medium - Thanks to John David Anglin . * Fix Docs need symlink to be found from GUI (Closes: #983734). * Check build with autoconf 2.71-1 (Closes: #978925). + * Remove deprecated full menu path for gimp (Closes: #982828). -- Jörg Frings-Fürst Sun, 02 May 2021 20:09:27 +0200 diff --git a/debian/patches/0105-deb_gimp_acquire_menu.patch b/debian/patches/0105-deb_gimp_acquire_menu.patch index d5eb94d..dad82d2 100644 --- a/debian/patches/0105-deb_gimp_acquire_menu.patch +++ b/debian/patches/0105-deb_gimp_acquire_menu.patch @@ -13,8 +13,8 @@ Index: xsane-0.998/src/xsane-text.h /* Menu path must not be translated, this is done by the gimp. Only translate the text behind the last "/" */ -#define XSANE_GIMP_MENU_DIALOG _("/File/Acquire/XSane: Device dialog...") -#define XSANE_GIMP_MENU _("/File/Acquire/XSane: ") -+#define XSANE_GIMP_MENU_DIALOG _("/File/Acquire/XSane/Device dialog...") -+#define XSANE_GIMP_MENU _("/File/Acquire/XSane/") ++#define XSANE_GIMP_MENU_DIALOG _("/File/Acquire/XSane/Device dialog...") ++#define XSANE_GIMP_MENU _("/File/Acquire/XSane/") #define XSANE_GIMP_MENU_DIALOG_OLD _("/Xtns/XSane/Device dialog...") #define XSANE_GIMP_MENU_OLD _("/Xtns/XSane/") -- cgit v1.2.3 From 6a9a55784f5c6491bfe737494fb36315b2ce2a9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Tue, 4 May 2021 14:34:04 +0200 Subject: d/changelog: Change distribution to experimental, Change date and time --- debian/changelog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 1a074bc..f5fbb2a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -xsane (0.999-11) UNRELEASED; urgency=medium +xsane (0.999-11) experimental; urgency=medium * Fix FTBFS on hppa (Closes: #987841). - Thanks to John David Anglin . @@ -6,7 +6,7 @@ xsane (0.999-11) UNRELEASED; urgency=medium * Check build with autoconf 2.71-1 (Closes: #978925). * Remove deprecated full menu path for gimp (Closes: #982828). - -- Jörg Frings-Fürst Sun, 02 May 2021 20:09:27 +0200 + -- Jörg Frings-Fürst Tue, 04 May 2021 14:31:47 +0200 xsane (0.999-10) unstable; urgency=medium -- cgit v1.2.3