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

Bug 523270

Summary: x11-base/xorg-server installs xorg-server.pc file which cannot be used without some dependencies (which are only set as build dependencies in the ebuild)
Product: Gentoo Linux Reporter: Paweł Stankowski <aambitny>
Component: [OLD] ServerAssignee: Gentoo X packagers <x11>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Proposed fix

Description Paweł Stankowski 2014-09-19 22:09:16 UTC
Initially I had a problem when emerging x11-drivers/xf86-video-intel-2.21.15 package:
configure:19378: checking for XORG
configure:19385: $PKG_CONFIG --exists --print-errors "xorg-server >= $required_x
org_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUI
RED_MODULES"
Package scrnsaverproto was not found in the pkg-config search path.
Perhaps you should add the directory containing `scrnsaverproto.pc'
to the PKG_CONFIG_PATH environment variable
Package 'scrnsaverproto', required by 'xorg-server', not found

It appears, that xorg-server.pc file has following text inside:
Requires.private: xproto >= 7.0.22 randrproto >= 1.4.0 renderproto >= 0.11 xextproto >= 7.2.99.901 inputproto >= 2.3 kbproto >= 1.0.3 fontsproto pixman-1 >= 0.27.2 videoproto scrnsaverproto >= 1.1 resourceproto >= 1.2.0 xf86driproto >= 2.1.0 glproto >= 1.4.17 dri >= 7.8.0 dri2proto >= 2.8 dri3proto >= 1.0 presentproto >= 1.0 xineramaproto pciaccess >= 0.12.901

So all of these dependencies should be set in RDEPEND rather than DEPEND list.

I've found that problem on stable (1.15.0) version, but it exists also in the newest ebuild.

Reproducible: Always

Steps to Reproduce:
1. Take gentoo installation with relatively small number of packages emerged
2. install xorg-clean
3. emerge --depclean --with-bdeps=n
4. pkg-config --exists --print-errors "xorg-server"
Actual Results:  
Package scrnsaverproto was not found in the pkg-config search path.
Perhaps you should add the directory containing `scrnsaverproto.pc'
to the PKG_CONFIG_PATH environment variable
Package 'scrnsaverproto', required by 'xorg-server', not found

Expected Results:  
Empty output
Comment 1 Paweł Stankowski 2014-09-19 22:14:15 UTC
Created attachment 385148 [details, diff]
Proposed fix

Dependencies were nearly in alphabetical order, so moved dependencies were reordered to fix some exceptions of alphabetical order.
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-09-21 22:00:19 UTC

*** This bug has been marked as a duplicate of bug 379545 ***