Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-13-2010, 03:21 PM
|
#1
|
Member
Registered: Feb 2007
Posts: 378
Rep:
|
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.
|
|
|
01-13-2010, 04:15 PM
|
#2
|
Member
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519
Rep:
|
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.
|
|
|
01-13-2010, 04:33 PM
|
#3
|
Member
Registered: Feb 2007
Posts: 378
Original Poster
Rep:
|
Nope. Doesn't work.
|
|
|
01-13-2010, 04:56 PM
|
#4
|
Member
Registered: Feb 2007
Posts: 378
Original Poster
Rep:
|
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.
|
|
|
01-13-2010, 05:02 PM
|
#5
|
Slackware Contributor
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,560
|
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.
|
|
|
01-13-2010, 05:19 PM
|
#6
|
Member
Registered: Feb 2007
Posts: 378
Original Poster
Rep:
|
Yep. This one works too.
Code:
make LIBDIR=/usr/lib${LIBDIRSUFFIX}
make install LIBDIR=/usr/lib${LIBDIRSUFFIX}
|
|
|
01-13-2010, 05:42 PM
|
#7
|
Slackware Contributor
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,560
|
Cool; thanks. Please mail the maintainer and CC our mailing list.
|
|
|
All times are GMT -5. The time now is 10:07 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|