~ubuntu-branches/ubuntu/lucid/mesa/lucid

« back to all changes in this revision

Viewing changes to debian/libgl1-mesa-swx11.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen, Timo Aaltonen, Robert Hooker
  • Date: 2010-02-19 15:52:12 UTC
  • mfrom: (3.1.10 experimental)
  • Revision ID: james.westby@ubuntu.com-20100219155212-blqov938av7m6exj
Tags: 7.7-3ubuntu1
[ Timo Aaltonen ]
* Merge from Debian experimental.

[ Robert Hooker ]
* Add 100_no_abi_tag.patch: Removes the ABI tag in /usr/lib/libGL.so.1
  which prevented ldconfig from using a libGL from another directory
  at a higher priority than the one in /usr/lib.
* Install libGL alternatives with libgl1-mesa-swx11 as well. (LP: #522048)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
set -e
 
4
 
 
5
THIS_PACKAGE=libgl1-mesa-swx11
 
6
THIS_SCRIPT=postinst
 
7
 
 
8
case "$1" in
 
9
  configure)
 
10
  # Use alternatives to make it easier to switch between Mesa and 3rd party modules
 
11
  update-alternatives --force \
 
12
    --install /etc/ld.so.conf.d/GL.conf gl_conf /usr/lib/mesa/ld.so.conf 500 \
 
13
    --slave /usr/lib/xorg/extra-modules xorg_extra_modules /usr/lib/xorg/x11-extra-modules
 
14
 
 
15
  # ldconfig needs to be run immediately as we're changing /etc/ld.so.conf.d/ with
 
16
  # alternatives.
 
17
  LDCONFIG_NOTRIGGER=y ldconfig
 
18
 
 
19
esac
 
20
 
 
21
#DEBHELPER#
 
22
 
 
23
exit 0
 
24
 
 
25
# vim:set ai et sw=2 ts=2 tw=80:
 
26