Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 367103 - net-print/hplip -3.10.9-r1 emerge fails without media-libs/libv4l
Summary: net-print/hplip -3.10.9-r1 emerge fails without media-libs/libv4l
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-13 15:23 UTC by Sal Gonzalez
Modified: 2011-05-23 13:46 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,434.58 KB, text/plain)
2011-05-13 15:23 UTC, Sal Gonzalez
Details
emerge --info =net-print/hplip--3.10.9-r1 (emerge_info_hplip,4.35 KB, text/plain)
2011-05-13 15:24 UTC, Sal Gonzalez
Details
emerge -pqv =net-print/hplip-3.10.9-r1 (emerge_pqv_hplip,212 bytes, text/plain)
2011-05-13 15:24 UTC, Sal Gonzalez
Details
fixed ebuild (hplip-3.10.9-r2.ebuild,7.40 KB, text/plain)
2011-05-13 15:25 UTC, Sal Gonzalez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sal Gonzalez 2011-05-13 15:23:14 UTC
Created attachment 273079 [details]
build.log

emerging current version of hplip fails when linking against -lv4l1:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lv4l1

emerging libv4l fixes the problem, adding it to DEPEND also fixes the issue.
Comment 1 Sal Gonzalez 2011-05-13 15:24:13 UTC
Created attachment 273081 [details]
emerge --info =net-print/hplip--3.10.9-r1
Comment 2 Sal Gonzalez 2011-05-13 15:24:46 UTC
Created attachment 273083 [details]
emerge -pqv =net-print/hplip-3.10.9-r1
Comment 3 Sal Gonzalez 2011-05-13 15:25:18 UTC
Created attachment 273085 [details]
fixed ebuild
Comment 4 Daniel Pielmeier gentoo-dev 2011-05-18 21:29:39 UTC
I can not reproduce this here on x86. Why should a printing driver mess with libv4l at all?
Comment 5 Sal Gonzalez 2011-05-22 15:30:11 UTC
hplip links against libsane.so if USE="scanner".  sane-backends seems to link libsane.so against libv4l.so (if present) even when USE="-v4l".  Unmerging libv4l and running a revdep-rebuild rebuilds sane-backends, and then hplip compiles cleanly.

End result: I forgot to run revdep-rebuild before submitting this bug.  Apologies all around.
Comment 6 Daniel Pielmeier gentoo-dev 2011-05-23 13:46:44 UTC
(In reply to comment #5)
> hplip links against libsane.so if USE="scanner".  sane-backends seems to link
> libsane.so against libv4l.so (if present) even when USE="-v4l".  Unmerging
> libv4l and running a revdep-rebuild rebuilds sane-backends, and then hplip
> compiles cleanly.
> End result: I forgot to run revdep-rebuild before submitting this bug. 
> Apologies all around.

No problem!

This looks more like a bug in sane-backends then and v4l is an automagic dependency otherwise it should not link against libv4l if the v4l use flag is disabled.

It would be good if you open a bug against sane-backends to get this corrected.