+++ /dev/null
-commit fe1456e2431a3b8bd27aadc5bbc6998ebc8cd00c
-Author: Nils Philippsen <nils@redhat.com>
-Date: Mon Aug 31 16:38:23 2009 +0200
-
- patch: rpath
-
- Squashed commit of the following:
-
- commit c37206c9fa724e19f6929d8a77e5399ca6b87f1f
- Author: Nils Philippsen <nils@redhat.com>
- Date: Mon Aug 31 16:34:42 2009 +0200
-
- fix --enable-rpath
-
- commit be2982b2d1ae4d889b4cecec289336b4b03579aa
- Author: Nils Philippsen <nils@redhat.com>
- Date: Tue Jun 2 16:12:23 2009 +0200
-
- add --enable-rpath to configure.in
-
- make using runtime library search path configurable
-
-diff --git a/acinclude.m4 b/acinclude.m4
-index 6413b60..b2bb065 100644
---- a/acinclude.m4
-+++ b/acinclude.m4
-@@ -383,19 +383,29 @@ dnl
-
- AC_DEFUN([SANE_LINKER_RPATH],
- [dnl AC_REQUIRE([AC_SUBST])dnl This line resulted in an empty AC_SUBST() !!
-- AC_CACHE_CHECK([linker parameter to set runtime link path], my_cv_LINKER_RPATH,
-- [my_cv_LINKER_RPATH=
-- case "$host_os" in
-- linux* | freebsd* | netbsd* | openbsd* | irix*)
-- # I believe this only works with GNU ld [pere 2001-04-16]
-- my_cv_LINKER_RPATH="-Wl,-rpath,"
-- ;;
-- solaris*)
-- my_cv_LINKER_RPATH="-R "
-- ;;
-- esac
-- ])
-- LINKER_RPATH="$my_cv_LINKER_RPATH"
-+ AC_MSG_CHECKING([whether runtime link path should be used])
-+ AC_ARG_ENABLE([rpath],
-+ [AS_HELP_STRING([--enable-rpath],
-+ [use runtime library search path @<:@default=yes@:>@])])
-+
-+ LINKER_RPATH=
-+ AS_IF([test "x$enable_rpath" != xno],
-+ AC_MSG_RESULT([yes])
-+ [AC_CACHE_CHECK([linker parameter to set runtime link path], my_cv_LINKER_RPATH,
-+ [my_cv_LINKER_RPATH=
-+ case "$host_os" in
-+ linux* | freebsd* | netbsd* | openbsd* | irix*)
-+ # I believe this only works with GNU ld [pere 2001-04-16]
-+ my_cv_LINKER_RPATH="-Wl,-rpath,"
-+ ;;
-+ solaris*)
-+ my_cv_LINKER_RPATH="-R "
-+ ;;
-+ esac
-+ ])
-+ LINKER_RPATH="$my_cv_LINKER_RPATH"],
-+ [AC_MSG_RESULT([no])
-+ LINKER_RPATH=])
- AC_SUBST(LINKER_RPATH)dnl
- ])
-
+++ /dev/null
-commit 9ba88134bd6d296ccbcf253c6ade3e646dc286b9
-Author: Nils Philippsen <nils@redhat.com>
-Date: Thu Oct 22 17:05:30 2009 +0200
-
- patch: udev
-
- Squashed commit of the following:
-
- commit a7541ac649bea3f352a249dfc569f3bc18b5a968
- Author: Nils Philippsen <nils@redhat.com>
- Date: Thu Oct 22 17:02:52 2009 +0200
-
- don't set owner, group or mode
-
- setting owner, group or mode may interfere with setting ACLs
-
- commit e385558cf214d263af93147995f1f8b729d2dabe
- Author: Nils Philippsen <nils@redhat.com>
- Date: Thu Oct 22 14:19:53 2009 +0200
-
- fix device file ownership and mode
-
- commit fe874d6f9873598e8bcd9201508bc2c89365e821
- Author: Nils Philippsen <nils@redhat.com>
- Date: Thu Oct 22 11:16:16 2009 +0200
-
- adapt generated udev rules for Fedora
-
-diff --git a/tools/sane-desc.c b/tools/sane-desc.c
-index c317700..2a410b2 100644
---- a/tools/sane-desc.c
-+++ b/tools/sane-desc.c
-@@ -56,9 +56,9 @@
- #define COLOR_NEW "\"#F00000\""
- #define COLOR_UNKNOWN "\"#000000\""
-
--#define DEVMODE "0664"
-+#define DEVMODE "0644"
- #define DEVOWNER "root"
--#define DEVGROUP "scanner"
-+#define DEVGROUP "root"
-
- #ifndef PATH_MAX
- # define PATH_MAX 1024
-@@ -3475,8 +3475,8 @@ print_udev (void)
- }
- }
- printf ("\n");
-- printf ("ATTR{idVendor}==\"%s\", ATTR{idProduct}==\"%s\", MODE=\"%s\", GROUP=\"%s\", ENV{libsane_matched}=\"yes\"\n",
-- usbid->usb_vendor_id + 2, usbid->usb_product_id + 2, DEVMODE, DEVGROUP);
-+ printf ("ATTR{idVendor}==\"%s\", ATTR{idProduct}==\"%s\", ENV{libsane_matched}=\"yes\"\n",
-+ usbid->usb_vendor_id + 2, usbid->usb_product_id + 2);
- usbid = usbid->next;
- }
-
-@@ -3488,7 +3488,7 @@ print_udev (void)
- printf ("SUBSYSTEMS!=\"scsi\", GOTO=\"libsane_scsi_rules_end\"\n\n");
- printf ("LABEL=\"libsane_scsi_rules_begin\"\n");
- printf ("# Generic: SCSI device type 6 indicates a scanner\n");
-- printf ("KERNEL==\"sg[0-9]*\", NAME=\"%%k\", ATTRS{type}==\"6\", MODE=\"%s\", GROUP=\"%s\"\n", DEVMODE, DEVGROUP);
-+ printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"6\", ENV{libsane_matched}=\"yes\"\n");
- printf ("# Some scanners advertise themselves as SCSI device type 3\n");
-
- while (scsiid)
-@@ -3521,8 +3521,8 @@ print_udev (void)
- }
- }
- printf ("\n");
-- printf ("KERNEL==\"sg[0-9]*\", NAME=\"%%k\", ATTRS{type}==\"3\", ATTRS{vendor}==\"%s\", ATTRS{model}==\"%s\", MODE=\"%s\", GROUP=\"%s\"\n",
-- scsiid->scsi_vendor_id, scsiid->scsi_product_id, DEVMODE, DEVGROUP);
-+ printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"3\", ATTRS{vendor}==\"%s\", ATTRS{model}==\"%s\", ENV{libsane_matched}=\"yes\"\n",
-+ scsiid->scsi_vendor_id, scsiid->scsi_product_id);
- scsiid = scsiid->next;
- }
- printf ("LABEL=\"libsane_scsi_rules_end\"\n\n");
-From ce4539752ed502cb1a5e10fa47890f42db964472 Mon Sep 17 00:00:00 2001
+From de99bb00b0084e8a1862398270278a14e099b22b Mon Sep 17 00:00:00 2001
From: Nils Philippsen <nils@redhat.com>
-Date: Fri, 26 Feb 2010 18:20:41 +0100
+Date: Wed, 5 May 2010 13:23:40 +0200
Subject: [PATCH] patch: pkgconfig
Squashed commit of the following:
-commit 1f0e85c705a42c7e6ccd938eaad69f531c63f63d
+commit d615848c499842c5923c3274370d2536dc650916
Author: Nils Philippsen <nils@redhat.com>
Date: Fri Feb 26 17:51:14 2010 +0100
pkgconfig file is data
+ (cherry picked from commit 1f0e85c705a42c7e6ccd938eaad69f531c63f63d)
-commit 52ef5f47ccc0128c78ab3ad38ac7b7918dd7ac88
+ Signed-off-by: Nils Philippsen <nils@redhat.com>
+
+commit 119d5af1ddd82dac034d0106a1d86b6d7564f25e
Author: Nils Philippsen <nils@redhat.com>
Date: Wed Jun 17 13:09:51 2009 +0200
make sane-config multilib-aware on Linux
+ (cherry picked from commit 52ef5f47ccc0128c78ab3ad38ac7b7918dd7ac88)
+
+ Signed-off-by: Nils Philippsen <nils@redhat.com>
-commit 7787640dd567b93dd0a458fd5fb662bb7b85ff36
+commit 7ee1cbef01d851aca95d86145ac5dda02d9e7354
Author: Nils Philippsen <nils@redhat.com>
-Date: Fri Jun 5 12:55:39 2009 +0200
+Date: Wed May 5 10:22:15 2010 +0200
use pkg-config in sane-config
---
- configure.in | 3 ++
- tools/Makefile.am | 14 +++++++++-
- tools/sane-backends.pc.in | 14 ++++++++++
- tools/sane-config.in | 64 +++++++++++++++++++++++++++++++++++----------
- 4 files changed, 80 insertions(+), 15 deletions(-)
- create mode 100644 tools/sane-backends.pc.in
+ tools/Makefile.am | 14 ++++++++++-
+ tools/sane-config.in | 66 ++++++++++++++++++++++++++++++++++++++-----------
+ 2 files changed, 64 insertions(+), 16 deletions(-)
-diff --git a/configure.in b/configure.in
-index 126edbf..7199c44 100644
---- a/configure.in
-+++ b/configure.in
-@@ -161,6 +161,8 @@ AC_CHECK_HEADER(resmgr.h,[
- rsm_open_device,[
- AC_DEFINE(HAVE_RESMGR,1,[define if you have the resmgr library])
- LIBS="$LIBS -lresmgr"
-+ RESMGR_LIB="-lresmgr"
-+ AC_SUBST(RESMGR_LIB)
- ]
- )
- ])
-@@ -673,6 +675,7 @@ AC_CONFIG_FILES([Makefile lib/Makefile sanei/Makefile frontend/Makefile \
- japi/Makefile backend/Makefile include/Makefile doc/Makefile \
- po/Makefile testsuite/Makefile tools/Makefile doc/doxygen-sanei.conf])
- AC_CONFIG_FILES([tools/sane-config], [chmod a+x tools/sane-config])
-+AC_CONFIG_FILES([tools/sane-backends.pc])
- AC_OUTPUT
-
- dnl ***********************************************************************
diff --git a/tools/Makefile.am b/tools/Makefile.am
-index 0932e45..b7fa670 100644
+index f52a39a..ab4e1b7 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -7,6 +7,10 @@
+
clean-local:
rm -f $(HOTPLUG)
-diff --git a/tools/sane-backends.pc.in b/tools/sane-backends.pc.in
-new file mode 100644
-index 0000000..fb64e3b
---- /dev/null
-+++ b/tools/sane-backends.pc.in
-@@ -0,0 +1,14 @@
-+prefix=@prefix@
-+exec_prefix=@exec_prefix@
-+libdir=@libdir@
-+includedir=@includedir@
-+
-+pc_libs=@RESMGR_LIB@ @DL_LIBS@ @IEEE1284_LIBS@ @PTHREAD_LIBS@ @JPEG_LIBS@ @USB_LIBS@
-+pc_reqs=libusb
-+
-+Name: SANE Backends
-+Description: Backends for SANE, the universal scanner interface
-+Version: @VERSION@
-+Requires: ${pc_reqs}
-+Libs: -L${libdir} -lsane ${pc_libs}
-+Cflags:
diff --git a/tools/sane-config.in b/tools/sane-config.in
-index 85add1a..c0450d4 100644
+index 22c02b5..a9ce6fb 100644
--- a/tools/sane-config.in
+++ b/tools/sane-config.in
-@@ -18,7 +18,7 @@ pkglibdir="@pkglibdir@"
+@@ -19,7 +19,7 @@ pkglibdir="@pkglibdir@"
includedir="@includedir@"
mandir="@mandir@"
infodir="@infodir@"
localstatedir="@localstatedir@"
sysconfdir="@sysconfdir@"
datarootdir="@datarootdir@"
-@@ -32,6 +32,30 @@ srcdir="@srcdir@"
+@@ -33,6 +33,30 @@ srcdir="@srcdir@"
top_srcdir="@top_srcdir@"
cflags=
usage ()
{
echo "Usage: " 1>&2
-@@ -85,26 +109,38 @@ if test $# -gt 0; then
+@@ -60,7 +84,7 @@ if test $# -gt 0; then
+ if test $# -eq 1; then
+ usage
+ elif test $# -eq 2; then
+- case $2 in
++ case $2 in
+ --cflags)
+ echo "Usage: $0 --cflags"
+ echo " Print C compiler flags for compiling code that uses SANE."
+@@ -86,26 +110,38 @@ if test $# -gt 0; then
;;
--ldflags)
- if test -z "$LINKER_RPATH"; then
-- echo "-L${libdir}"
+- echo "-L${libdir} @LDFLAGS@"
+ if test "x$use_pkgconfig" = "x0"; then
+ if test -z "$LINKER_RPATH"; then
-+ echo "-L${libdir}"
++ echo "-L${libdir} @LDFLAGS@"
+ else
-+ echo "-L${libdir} ${LINKER_RPATH}${libdir}"
++ echo "-L${libdir} @LDFLAGS@ ${LINKER_RPATH}${libdir}"
+ fi
else
-- echo "-L${libdir} ${LINKER_RPATH}${libdir}"
+- echo "-L${libdir} @LDFLAGS@ ${LINKER_RPATH}${libdir}"
+ pkg-config --libs-only-L "$pkgconfig_package"
fi
;;
--- /dev/null
+From ba900ddc747cb89c2600c60a1391862e918541d2 Mon Sep 17 00:00:00 2001
+From: Nils Philippsen <nils@redhat.com>
+Date: Wed, 5 May 2010 11:49:10 +0200
+Subject: [PATCH] patch: udev
+
+Squashed commit of the following:
+
+commit eecfce287372abf2b336f0d6870611445170645b
+Author: Nils Philippsen <nils@redhat.com>
+Date: Wed May 5 11:14:59 2010 +0200
+
+ adapt generated udev rules for Fedora
+---
+ tools/sane-desc.c | 14 +++++++-------
+ 1 files changed, 7 insertions(+), 7 deletions(-)
+
+diff --git a/tools/sane-desc.c b/tools/sane-desc.c
+index 658555e..0b24e3b 100644
+--- a/tools/sane-desc.c
++++ b/tools/sane-desc.c
+@@ -56,9 +56,9 @@
+ #define COLOR_NEW "\"#F00000\""
+ #define COLOR_UNKNOWN "\"#000000\""
+
+-#define DEVMODE "0664"
++#define DEVMODE "0644"
+ #define DEVOWNER "root"
+-#define DEVGROUP "scanner"
++#define DEVGROUP "root"
+
+ #ifndef PATH_MAX
+ # define PATH_MAX 1024
+@@ -3525,8 +3525,8 @@ print_udev (void)
+ }
+ }
+ printf ("\n");
+- printf ("ATTRS{idVendor}==\"%s\", ATTRS{idProduct}==\"%s\", MODE=\"%s\", GROUP=\"%s\", ENV{libsane_matched}=\"yes\"\n",
+- usbid->usb_vendor_id + 2, usbid->usb_product_id + 2, DEVMODE, DEVGROUP);
++ printf ("ATTRS{idVendor}==\"%s\", ATTRS{idProduct}==\"%s\", ENV{libsane_matched}=\"yes\"\n",
++ usbid->usb_vendor_id + 2, usbid->usb_product_id + 2);
+ usbid = usbid->next;
+ }
+
+@@ -3538,7 +3538,7 @@ print_udev (void)
+ printf ("SUBSYSTEMS!=\"scsi\", GOTO=\"libsane_scsi_rules_end\"\n\n");
+ printf ("LABEL=\"libsane_scsi_rules_begin\"\n");
+ printf ("# Generic: SCSI device type 6 indicates a scanner\n");
+- printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"6\", MODE=\"%s\", GROUP=\"%s\"\n", DEVMODE, DEVGROUP);
++ printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"6\", ENV{libsane_matched}=\"yes\"\n");
+ printf ("# Some scanners advertise themselves as SCSI device type 3\n");
+
+ while (scsiid)
+@@ -3571,8 +3571,8 @@ print_udev (void)
+ }
+ }
+ printf ("\n");
+- printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"3\", ATTRS{vendor}==\"%s\", ATTRS{model}==\"%s\", MODE=\"%s\", GROUP=\"%s\"\n",
+- scsiid->scsi_vendor_id, scsiid->scsi_product_id, DEVMODE, DEVGROUP);
++ printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"3\", ATTRS{vendor}==\"%s\", ATTRS{model}==\"%s\", ENV{libsane_matched}=\"yes\"\n",
++ scsiid->scsi_vendor_id, scsiid->scsi_product_id);
+ scsiid = scsiid->next;
+ }
+ printf ("LABEL=\"libsane_scsi_rules_end\"\n\n");
+--
+1.6.6.1
+
include $(PKGROOT)/Include
PKG_NAME = sane
-PKG_VER = 1.0.20
+PKG_VER = 1.0.21
PKG_REL = 0
PKG_MAINTAINER =