[sane-devel] Nikon LS50/5000

Ariel Garcia garcia at iwr.fzk.de
Mon Oct 31 08:34:25 UTC 2005


Hi Spiro,

> I implemented the patch, under Gentoo and got this error:
>
> # emerge sane-backends
....
>  * Applying cs2-ls50-full.patch ...
>
>  * Failed Patch: cs2-ls50-full.patch !
>  *  ( /usr/portage/media-gfx/sane-backends/files/cs2-ls50-full.patch )
>  * Include in your bugreport the contents of:
> /var/tmp/portage/sane-backends-1.0.15/temp/cs2-ls50-full.patch-15359.out

I never used gentoo/emerge/portage so i don't know how it works. But do as 
the error output suggests and check the contents 
of /var/tmp/portage/sane-backends-1.0.15/temp/cs2-ls50-full.patch-15359.out
Only this output will tell us what might be wrong.
Anyway, if _patching_ fails, it might be that gentoo expects the patch to 
use paths relative to the base source tree (ie, backends/coolscan2.c)  
instead of what i did which is just diff'ing from inside backends.
(if you want to try, edit the patch and replace 
--- coolscan2-orig.c	2005-10-27 16:17:33.000000000 +0200
+++ coolscan2.c	2005-10-27 16:28:28.000000000 +0200
by
--- backends/coolscan2-orig.c	2005-10-27 16:17:33.000000000 +0200
+++ backends/coolscan2.c	2005-10-27 16:28:28.000000000 +0200
)

At least if you installed sane version is 1.0.16 then you could try 
replacing the libsane-coolscan2.so.1.0.16  file (the only one affected by 
the patch, download link in my previous mail) and you might avoid having 
to patch / compile.

Otherwise, if you want to build from source and emerge still fails go to 
the source folder and
   cd backends
   patch < /tmp/cs2-ls50-full.patch
   cd ..
   make
   cp backends/.libs/libsane-coolscan2.so.1.0.16  /final/install/path/


Cheers, Ariel



More information about the sane-devel mailing list