[sane-devel] HP 7450C ... Try hpusbscsi - scanlog2

Thomas Frayne tomf@sjpc.org
05 Jul 2003 13:03:50 -0700


On Fri, 2003-07-04 at 15:41, Rene Rebe wrote:
> Hi,
> 
..
> 
> (sorry screen prevents me from attaching in mew ... - so here is the
> patch inlined - I hope you have a good mailer ...)
> 
> Index: avision.c
> ===================================================================
> RCS file: /cvsroot/external/sane/sane-backends/backend/avision.c,v
> retrieving revision 1.21
> diff -u -r1.21 avision.c
> --- avision.c	9 May 2003 01:36:20 -0000	1.21
> +++ avision.c	4 Jul 2003 22:29:44 -0000
> @@ -82,6 +82,9 @@
>                  All the many other beta-tester and debug-log sender ;-)
>     
>     ChangeLog:
> +   2003-06-30: René Rebe
> +         * fixed big-endian issues
> +   
>     2003-05-08: René Rebe
>           * fixed crash when config is missing reported by Franz Bakan
>     
> @@ -473,7 +476,7 @@
>  #endif
>  
>  #define BACKEND_NAME avision
> -#define BACKEND_BUILD 70  /* avision backend BUILD version */
> +#define BACKEND_BUILD 71  /* avision backend BUILD version */
...


I copied the patch into
/home/tom/rh9-downloads/sane-backends-1.0.12/backend/avision.diff
and executed
[tom@localhost gnucashShadow]$ cd
~/rh9-downloads/sane-backends-1.0.12/backend
[tom@localhost backend]$ patch -p0 < ./avision.diff
can't find file to patch at input line 8
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: avision.c
|===================================================================
|RCS file: /cvsroot/external/sane/sane-backends/backend/avision.c,v
|retrieving revision 1.21
|diff -u -r1.21 avision.c
|--- avision.c   9 May 2003 01:36:20 -0000       1.21
|+++ avision.c   4 Jul 2003 22:29:44 -0000
--------------------------
File to patch: avision.c
patching file avision.c
patch: **** malformed patch at line 9:                  All the many
other beta-tester and debug-log sender ;-)
 
[tom@localhost backend]$



I have almost no experience with patch.  What went wrong?