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

Re: ${xviddriver:Provides} broken?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Sven,

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.
>>> 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
:



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.

What would you suggest where I should get the abi version from? Should
I rely upon this volatile procedure at all, or should I simply hardcode
it in debian/rules?

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


Regards

Harri
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1lKhUACgkQUTlbRTxpHjd49gCfXD0I9GCIY878j1k2CsrazOMc
VaYAnA7McxquuQSrl499vsCGGjJQe1sP
=8fIy
-----END PGP SIGNATURE-----


Reply to: