[sane-devel] failing make sane-backends-1.0.18; sanei_scsi
question]
Johannes Meixner
jsmeix at suse.de
Tue Jan 23 12:21:47 CET 2007
Hello,
On Jan 22 15:34 Johannes Meixner wrote (shortened):
> I assume you mean the patch
> http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20070119/1f4a7757/sanei_scsi-HZ.bin
> in this mail from you
> http://lists.alioth.debian.org/pipermail/sane-devel/2007-January/018479.html
> -----------------------------------------------------------------------------
> --- sanei/sanei_scsi.c 22 Nov 2005 21:17:20 -0000 1.58
> +++ sanei/sanei_scsi.c 19 Jan 2007 07:10:30 -0000
> @@ -281,6 +281,20 @@ static char lastrcmd[16]; /* hold comman
> # define MAX_DATA (32*1024)
> #endif
>
> +#ifdef SG_SET_TIMEOUT
> +# ifdef _SC_CLK_TCK
> +# define GNU_HZ sysconf(_SC_CLK_TCK)
> +# else
> +# ifdef HZ
> +# define GNU_HZ HZ
> +# else
> +# ifdef CLOCKS_PER_SEC
> +# define GNU_HZ CLOCKS_PER_SEC
> +# endif
> +# endif
> +# endif
> +#endif
> +
> /* default timeout value: 120 seconds */
> static int sane_scsicmd_timeout = 120;
> int sanei_scsi_max_request_size = MAX_DATA;
> @@ -1273,7 +1287,7 @@ sanei_scsi_open (const char *dev, int *f
> disconnect... ;-( */
> {
> int timeout;
> - timeout = sane_scsicmd_timeout * HZ;
> + timeout = sane_scsicmd_timeout * GNU_HZ;
> ioctl (fd, SG_SET_TIMEOUT, &timeout);
> }
> #endif
> -----------------------------------------------------------------------------
>
> sane-backends-1.0.18 builds with this patch for the released
> openSUSE 10.2 and for openSUSE "factory" (i.e. the current
> development version) but at the moment I didn't test older
> Suse Linux versions.
For your information:
sane-backends version 1.0.18 RPMs and SRPMs built with this patch
for the released openSUSE 10.2 and for openSUSE "factory"
for 32-bit Intel compatible (i586) and for 64-bit AMD (x86_64)
are now public available via the openSUSE build service at
http://software.opensuse.org/download/home:/jsmeix/
The packages are
* only for testing
* without any guarantee or warranty
* without any support
As an extreme example, this means that if your complete computer center
crashes because of these packages, it is only your problem.
Nevertheless, we are very interested in your feedback because the more
people test it, the more problems (even hidden problems) are revealed.
To send us feedback or bug reports, please follow the instructions in
http://en.opensuse.org/Submitting_Bug_Reports
and make it obvious which package, which package version, which hardware
architecture and which openSUSE version you are talking about - e.g.:
"Feedback regarding sane-backends-1.0.18-28.1.i586.rpm from
http://software.opensuse.org/download/home:/jsmeix/
for openSUSE factory used on 64-bit AMD hardware."
Ideally provide the "rpm -q --changelog sane-backends | head" output
to make it obvious which exact package release you have.
Kind Regards
Johannes Meixner
--
SUSE LINUX Products GmbH, Maxfeldstrasse 5 Mail: jsmeix at suse.de
90409 Nuernberg, Germany WWW: http://www.suse.de/
More information about the sane-devel
mailing list