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.
06-10-2017, 09:28 AM
#1
Member
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533
Rep:
glew.pc and glewmx.pc wrong libdir value
I just noticed this
Code:
cat /usr/lib64/pkgconfig/glew.pc
Code:
prefix=/usr
exec_prefix=${prefix}
libdir=/tmp/package-glew/usr/lib64
includedir=${prefix}/include
Name: glew
Description: The OpenGL Extension Wrangler library
Version: 1.13.0
Cflags: -I${includedir}
Libs: -L${libdir} -lGLEW
Requires: glu
Note the value of libdir: 'libdir=/tmp/package-glew/usr/lib64'
/usr/lib64/pkgconfig/glewmx.pc
should be edited too
06-10-2017, 10:12 AM
#2
Senior Member
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661
Try this patch
Code:
--- glew.SlackBuild.old 2017-06-10 22:02:03.666487724 +0700
+++ glew.SlackBuild 2017-06-10 22:09:33.997800480 +0700
@@ -24,7 +24,7 @@
PKGNAM=glew
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -74,6 +74,8 @@
fromdos < config/config.guess > $TEMPFILE
cat $TEMPFILE > config/config.guess ; rm -f $TEMPFILE
+sed -i "s|@libdir@|/usr/lib${LIBDIRSUFFIX}|g" glew.pc.in
+
make $NUMJOBS OPT="$SLKCFLAGS" || make OPT="$SLKCFLAGS" || exit 1
make install.all GLEW_DEST=$PKG/usr || exit 1
1 members found this post helpful.
06-10-2017, 10:58 AM
#3
Member
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533
Original Poster
Rep:
Quote:
Originally Posted by
willysr
Try this patch
...
I didn't build the package. It's the one that came with the installation of slackware (14.2 64-bit):
Code:
/var/log/packages/glew-1.13.0-x86_64-1
I just wanted to signal this to the author of the SlackBuild
2 members found this post helpful.
06-10-2017, 11:23 AM
#4
Senior Member
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052
Hello,
willysr's patch works well, and, the patch below (based on
archlinux PKGBUILD ) works too :
Code:
diff -u glew/glew.SlackBuild glew.SlackBuild
--- glew/glew.SlackBuild 2015-11-23 20:32:15.000000000 +0100
+++ glew.SlackBuild 2017-06-10 18:14:57.236205976 +0200
@@ -74,6 +74,8 @@
fromdos < config/config.guess > $TEMPFILE
cat $TEMPFILE > config/config.guess ; rm -f $TEMPFILE
+sed -i '/^.PHONY: .*\.pc$/d' Makefile
+
make $NUMJOBS OPT="$SLKCFLAGS" || make OPT="$SLKCFLAGS" || exit 1
make install.all GLEW_DEST=$PKG/usr || exit 1
Code:
cat /tmp/package-glew/usr/lib64/pkgconfig/glew.pc
prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib64
includedir=${prefix}/include
Name: glew
Description: The OpenGL Extension Wrangler library
Version: 1.13.0
Cflags: -I${includedir}
Libs: -L${libdir} -lGLEW
Requires: glu
06-15-2017, 01:25 AM
#5
Member
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533
Original Poster
Rep:
presence of /tmp/* in pkgconfig/*.pc files
After detecting a wrong value for libdir in glew*.pc, I thought of running
grep to see if there were other files
Code:
$ cd /usr/lib64/pkgconfig
$ grep -l /tmp/ *.pc
QtDesigner.pc
QtDesignerComponents.pc
QtUiTools.pc
Code:
$ grep /tmp/ QtDesigner.pc
Libs.private: -L/tmp/qt-everywhere-opensource-src-4.8.7/lib -lQtScript -L/tmp/qt-everywhere-opensource-src-4.8.7/lib -lQtXml -lQtGui -L/usr/X11R6/lib64 -lQtCore -lpthread
Code:
$ grep /tmp/ QtDesignerComponents.pc
Libs.private: -L/tmp/qt-everywhere-opensource-src-4.8.7/lib -lQtScript -L/tmp/qt-everywhere-opensource-src-4.8.7/lib -lQtXml -lQtGui -L/usr/X11R6/lib64 -lQtCore -lQtDesigner -lpthread
Code:
grep /tmp/ QtUiTools.pc
Libs.private: -L/tmp/qt-everywhere-opensource-src-4.8.7/lib -lQtXml -L/tmp/qt-everywhere-opensource-src-4.8.7/lib -lQtGui -L/usr/X11R6/lib64 -lQtCore -lpthread
1 members found this post helpful.
All times are GMT -5. The time now is 07:14 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