LinuxQuestions.org
Visit Jeremy's Blog.
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 07-16-2012, 03:45 PM   #1
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current
Posts: 745

Rep: Reputation: 64
bug in convertpkg-compat32?


cxxlibs-6.0.17 fails to be converted to a compat32 package for 64bit multilib and it must have something to do with this part in the convertpkg-compat32 script:
Code:
# The cxxlibs need some extra consideration because the libraries in
# /usr/i486-slackware-linux/lib will not be found by Slackware64:
if [ "$PKGNAM" = "cxxlibs" ]; then
  mkdir -p usr/lib  # just in case
  for OLIB in $(find usr/i486-slackware-linux/lib -type f -maxdepth 1) ; do
    cp -a $OLIB usr/lib/
  done
  cat install/doinst.sh | grep '/i486-slackware-linux' > install/doinst.sh.2
  cat install/doinst.sh.2 | sed -e 's#/i486-slackware-linux##g' >> install/doinst.sh
  rm -f install/doinst.sh.2
fi
since using the script on a local version of cxxlibs ends with
Code:
...
find: `usr/i486-slackware-linux': No such file or directory
/usr/sbin/convertpkg-compat32 FAILED at line 238
I am using the latest compat32pkg ver. 1.4.120430. Does anyone have a clue how to fix this?

Last edited by BroX; 07-16-2012 at 03:56 PM. Reason: added cxxlibs version
 
Old 07-17-2012, 03:58 AM   #2
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 291

Rep: Reputation: 166Reputation: 166
Hello,

Quote:
Originally Posted by BroX View Post
cxxlibs-6.0.17 fails to be converted to a compat32 package for 64bit multilib and it must have something to do with [...] convertpkg-compat32 script.
[...]
since using the script on a local version of cxxlibs ends with
Code:
...
find: `usr/i486-slackware-linux': No such file or directory
/usr/sbin/convertpkg-compat32 FAILED at line 238
Same error here but at line 241 with convertpkg-compat32 from compat32-tools-2.1-noarch-11alien.tgz. So, for this version the patch below works :

Code:
--- /usr/sbin/convertpkg-compat32	2011-11-12 00:47:12.000000000 +0100
+++ convertpkg-compat32	2012-07-17 10:16:27.146263155 +0200
@@ -232,12 +232,14 @@
 # /usr/i486-slackware-linux/lib will not be found by Slackware64:
 if [ "$PKGNAM" = "cxxlibs" ]; then
   mkdir -p usr/lib  # just in case
-  for OLIB in $(find usr/i486-slackware-linux/lib -type f -maxdepth 1) ; do
-    cp -a $OLIB usr/lib/
-  done
-  cat install/doinst.sh | grep '/i486-slackware-linux' > install/doinst.sh.2
-  cat install/doinst.sh.2 | sed -e 's#/i486-slackware-linux##g' >> install/doinst.sh
-  rm -f install/doinst.sh.2
+  if [ -e usr/i486-slackware-linux ] ; then
+    for OLIB in $(find usr/i486-slackware-linux/lib -type f -maxdepth 1) ; do
+      cp -a $OLIB usr/lib/
+    done
+    cat install/doinst.sh | grep '/i486-slackware-linux' > install/doinst.sh.2
+    cat install/doinst.sh.2 | sed -e 's#/i486-slackware-linux##g' >> install/doinst.sh
+    rm -f install/doinst.sh.2
+  fi
 fi
In case you don't know how to play with this: Copy and save the text above in~/convertpkg-compat32.patch (or somewhere else), then, as root, apply it as below :
Code:
$ cd /usr/sbin
$ patch -p0<~/convertpkg-compat32.patch
patching file convertpkg-compat32

--
SeB
 
1 members found this post helpful.
Old 07-17-2012, 06:13 AM   #3
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current
Posts: 745

Original Poster
Rep: Reputation: 64
Thanks! Patch works like a charm.
 
  


Reply

Tags
compat32, convertpkg, multilib


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] MULTILIB - convertpkg-compat32 edit of jdk doinst.sh causes error (Slack 64 current) TracyTiger Slackware 5 05-26-2012 09:30 AM
Multi-Lib Compat32 Binaries tpreitzel Slackware 24 01-28-2011 03:21 AM
[SOLVED] compat32-packages for Slackware64 13.1 multilib integrale16 Slackware 4 10-03-2010 01:32 PM
[SOLVED] Upgrade compat32 packages slowpoke Slackware 3 02-18-2010 08:41 PM
Problems with QT compat32 in Slackware64 Daedra Slackware 10 09-09-2009 03:39 PM


All times are GMT -5. The time now is 04:54 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration