I've looked at the source code of nvidia-graphics-drivers.
At around line 300 of debian/rules there is this code:

        # ld.so.conf
        dh_installdirs -p$(PKG_driver) "$(ld_so_conf_dir)"
        echo "$(PKG_libdir)" >  
"$(CURDIR)/debian/$(PKG_driver)$(ld_so_conf_path)"
ifeq ($(DEB_BUILD_ARCH),amd64)
        echo "$(PKG_libdir32)" >>       
$(CURDIR)/debian/$(PKG_driver)$(ld_so_conf_path)
endif
        # empty ld.so.conf for the fake multi-arch alternative
        $(shell touch "$(CURDIR)/debian/$(PKG_driver)$(alt_ld_so_conf_path)")

The "touch" in the last line is probably why the alt_ld.so.conf file exists but 
is empty.
But why make it empty?
Changing these lines to:

        # ld.so.conf
        dh_installdirs -p$(PKG_driver) "$(ld_so_conf_dir)"
        echo "$(PKG_libdir)" >  
"$(CURDIR)/debian/$(PKG_driver)$(ld_so_conf_path)"
ifeq ($(DEB_BUILD_ARCH),amd64)
        # echo "$(PKG_libdir32)" >>     
$(CURDIR)/debian/$(PKG_driver)$(ld_so_conf_path)
        echo "$(PKG_libdir32)" >        
"$(CURDIR)/debian/$(PKG_driver)$(alt_ld_so_conf_path)"
        # echo "$(PKG_libdir)" >>       
"$(CURDIR)/debian/$(PKG_driver)$(alt_ld_so_conf_path)"
endif

would probably fix this bug. (I've commented 2 of the lines in the "if" block 
because I don't know if they are really necessary)
At least, after compiling the package with "debuild", the alt_ld.so.conf file 
inside isn't empty.

Also, in line 122 of file debian/nvidia-current.postinst.in:

        # Deal with multi-arch ugliness until dpkg supports multi-arch:

Doesn't Debian (and dpkg) support multi-arch now?

This bug should have a high importance, as it prevents 32 bits programs (Skype, 
Steam, etc.) from working in 64 bit systems (at least those using the NVIDIA 
drivers).
Sure, there are workarounds, but average users aren't expected to find and 
apply them.

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to nvidia-graphics-drivers in Ubuntu.
https://bugs.launchpad.net/bugs/1181651

Title:
  ldconfig problem with 64-bit nvidia driver packages

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/1181651/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to     : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp

Reply via email to