~ubuntu-branches/ubuntu/precise/nvidia-graphics-drivers-304-updates/precise-proposed

« back to all changes in this revision

Viewing changes to debian/nvidia-304-updates.postinst

  • Committer: Package Import Robot
  • Author(s): Alberto Milone, Alberto Milone, Andy Dick
  • Date: 2013-12-11 14:02:39 UTC
  • mfrom: (3.1.2)
  • Revision ID: package-import@ubuntu.com-20131211140239-gv66pvamc35hcb3b
Tags: 304.116-0ubuntu0.0.1
* New upstream release (LP: #1259237):
  - Improved compatibility with recent Linux kernels.
  - Updated the NVIDIA OpenGL driver to write temporary files to
    $TMPDIR if it is set, instead of unconditionally writing to
    /tmp (LP: #1212425).
  - Updated a fallback of writing temporary files to $HOME/.nvidia
    to use $HOME/.nv instead, as the latter path is already used
    for other NVIDIA driver related files.

[ Alberto Milone ]
* debian/substvars:
  - Add support for lts flavours up to saucy.
* debian/templates/control.in:
  - Depend on lib32gcc1 [amd64], libc6-i386 [amd64]
    (LP: #1236945).
  - Drop lpia.
* debian/templates/dkms.conf.in:
  - Drop patche for Linux 3.11.
* debian/rules:
  - Blacklist the opposite flavour.
  - Blacklist kernel modules from the other flavours.
* debian/templates/nvidia-graphics-drivers.dirs.in,
  debian/templates/nvidia-graphics-drivers.install.in,
  debian/templates/nvidia-graphics-drivers.override.in,
  debian/templates/nvidia-graphics-drivers.postinst.in,
  debian/nvidia-autostart.desktop.in,
  debian/ubuntu-nvidia-settings.desktop.in:
  - Remove nvidia-settings icon, desktop file, and autostart file.
    This is all provided by nvidia-settings now.
* debian/templates/nvidia-graphics-drivers.prerm.in,
  debian/templates/nvidia-graphics-drivers.install.in,
  debian/templates/nvidia-graphics-drivers.postinst.in:
  - Disable glamoregl.
  - Do not update gmenucache any more.

[ Andy Dick ]
* debian/templates/nvidia-graphics-drivers.preinst.in:
  - Attempt uninstallation of any existing .run file
    installation before installing Debian-packaged
    driver.
* debian/templates/nvidia-graphics-drivers.postinst.in:
  - Add libcuda.so symlinks in /usr/lib*.
* debian/rules:
  - Conditionalize the copying of Makefile.kbuild to
    Makefile. This adds support for newer drivers,
    while maintaining support for packaging older drivers.
  - Avoid extracting unnecessary .run files. The 64-bit
    package needs both the 32- and 64-bit .run files, but
    the 32-bit package does not. Change the unpackaging
    rules to unpack only the native package by default,
    and only unpack the 32-bit x86 package on amd64.
    Also, instead of changing the .run file permissions
    to ensure that the .run file is executable, just call
    it as an argument to sh.
  - Don't assume that extracted files are writable.
    The package contents extracted from some .run file
    installers may not have write permissions enabled.
    To work around this, move files instead of copying
    them to a temporary location before running sed
    scripts, and add force flags to applicable commands.

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
            --install /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf x86_64-linux-gnu_gl_conf /usr/lib/nvidia-304-updates/ld.so.conf 9702 \
131
131
            --slave /usr/share/man/man1/nvidia-xconfig.1.gz x86_64-linux-gnu_man_nvidiaxconfig.gz /usr/share/man/man1/alt-nvidia-304-updates-xconfig.1.gz \
132
132
            --slave /usr/share/man/man1/nvidia-smi.1.gz x86_64-linux-gnu_nvidia-smi.1.gz /usr/share/man/man1/alt-nvidia-304-updates-smi.1.gz \
133
 
            --slave /usr/share/applications/ubuntu-nvidia-settings.desktop x86_64-linux-gnu_nvidia_desktop /usr/share/nvidia-304-updates/ubuntu-nvidia-settings.desktop \
134
133
            --slave /usr/bin/nvidia-smi x86_64-linux-gnu_nvidia_smi /usr/lib/nvidia-304-updates/bin/nvidia-smi \
135
134
            --slave /usr/bin/nvidia-xconfig x86_64-linux-gnu_nvidia_xconfig /usr/lib/nvidia-304-updates/bin/nvidia-xconfig \
136
135
            --slave /usr/bin/nvidia-bug-report.sh x86_64-linux-gnu_nvidia_bug_report /usr/lib/nvidia-304-updates/bin/nvidia-bug-report.sh \
137
136
            --slave /usr/lib/XvMCConfig x86_64-linux-gnu_xvmcconfig /usr/lib/nvidia-304-updates/XvMCConfig \
138
 
            --slave /etc/xdg/autostart/nvidia-autostart.desktop x86_64-linux-gnu_nvidia-autostart.desktop /usr/share/nvidia-304-updates/nvidia-autostart.desktop \
139
137
            --slave /etc/OpenCL/vendors/nvidia.icd x86_64-linux-gnu_nvidia.icd /usr/share/nvidia-304-updates/nvidia.icd \
140
138
            --slave /usr/lib/libOpenCL.so x86_64-linux-gnu_libOpenCL.so /usr/lib/nvidia-304-updates/libOpenCL.so \
141
139
            --slave /usr/lib32/libOpenCL.so x86_64-linux-gnu_libOpenCL.so_lib32 /usr/lib32/nvidia-304-updates/libOpenCL.so \
 
140
            --slave /usr/lib/libcuda.so x86_64-linux-gnu_libcuda.so /usr/lib/nvidia-304-updates/libcuda.so \
 
141
            --slave /usr/lib32/libcuda.so x86_64-linux-gnu_libcuda.so_lib32 /usr/lib32/nvidia-304-updates/libcuda.so \
142
142
            --slave /usr/lib/xorg/modules/drivers/nvidia_drv.so x86_64-linux-gnu_nvidia_drv /usr/lib/nvidia-304-updates/xorg/nvidia_drv.so \
143
143
            --slave /etc/modprobe.d/nvidia-graphics-drivers.conf x86_64-linux-gnu_nvidia_modconf /lib/nvidia-304-updates/modprobe.conf \
144
144
            --slave /usr/lib/x86_64-linux-gnu/xorg/extra-modules x86_64-linux-gnu_xorg_extra_modules /usr/lib/nvidia-304-updates/xorg \
153
153
        update-alternatives --force \
154
154
            --install /etc/ld.so.conf.d/i386-linux-gnu_GL.conf i386-linux-gnu_gl_conf /usr/lib/nvidia-304-updates/alt_ld.so.conf 9702
155
155
 
 
156
        # Make sure glamoregl is disabled
 
157
        update-alternatives --force \
 
158
            --install /usr/share/X11/xorg.conf.d/glamoregl.conf glamor_conf \
 
159
            /usr/share/nvidia-304-updates/glamor.conf 600
 
160
 
156
161
        # ldconfig needs to be run immediately as we're changing /etc/ld.so.conf.d/ with
157
162
        # alternatives.
158
163
        LDCONFIG_NOTRIGGER=y ldconfig
159
164
 
160
 
        # Trigger gmenu so that the icons will show up in the menu
161
 
        dpkg-trigger --by-package=$PACKAGE_NAME gmenucache || true
162
 
 
163
165
        CURRENT_KERNEL=$(uname -r)
164
166
        NEWEST_KERNEL=$(get_newest_kernel "$KERNELS")
165
167