Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 328149 - media-gfx/simple-scan needs to depend on >=media-gfx/sane-backends-1.0.20
Summary: media-gfx/simple-scan needs to depend on >=media-gfx/sane-backends-1.0.20
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Markos Chandras (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-13 19:31 UTC by René 'Necoro' Neumann
Modified: 2010-08-03 19:32 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description René 'Necoro' Neumann 2010-07-13 19:31:02 UTC
I have installed the stable sane-backends-1.0.19-r3. With them, installing simple-scan fails with the following error:

[snap]
>>> Compiling source in /var/tmp/portage/media-gfx/simple-scan-2.31.1/work/simple-scan-2.31.1 ...
make -j3 
Making all in src
make[1]: Entering directory `/var/tmp/portage/media-gfx/simple-scan-2.31.1/work/simple-scan-2.31.1/src'
  CC     simple_scan-book.o
  CC     simple_scan-book-view.o
  CC     simple_scan-page.o
  CC     simple_scan-page-view.o
  CC     simple_scan-simple-scan.o
  CC     simple_scan-scanner.o
  CC     simple_scan-ui.o
scanner.c: In function 'do_get_option':
scanner.c:1139: error: 'SANE_NAME_PAGE_WIDTH' undeclared (first use in this function)
scanner.c:1139: error: (Each undeclared identifier is reported only once
scanner.c:1139: error: for each function it appears in.)
scanner.c:1139: warning: left-hand operand of comma expression has no effect
scanner.c:1139: warning: left-hand operand of comma expression has no effect
scanner.c:1147: error: 'SANE_NAME_PAGE_HEIGHT' undeclared (first use in this function)
scanner.c:1147: warning: left-hand operand of comma expression has no effect
scanner.c:1147: warning: left-hand operand of comma expression has no effect
make[1]: *** [simple_scan-scanner.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/media-gfx/simple-scan-2.31.1/work/simple-scan-2.31.1/src'
make: *** [all-recursive] Error 1
[/snap]

Using "git blame" on saneopts.h shows, that the missing options were introduced in-between the releases 1.0.19 and 1.0.20 of sane-backends and are thus only included with 1.0.20 and following. Hence simple-scan needs to depend on at least this version.

With sane-backends-1.0.20-r3 the installation of simple-scan succeeds.
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2010-08-03 19:32:27 UTC
Fixed