Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 367103

Summary: net-print/hplip -3.10.9-r1 emerge fails without media-libs/libv4l
Product: Gentoo Linux Reporter: Sal Gonzalez <sgonzalez>
Component: [OLD] LibraryAssignee: Daniel Pielmeier <billie>
Status: RESOLVED INVALID    
Severity: normal CC: calchan, printing, sgonzalez
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info =net-print/hplip--3.10.9-r1
emerge -pqv =net-print/hplip-3.10.9-r1
fixed ebuild

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.