LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 03:21 PM   #1
gapan
Member
 
Registered: Feb 2007
Posts: 378

Rep: Reputation: 163Reputation: 163
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 03:22 PM.
 
Old 01-13-2010, 04:15 PM   #2
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 143Reputation: 143
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 04:34 PM.
 
Old 01-13-2010, 04:33 PM   #3
gapan
Member
 
Registered: Feb 2007
Posts: 378

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

Original Poster
Rep: Reputation: 163Reputation: 163
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, 05:02 PM   #5
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,560

Rep: Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355
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, 05:19 PM   #6
gapan
Member
 
Registered: Feb 2007
Posts: 378

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

Rep: Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355
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 05:08 PM
kdenetwork dumps libskypebuttons.so in /usr/lib on x86_64 disturbed1 Slackware 1 11-22-2009 12:02 PM
oops, I stripped /usr/lib and /usr/X11R6/lib ! H_TeXMeX_H Slackware 2 02-08-2007 10:27 PM
audacity unable to locate required lib files present in /usr/lib/ adityavpratap Slackware 4 11-30-2006 07:06 AM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-29-2004 12:33 AM

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

All times are GMT -5. The time now is 10:07 PM.

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