Pleasant Conditional Dep Surprise Day
I needed to check a pdf from work tonight, and didn’t have a pdf viewer installed on my exherbo install. I checked, and someone had written an exheres for epdfview already, but there was a problem when I tried to install it.
$ sudo paludis -i epdfview -p
Building target list...
Building dependency list...
DepList additional requirements not met error:
* In program paludis -i epdfview:
* When performing install action from command line:
* When executing install task:
* When building dependency list:
* When adding PackageDepSpec 'app-text/epdfview':
* When adding package 'app-text/epdfview-0.1.6:0::x11':
* When adding build dependencies as pre dependencies:
* When adding PackageDepSpec 'app-text/poppler[gtk]':
* Error searching for 'app-text/poppler[gtk]': additional requirements are not met
Additional requirements are as follows:
* Flag 'gtk' enabled
I checked poppler, and for some reason I’d only installed it with the jpeg option, so I edited my use.conf to add gtk to poppler’s options, and ran paludis -i epdfview -p again. To my pleasant surprise I saw this:
$ sudo paludis -i epdfview -p
Building target list...
Building dependency list...
These packages will be installed:
* app-text/poppler::x11 [R 0.8.1]
Reasons: *app-text/epdfview-0.1.6:0::x11
-cairo -cjk gtk* jpeg
* app-text/epdfview::x11 [N 0.1.6]
"A lightweight PDF document viewer using Poppler and GTK+ libraries"
-debug nls
Total: 2 packages (1 new, 1 rebuild)
I checked with TPB and it’s a currently a feature, not a bug, so I say yay for progress, yay.
In only slightly related news, paludis version 0.26.2 has been released, so the scripts I posted earlier will work with a non svn build of paludis now, rejoice.