← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 616214] [NEW] Should Depend: on appropriate xserver-xorg-video-$ABI

 

Public bug reported:

The nvidia-current package does not depend on any particular server ABI,
allowing it to be installed onto an incompatible X server.

The dependency system for Xorg changed in 1.7.6.901 (in Debian, 1.8 in
Ubuntu).   The X server no longer declares a Breaks: against every
possible ABI it does not support.  Instead, it Provides: a video and
input ABI, and drivers are expected to depend on this ABI.

This was also accompanied by a change in where xserver-xorg-core-dev
stored its dependency information; it's no longer in /usr/share/xserver-
xorg/serverminver.

The relevant fragment from xsfbs.mk is:
# Compute dependencies for drivers
#
VIDEODEP = $(shell cat /usr/share/xserver-xorg/videodrvdep 2>/dev/null)
INPUTDEP = $(shell cat /usr/share/xserver-xorg/xinputdep 2>/dev/null)

# these two can be removed post-squeeze
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

ifeq ($(PACKAGE),)
PACKAGE=$(shell awk '/^Package:/ { print $$2; exit }' < debian/control)
endif

.PHONY: serverabi
serverabi: install
ifeq ($(VIDEODEP),)
        @echo 'error: xserver-xorg-dev >= 1.7.6.901 needs to be installed'
        @exit 1
else
        echo "xviddriver:Depends=$(VIDEODEP)" >> debian/$(PACKAGE).substvars
        echo "xinpdriver:Depends=$(INPUTDEP)" >> debian/$(PACKAGE).substvars
        # the following is there for compatibility...
        echo "xviddriver:Provides=$(VIDDRIVER_PROVIDES)" >> debian/$(PACKAGE).substvars
        echo "xinpdriver:Provides=$(INPDRIVER_PROVIDES)" >> debian/$(PACKAGE).substvars
        echo "xserver:Depends=$(VIDEODEP), $(INPUTDEP)" >> debian/$(PACKAGE).substvars
endif

** Affects: nvidia-graphics-drivers (Ubuntu)
     Importance: Medium
     Assignee: Alberto Milone (albertomilone)
         Status: Confirmed

** Changed in: nvidia-graphics-drivers (Ubuntu)
       Status: New => Confirmed

** Changed in: nvidia-graphics-drivers (Ubuntu)
   Importance: Undecided => Medium

** Changed in: nvidia-graphics-drivers (Ubuntu)
     Assignee: (unassigned) => Alberto Milone (albertomilone)

-- 
Should Depend: on appropriate xserver-xorg-video-$ABI
https://bugs.launchpad.net/bugs/616214
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to nvidia-graphics-drivers in ubuntu.



Follow ups

References