Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50043 - An ebuild for Image Scan! (iscan-1.8.1)
Summary: An ebuild for Image Scan! (iscan-1.8.1)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Stefan Briesenick (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2004-05-04 16:42 UTC by James Lee
Modified: 2006-02-10 12:19 UTC (History)
12 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
iscan-1.8.1 ebuild (iscan-1.8.1.tar.bz2,1.27 KB, application/x-bzip)
2004-05-04 16:43 UTC, James Lee
Details
ebuild file (iscan-1.9.0.ebuild,1.41 KB, text/plain)
2004-06-20 12:16 UTC, Felix Kurth
Details
license file (epson-kowa,3.43 KB, text/plain)
2004-06-20 12:17 UTC, Felix Kurth
Details
The sources (iscan-1.9.0-5.redhat.8.0.tar.gz,1.43 MB, application/octet-stream)
2004-06-20 12:20 UTC, Felix Kurth
Details
minor changes to the ebuild (iscan-1.9.0.ebuild,1.59 KB, text/plain)
2004-06-20 13:10 UTC, Felix Kurth
Details
iscan-1.10.0.ebuild (iscan-1.10.0.ebuild,1.58 KB, text/plain)
2004-08-04 08:30 UTC, Stephen Wallace
Details
sources iscan-1.10.0-3.tar.gz (iscan-1.10.0-3.tar.gz,1.38 MB, application/octet-stream)
2004-08-04 08:36 UTC, Stephen Wallace
Details
ebuild.tgz (iscan-1.10.0.tgz,1.84 KB, application/x-tgz)
2004-10-15 01:10 UTC, Felix Kurth
Details
ebuild to solve LDFLAGS issue (iscan_ebuild.tgz,1.96 KB, application/x-tgz)
2004-10-20 11:43 UTC, Felix Kurth
Details
ebuild-1.13 (iscan-1.13.tgz,2.04 KB, application/octet-stream)
2005-01-18 14:58 UTC, Felix Kurth
Details
ebuild for iscan-1.13.1 (iscan-1.13.1.ebuild,2.20 KB, text/plain)
2005-03-25 06:20 UTC, stephan
Details
modified gcc-3.4 patch to match iscan-1.13.1 (iscan-1.13.1-gcc-3.4.patch,1.16 KB, patch)
2005-03-25 06:20 UTC, stephan
Details | Diff
ebuild for iscan-1.14.0 (iscan-1.14.0.tar.gz,2.00 KB, application/x-gzip)
2005-04-23 12:46 UTC, Samuel Robyr
Details
iscan-1.18.0.ebuild (version bump + clean up) (iscan-1.18.0.ebuild,1.01 KB, text/plain)
2006-02-09 15:58 UTC, Christian Becke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Lee 2004-05-04 16:42:03 UTC
Image Scan! (iscan) is the package containing a Epson scanner SANE backend and a frontend from Epson.  It adds support for more Epson models than the backend existing in the sane-backends package (like my CX6400).  I created an ebuild for iscan because there wasn't one in Portage.

This is my first ebuild submission, but not my first ebuild.  I have tested it and it works fine.  Right now, though, it has fetch restrictions on because it the website requires a form to be filled out to download.  I wasn't too sure on its licence either.  Half of it is GPL and the other half is something else.

Anyways, unpack the tarball to the overlay.  emerge iscan.  Add "epkowa" to the top on /etc/sane.d/dll.conf.  Edit /etc/sane.d/epkowa.conf to make sure you have the correct dev in there.

Reproducible: Always
Steps to Reproduce:
Comment 1 James Lee 2004-05-04 16:43:47 UTC
Created attachment 30753 [details]
iscan-1.8.1 ebuild
Comment 2 Xavier Neys (RETIRED) gentoo-dev 2004-05-12 09:01:40 UTC
Thanks for your submission.

You should have a look at the following docs:
http://www.gentoo.org/doc/en/gentoo-howto.xml
http://www.gentoo.org/doc/en/ebuild-submit.xml
http://www.gentoo.org/doc/en/ebuild-mistakes.xml

Posting compressed archived is not handy at all. Please don't.
This post in the forums might help as well
http://forums.gentoo.org/viewtopic.php?t=138862&start=54
I noticed config files would go into /usr/etc without the --sysconfdir=/etc ./configure option

BTW, iscan does a much better job when scanning negatives which explains why anyone would want to use it instead of xsane despite its non-GPL license.
Comment 3 Felix Kurth 2004-06-20 12:15:19 UTC
I made a new ebuild of that programm.
Changes: 
-version bump to 1.9.0
-include correct license
-no fetch restricktions anymore.
-dont overwrite files from sane-backends with older versions.
-provide a solution to make the backend work with xsane and friends.
(see the problems in the forum http://forums.gentoo.org/viewtopic.php?t=138862&start=54)

A new license needs to be installes "epson.kowa". The file is attached.
This licence is propitary, but allows us to redistribute the source.
So please put the tar.gz file on the gentoo mirros.
Comment 4 Felix Kurth 2004-06-20 12:16:20 UTC
Created attachment 33652 [details]
ebuild file
Comment 5 Felix Kurth 2004-06-20 12:17:00 UTC
Created attachment 33653 [details]
license file
Comment 6 Felix Kurth 2004-06-20 12:20:04 UTC
Created attachment 33654 [details]
The sources
Comment 7 Felix Kurth 2004-06-20 13:10:35 UTC
Created attachment 33658 [details]
minor changes to the ebuild

added some more einfos to help the user.
Comment 8 Xavier Neys (RETIRED) gentoo-dev 2004-06-21 02:09:11 UTC
1.9.0 with ebuild from Felix worked for me with an Epson 1640SU Photo.
Comment 9 glen 2004-07-01 13:13:38 UTC
Just tested 1.9.0 on my epson 2450 using the ieee1394 interface.
Works fine for both flatbed and negatives.
Comment 10 Stephen Wallace 2004-08-04 08:30:37 UTC
Created attachment 36748 [details]
iscan-1.10.0.ebuild

Ebuild - Bumped version.  Works great with Epson Perfection 1240U Photo. 
Thanks Felix!
Comment 11 Stephen Wallace 2004-08-04 08:36:57 UTC
Created attachment 36749 [details]
sources iscan-1.10.0-3.tar.gz

Sources from Epkowa - Version bumped.
Comment 12 genbug 2004-08-05 10:17:02 UTC
Ebuild for iscan fails to compile.


g++ -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -DPATH_SANE_CONFIG_DIR=/etc/sane.d          -DPATH_SANE_DATA_DIR=/usr/share         -DV_MAJOR=1 -DV_MINOR=0 -march=athlon-xp -O1 -pipe -mtune=athlon-xp  -fomit-frame-pointer -falign-functions=64 cfilebuf.cc
cfilebuf.cc:252: error: expected unqualified-id before ';' token
cfilebuf.cc:253: error: expected unqualified-id before ';' token
make[1]: *** [cfilebuf.o] Error 1
make[1]: Leaving directory `/usr/portage/tmp/portage/iscan-1.10.0/work/iscan-1.10.0/lib'
make: *** [all-recursive] Error 1

!!! ERROR: media-gfx/iscan-1.10.0 failed.
!!! Function src_compile, Line 31, Exitcode 2
!!! (no error message)
Comment 13 genbug 2004-08-05 12:10:43 UTC
subsiquent to last :

earlier attempt was with gcc 3.4.1 

also tested 1.9.0-5 ebuild and got same pb.

changed back to gcc 3.3.3 ; same compile pb.

reverted to gcc 3.4.1 and problem cleared . iscan 1.10.0 ebuild sucessful.


Calculating dependencies ...done!
[ebuild   R   ] media-gfx/iscan-1.10.0  


Unable to say what changed to remove the compile problem.



 
Comment 14 Felix Kurth 2004-08-07 04:59:08 UTC
Version 1.10.0 works fine for me. Thank you for the version bump.
My gcc is 
version 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6)
Comment 15 Chris Smith 2004-09-26 11:32:55 UTC
Nice ebuild, thanks!

Is there some reason that when using iscan I cannot save the file as a tiff? That option is greyed out when I run it.

Thanks.

Chris
Comment 16 Felix Kurth 2004-10-15 01:07:19 UTC
Hi

i've made a patch to make it work with gcc3.4.
Attached, report success -:)
Comment 17 Felix Kurth 2004-10-15 01:10:17 UTC
Created attachment 41844 [details]
ebuild.tgz
Comment 18 Felix Kurth 2004-10-20 11:43:03 UTC
Created attachment 42261 [details]
ebuild to solve LDFLAGS issue

Made a hack around the LDFLAGS="-lstdc++" issue.
So no more need to recompile sane-backends.

PLEASE TEST.
Comment 19 Stephen Wallace 2004-11-28 10:47:11 UTC
iscan-1.10.0-r1.ebuild seems to work OK with my Perfection 1240U.  However when using the epkowa backend with xsane I see no improvement in scan quality over using epson backend.  Iscan gives much better results than xsane is this expected?
Comment 20 Sebastian Roeder 2005-01-18 12:56:20 UTC
There is iscan 1.13 on the the epkowa homepage - might the ebuild be updated?
Comment 21 Felix Kurth 2005-01-18 14:58:51 UTC
Created attachment 48895 [details]
ebuild-1.13

Here is version 1.13.
Changlog:
-version bump
-add 99sane-epkowa to /etc/env.d to ensure libaries are in LD_PATH

Please Test
Comment 22 Sebastian Roeder 2005-01-19 15:18:35 UTC
Thank, works great for me with Espon Perfection 1260 - no more manual libary linking in /usr/lib needed!
Comment 23 stephan 2005-03-25 06:20:07 UTC
Created attachment 54434 [details]
ebuild for iscan-1.13.1 

I modified the ebuild to have a working SRC, cleand it a litte bit and bumped
it to iscan-1.13.1 which work's great for me
Comment 24 stephan 2005-03-25 06:20:42 UTC
Created attachment 54435 [details, diff]
modified gcc-3.4 patch to match iscan-1.13.1
Comment 25 Samuel Robyr 2005-04-23 12:46:21 UTC
Created attachment 57034 [details]
ebuild for iscan-1.14.0

The homepage moved. I modified the ebuild with the new homepage and a working
SRC_URI, and bumped to iscan-1.14.0.
Comment 26 Alexander Naydenko 2005-05-10 06:49:21 UTC
This ebuild works fine for Epson Perfection 4180 Photo. Would be glad to see it in portage.
Comment 27 Alexander Naydenko 2005-05-10 06:51:02 UTC
This ebuild works fine for Epson Perfection 4180 Photo. Would be glad to see it in portage.
Comment 28 Dan 2005-05-30 05:04:00 UTC
This works great.  Can we get this into portage?
Comment 29 R. May 2005-07-03 02:33:09 UTC
Hello,

I tried the ebuild and I get this:
iscan
iscan: error while loading shared libraries: libesmod.so.1: cannot open shared
object file: No such file or directory

but now I found this:
Library Problem: If you try running iscan at this point you will probably get
the error:

	iscan: error while loading shared libraries: libesmod.so.1: 
	cannot open shared object file: No such file or directory

The precompiled, proprietary epkowa driver library (libesint32.so) was compiled
with a bad path to the scanner firmware binary file (esfw32.bin). Source code is
not available so this can't be fixed. However, you can create a link that will
fix the problem. ldconfig updates the library loader cache. You may want to make
sure that the /etc/ld.so.conf file contains an entry for /usr/local/lib.

	cd /usr/share
	ln -s /usr/local/share/iscan iscan
	ldconfig
on:http://www.michaelminn.com/?linux/peripherals.html

but it will also not work

Regards Roland
Comment 30 R. May 2005-07-03 02:45:23 UTC
Again some notes

the ./configure script will make this:

Configuration: /usr/local/etc
Libraries:     /usr/local/lib
Binaries:      /usr/local/bin and /usr/local/sbin
Manpages:      /usr/local/man

but the ebuild will install to:

locate libesmod.so.1
/usr/lib/epkowa/libesmod.so.1
/usr/lib/epkowa/libesmod.so.1.1.0
Comment 31 fctk86 2005-07-12 09:57:20 UTC
there's a typo:
* Then edit "/etc/sane.d/epkowa.conf" to suite yuer needs.

yuer-->your
Comment 32 Gary Young 2005-11-27 00:45:16 UTC
(In reply to comment #0)
The ebuild that's now in portage downloads the version of iscan that compiles on
gcc 3.4 and up. It fails to compile on my gcc 3.3.6 system.

It got iscan to compile by making an overlay with an exact copy of the ebuild,
except for the name of the file to be downloaded (simply remove "c2" from the
filename to get the version that compiles on <3.4).
Comment 33 Gary Young 2005-12-05 10:57:38 UTC
I made comment #32 about the portage ebuild not compiling on gcc 3.6.6. I've
since upgraded to gcc 3.4.4 and the official ebuild does compile. However, there
is another bug.

Like some recent versions of sane-backends, the iscan backend doesn't work
correctly with multifunction devices. For instance, the scanner portion of my
scanner/printer/memory-card-reader won't be recognized by iscan unless I kill
the modules usblp and usb-storage.

The problem can be fixed by applying one of the sane-backends patches:
kernel2.6.13usb-problem.patch.
Comment 34 Marcelo Goes (RETIRED) gentoo-dev 2006-01-14 14:13:37 UTC
*iscan-1.17.0 (24 Nov 2005)

  24 Nov 2005; Stefan Briesenick <sbriesen@gentoo.org> +metadata.xml,
  +iscan-1.17.0.ebuild:
  initial commit.
Comment 35 Christian Becke 2006-02-09 15:58:09 UTC
Created attachment 79380 [details]
iscan-1.18.0.ebuild (version bump + clean up)

Ebuild for iscan-1.18.0
Changes:
 * SRC_URI is now derived from PV instead of being hardcoded
 * use econf and remove obsolete configure options
 * use emake
 * added messages to "die" calls
Comment 36 Stefan Briesenick (RETIRED) gentoo-dev 2006-02-09 16:13:49 UTC
the problem with gcc 3.3 is known... ;-)

you need different binary-only object-files. There's another tarball for this purpose. I had no time to integrate this when I commited the first ebuild. Perhaps we can fix this somehow.
Comment 37 Stefan Briesenick (RETIRED) gentoo-dev 2006-02-09 16:24:28 UTC
@Christian Becke (comment 35): I don't take this ebuild, because it lacks many options the ebuild already in portage has. btw: there're also some odd things in it:

MY_VDIR="v$(echo ${PV} | sed -e 's/\.//g')"

no external commands in global scope please!

MY_VDIR="${PV//./}"

is much better.

I try to fix the gcc 3.3 vs 3.4 issue and then I commit a version bump.
Comment 38 Christian Becke 2006-02-09 16:55:02 UTC
(In reply to comment #37)
> @Christian Becke (comment 35): I don't take this ebuild, because it lacks many
> options the ebuild already in portage has.

Oh, of course! Don't know how I could miss the ebuild in the official portage tree - sorry. Next time I'll check bugzilla AND the official portage tree... 

> I try to fix the gcc 3.3 vs 3.4 issue and then I commit a version bump.

Great, thanks!
Comment 39 Stefan Briesenick (RETIRED) gentoo-dev 2006-02-10 12:19:44 UTC
iscan-1.18.0 is in portage now. please test!