LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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-13-2010, 02:21 PM   #1
gapan
Member
 
Registered: Feb 2007
Posts: 343

Rep: Reputation: 105Reputation: 105
fbreader.SlackBuild uses /usr/lib in x86_64


I used the fbreader.SlackBuild in a 64bit system to create a package and I got some libraries installed under /usr/lib instead of /usr/lib64. FBReader seems to work fine though, so I'm not sure this is a problem. I guess it could be if some other app looks for those libraries. Just thought I should report it anyway.

I used UI=gtk if it matters.

Last edited by gapan; 01-13-2010 at 02:22 PM.
 
Old 01-13-2010, 03:15 PM   #2
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 518

Rep: Reputation: 133Reputation: 133
Here's a patch, but I haven't tested it yet.
If it works, I'll send it to the maintainer of that SlackBuild.

Code:
--- fbreader.SlackBuild	2009-08-27 16:07:53.000000000 -0600
+++ fbreader.SlackBuild.new	2010-01-13 14:31:53.838728997 -0700
@@ -2,6 +2,7 @@
 
 # Slackware build script for fbreader
 # Written by Audrius Kažukauskas <audrius@neutrino.lt>
+# Modified by Steven Pledger <piratesmack@ymail.com>
 
 PRGNAM=fbreader
 VERSION=0.10.7
@@ -51,6 +52,8 @@
 
 # Add SLKCFLAGS
 sed -i "s|CFLAGS =|CFLAGS = $SLKCFLAGS|" makefiles/arch/desktop.mk
+# Fix lib directory on Slackware64 (hopefully)
+sed -i "s|LDFLAGS =|LDFLAGS = /usr/lib${LIBDIRSUFFIX}|" makefiles/arch/desktop.mk
 
 # Fix all Qt3 related flags (just in case)
 sed -i 's|moc-qt3|moc|' makefiles/arch/desktop.mk
Save it as patch.diff and apply it with:
Code:
patch -p0 < patch.diff

Last edited by piratesmack; 01-13-2010 at 03:34 PM.
 
Old 01-13-2010, 03:33 PM   #3
gapan
Member
 
Registered: Feb 2007
Posts: 343

Original Poster
Rep: Reputation: 105Reputation: 105
Nope. Doesn't work.
 
Old 01-13-2010, 03:56 PM   #4
gapan
Member
 
Registered: Feb 2007
Posts: 343

Original Poster
Rep: Reputation: 105Reputation: 105
Got it. A
Code:
sed -i "s|LIBDIR ?= \$(INSTALLDIR)/lib|LIBDIR ?= \$(INSTALLDIR)/lib${LIBDIRSUFFIX}|" makefiles/config.mk
before make is enough to make it behave.
 
Old 01-13-2010, 04:02 PM   #5
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
No need for a patch even. Assuming INSTALLDIR is a synonym for PREFIX, then this will work:
Code:
make LIBDIR=/usr/lib${LIBDIRSUFFIX}
make install LIBDIR=/usr/lib${LIBDIRSUFFIX}
If INSTALLDIR includes the $PKG directory, then you'd need to do this instead:
Code:
make LIBDIR=/usr/lib${LIBDIRSUFFIX}
make install LIBDIR=$PKG/usr/lib${LIBDIRSUFFIX}
Well, this is untested, of course.
 
Old 01-13-2010, 04:19 PM   #6
gapan
Member
 
Registered: Feb 2007
Posts: 343

Original Poster
Rep: Reputation: 105Reputation: 105
Yep. This one works too.
Code:
make LIBDIR=/usr/lib${LIBDIRSUFFIX}
make install LIBDIR=/usr/lib${LIBDIRSUFFIX}
 
Old 01-13-2010, 04:42 PM   #7
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
Cool; thanks. Please mail the maintainer and CC our mailing list.
 
  


Reply


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
Slackbuild adapted from 12.2 to 13 still drops stuff in /usr/lib,,, is this normal? Alexvader Slackware 10 01-07-2010 04:08 PM
kdenetwork dumps libskypebuttons.so in /usr/lib on x86_64 disturbed1 Slackware 1 11-22-2009 11:02 AM
oops, I stripped /usr/lib and /usr/X11R6/lib ! H_TeXMeX_H Slackware 2 02-08-2007 09:27 PM
audacity unable to locate required lib files present in /usr/lib/ adityavpratap Slackware 4 11-30-2006 06:06 AM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM


All times are GMT -5. The time now is 05:13 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