LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-08-2015, 03:52 AM   #16
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008

Hello,

On my side, I can't reproduce the issue with 32-bit xsane looking for 64-bit libraries. However, there's an issue in /usr/bin/update-gdk-pixbuf-loaders which prevents gdk-pixbuf 32-bit cache updates.

For instance, running update-gdk-pixbuf-loaders on a slackware multilib updates the 64-bit cache but not the 32-bit :

Code:
$ /usr/bin/update-gdk-pixbuf-loaders --verbose
Updating gdk-pixbuf.loaders for x86_64-slackware-linux:
  /usr/bin/gdk-pixbuf-query-loaders-64 --update-cache
while /usr/bin/update-pango-querymodules updates the 64 and 32-bit pango modules :

Code:
$ /usr/bin/update-pango-querymodules  --verbose
Updating pango.modules for x86_64-slackware-linux:
  /usr/bin/pango-querymodules-64 \
  > /etc/pango/x86_64-slackware-linux/pango.modules
Updating pango.modules for i486-slackware-linux:
  /usr/bin/pango-querymodules-32 \
  > /etc/pango/i486-slackware-linux/pango.modules

The problems is at line #23 in /usr/bin/update-gdk-pixbuf-loaders :
Code:
  21  /usr/bin/gdk-pixbuf-query-loaders-64 --update-cache
  22   # Check for x86_64 multilib:
->23   if ls -d /etc/gtk-2.0/i?86* 1> /dev/null 2> /dev/null ; then
  24     for d in $(ls -d /etc/pango/i?86*); do
  25       mlhost=$(basename $d)
  26       break
  27     done
There's no /etc/gtk-2.0/i?86* directory on slackware multilib since 14.1. Therefore, the script assumes there's no multilib installed, and does not update the gdk-pixbuf 32-bit cache.

On the other hand, the directory /etc/pango/i?86* exists as it is part of the pango-compat32 package :
Code:
$ grep -iR "i486" /var/log/packages/pango-compat32-1.34.1-x86_64-1compat32 
etc/pango/i486-slackware-linux/
etc/pango/i486-slackware-linux/pango.modules
As a (temporary) workaround, I suggest to check for /etc/pango/i?86* instead of /etc/gtk-2.0/i?86*. Here is the patch for that :
Code:
--- /usr/bin/update-gdk-pixbuf-loaders.bak      2015-01-08 09:55:06.519179663 +0100
+++ /usr/bin/update-gdk-pixbuf-loaders  2015-01-08 09:55:24.293180456 +0100
@@ -20,7 +20,7 @@
      fi                                                                                                                                      
      /usr/bin/gdk-pixbuf-query-loaders-64 --update-cache
      # Check for x86_64 multilib:
-     if ls -d /etc/gtk-2.0/i?86* 1> /dev/null 2> /dev/null ; then
+     if ls -d /etc/pango/i?86* 1> /dev/null 2> /dev/null ; then
        for d in $(ls -d /etc/pango/i?86*); do
          mlhost=$(basename $d)
          break
Now, running update-gdk-pixbuf-loaders on a slackware multilib gives:

Code:
$ /usr/bin/update-gdk-pixbuf-loaders --verbose
Updating gdk-pixbuf.loaders for x86_64-slackware-linux:
  /usr/bin/gdk-pixbuf-query-loaders-64 --update-cache
Updating gdk-pixbuf.loaders for i486-slackware-linux:
  /usr/bin/gdk-pixbuf-query-loaders-32 --update-cache
Hope this helps.

--
SeB
 
4 members found this post helpful.
Old 01-08-2015, 07:26 AM   #17
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by phenixia2003 View Post
As a (temporary) workaround, I suggest to check for /etc/pango/i?86* instead of /etc/gtk-2.0/i?86*. Here is the patch for that :
Code:
--- /usr/bin/update-gdk-pixbuf-loaders.bak      2015-01-08 09:55:06.519179663 +0100
+++ /usr/bin/update-gdk-pixbuf-loaders  2015-01-08 09:55:24.293180456 +0100
@@ -20,7 +20,7 @@
      fi                                                                                                                                      
      /usr/bin/gdk-pixbuf-query-loaders-64 --update-cache
      # Check for x86_64 multilib:
-     if ls -d /etc/gtk-2.0/i?86* 1> /dev/null 2> /dev/null ; then
+     if ls -d /etc/pango/i?86* 1> /dev/null 2> /dev/null ; then
        for d in $(ls -d /etc/pango/i?86*); do
          mlhost=$(basename $d)
          break
Now, running update-gdk-pixbuf-loaders on a slackware multilib gives:

Code:
$ /usr/bin/update-gdk-pixbuf-loaders --verbose
Updating gdk-pixbuf.loaders for x86_64-slackware-linux:
  /usr/bin/gdk-pixbuf-query-loaders-64 --update-cache
Updating gdk-pixbuf.loaders for i486-slackware-linux:
  /usr/bin/gdk-pixbuf-query-loaders-32 --update-cache
Hope this helps.

--
SeB
Couldn't you do a check on whether /usr/bin/gdk-pixbuf-query-loaders-32 exists? That file only exists in the 32bit package and effectively keeps the check self-contained within that package rather than relying on another one. That way, determining multilib for gdk-pixbuf is not based on the user having a multilib setup containing pango (even though most users would have both installed since they'd likely use Eric's multilib packages).
 
Old 01-08-2015, 07:47 AM   #18
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Quote:
Originally Posted by bassmadrigal View Post
Couldn't you do a check on whether /usr/bin/gdk-pixbuf-query-loaders-32 exists? That file only exists in the 32bit package and effectively keeps the check self-contained within that package rather than relying on another one. That way, determining multilib for gdk-pixbuf is not based on the user having a multilib setup containing pango (even though most users would have both installed since they'd likely use Eric's multilib packages).
sure :

Code:
--- /usr/bin/update-gdk-pixbuf-loaders.bak      2015-01-08 14:41:25.004142561 +0100
+++ /usr/bin/update-gdk-pixbuf-loaders  2015-01-08 14:45:06.497152444 +0100
@@ -20,18 +20,12 @@
      fi
      /usr/bin/gdk-pixbuf-query-loaders-64 --update-cache
      # Check for x86_64 multilib:
-     if ls -d /etc/gtk-2.0/i?86* 1> /dev/null 2> /dev/null ; then
-       for d in $(ls -d /etc/pango/i?86*); do
-         mlhost=$(basename $d)
-         break
-       done
-       if [ -x /usr/bin/gdk-pixbuf-query-loaders-32 ]; then
-         if [ "$1" = "--verbose" ]; then
-           echo "Updating gdk-pixbuf.loaders for ${mlhost}:"
-           echo "  /usr/bin/gdk-pixbuf-query-loaders-32 --update-cache"
-         fi
-         /usr/bin/gdk-pixbuf-query-loaders-32 --update-cache
+     if [ -x /usr/bin/gdk-pixbuf-query-loaders-32 ]; then
+       if [ "$1" = "--verbose" ]; then
+         echo "Updating gdk-pixbuf.loaders for 32-bit:"
+         echo "  /usr/bin/gdk-pixbuf-query-loaders-32 --update-cache"
        fi
+       /usr/bin/gdk-pixbuf-query-loaders-32 --update-cache
      fi
    else
      if [ "$1" = "--verbose" ]; then
 
5 members found this post helpful.
Old 01-09-2015, 10:00 AM   #19
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Original Poster
Rep: Reputation: Disabled
SOLVED!!

Thank you phenixia so much for providing the solution. This has been haunting me for nearly a month.

Thank you also bassmadrigal and especially Richard Cranium for your persistent attempts to help me out with this.

Brian
 
Old 10-20-2015, 06:01 AM   #20
Pscylo
Member
 
Registered: Mar 2008
Distribution: Slackware 13.37 64bit & 32bit
Posts: 48

Rep: Reputation: 2
Same issue noticed with acrobat reader - fixed using same instructions - felt the need to express thanks.

All the best.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can Wine 64-bit run 32-bit windows apps w/o multilib? arsivci0 Slackware 2 03-31-2014 12:28 PM
[SOLVED] Install the 32 bit version and the 64 bit version, on multilib system. Knightron Slackware 12 12-02-2013 09:23 PM
[SOLVED] If I compile from source on 64 bit system will the compiled program be 64 bit? SharpyWarpy Linux - Software 3 08-14-2012 02:59 PM
[SOLVED] ati driver 32-bit compatibility for Slackware 64-bit multilib? vik Slackware 25 02-16-2010 07:06 PM
[SOLVED] CLFS 64 bit multilib and pure 64 bit pacthes wanted Openumerix Linux From Scratch 1 11-16-2009 12:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration