[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ${xviddriver:Provides} broken?



On 2011-02-23 16:39 +0100, Harald Dunkel wrote:

> On 02/22/11 23:29, Sven Joachim wrote:
>> On 2011-02-22 23:08 +0100, Harald Dunkel wrote:
>> 
>>> On 02/22/11 21:29, Sven Joachim wrote:
>>>>
>>>> Are you using xsfbs?  If so, this is probably because the
>>>> /usr/share/xserver-xorg/videoabiver file is gone.
>>>>
>>>>> instead of
>>>>>
>>>>> 	xserver-xorg-video-6.0
>>>>> or
>>>>> 	xserver-xorg-video-8.0
>>>>>
>>>>>
>>>>> How comes? Any helpful comment would be highly appreciated.
>>>>
>>>> You should just provide xserver-xorg-video and not any particular ABI.
                             ^^^^^^^^^^^^^^^^^^  

Sorry, I got confused myself.  That should have read
xserver-driver-video, not xserver-xorg-video.

>>>> In xserver-org-dev 2:1.9.4-1 and later, dh_xsf_substvars will expand
>>>> "${xviddriver:Provides}" accordingly.
>>>>
>>>
>>> I have  xserver-xorg-dev 2:1.9.4-3 installed, so instead of "xserver-xorg-video-"
>>> it should have set "xserver-xorg-video", right?
>> 
>> If you are using dh_xsf_substvars.  But I suspect you don't, and
>> ${xviddriver:Provides} gets expanded by a makefile snippet in your
>> source tree instead which tries to read a non-existent file.
>> 
>
> Yup, you are right, its set in debian/rules:
>
> :
> VIDEOABI = $(shell cat /usr/share/xserver-xorg/videoabiver 2>/dev/null)
> INPUTABI = $(shell cat /usr/share/xserver-xorg/inputabiver 2>/dev/null)
> VIDDRIVER_PROVIDES = xserver-xorg-video-$(VIDEOABI), xorg-driver-video
> INPDRIVER_PROVIDES = xserver-xorg-input-$(INPUTABI), xorg-driver-input
> :
> :
> # This makes sure that the xserver ABI is bumped to match the current one when the
> # packages are built
> .PHONY: serverabi
> serverabi:
> 	echo "xviddriver:Provides=$(VIDDRIVER_PROVIDES)" >> debian/$(PKG_driver).substvars
> 	echo "xinpdriver:Provides=$(INPDRIVER_PROVIDES)" >> debian/$(PKG_driver).substvars

This stuff is rather obsolete with current xorg-server versions.

> Unfortunately xserver-xorg-core version 2:1.9.4-3 explicitly lists
> both xserver-xorg-video and xserver-xorg-video-6 in its "Breaks"
> list, so providing "xserver-xorg-video" instead of the old
> "xserver-xorg-video-6" does not resolve the conflict.

Yes, xserver-driver-video is what you need to provide, and nothing else.

> What would you suggest where I should get the abi version from?

Video drivers do not provide any abi-version at all any more , instead
they depend on ${xviddriver:Depends}, expanded by dh_xsf_substvars.  You
probably don't want to use that for nvidia packages, though; they
usually work with any xserver-xorg-core version that is older than the
NVidia driver.

> Should I rely upon this volatile procedure at all, or should I simply
> hardcode it in debian/rules?

Hardcoding is possible, but the dependencies of xserver-xorg (which
needs xserver-driver-video) might change at some time in the future.

> You mentioned "dh_xsf_substvars", but this is not in debhelper, as it
> seems.

It's in xserver-org-dev (starting from version 2:1.9.4-1), as I
mentioned.

Cheers,
       Sven


Reply to: