slackware64 /usr/lib /usr/lib64 question
Having a PEBKAC issue here :)
I've never used a 64bit system set up this way. They've been pure 64bit with everything simply in /usr/lib with no /usr/lib64. IIRC That's how Arch used to do it. My question is, should I continue patching all these makefiles that have libdir=/usr/lib hard coded to keep a sane system? What are the side effects of not putting all the libs in /usr/lib64? These are for the sources that don't use or follow --libdir= and LDFLAGS="-L/usr/lib64". Can I rm -rf /usr/lib then ln -s /usr/lib64 /usr/lib and still have things work. There are a couple of files in /usr/lib now {codecs/ crda/ libsyslinux.a rpm/ sendmail siconv/ syslinux/ terminfo/ trn/} which came from a stock install. There are not any 32bit programs I need to run. If I did, that's what KVM is for :) PS. I want some Slackware64 Swag!!!!! hint hint open a zazzle shop |
Don't go symlinking to /lib64 and /usr/lib64. If arch is using /lib and /usr/lib they are simply doing things 'wrong' -at least according to the FSHS standards.
If you dn't need 32-bit programs you should be all set to use Slackware64 without problems with a fresh install. |
Quote:
My main concern is those apps that want to put their shared objects in /usr/lib rather than /usr/lib64. What the consequence will be if I miss one, and the $.so's are placed in /usr/lib. Would this negatively effect the system? |
I don't know of any program that cannot be made to install libs to /usr/lib64, every one I've tried I've gotten to install properly. So if you have a problem with a particular one just say which one.
|
Quote:
Off the top of my head - there are a dozen or so others I've come across so far as well. a52dec (requires make.am and configure to be patched) aften (requires sed-foo on cmake_install.cmake ignores -DLIB_SUFFIX=) OpenAL (same as aften) libebml (requires sed-foo on make/linux/Makefile) libmatroska (same as libebml) SDL-Perl and soundtouch 1.4.0 (1.3.1 is ok) have other issues. |
Quote:
Look at the slackware64 packages I uploaded for a52dec, libebml and libmatroska for instance: http://www.slackware.com/~alien/slac...s/a52dec/pkg64 http://www.slackware.com/~alien/slac.../libebml/pkg64 http://www.slackware.com/~alien/slac...matroska/pkg64 All it needs is that you specify /usr/lib64 as the libdir when you run "configure". Look at the accompanying SlackBuild scripts. Eric |
Quote:
libdir=$PKG/usr/lib${LIBDIRSUFFIX} :) That's what I needed for libembl and libmatroska They were not in my SlackBuild. Tried passing libdir=/usr/lib${LIBDIRSUFFIX} <-left off the $PKG Thanks. For a52dec we'll leave it as a PEBKAC issue :redface: Did I do something strange with aften and OpenAL as well? Has anyone looked at SDL-gfx and SDL-perl. |
Here's updated patches for soundtouch which should fix the 64-bit issues:
soundtouch-1.4.0-mmx-sse-compile-fix.patch Code:
diff -up soundtouch/source/SoundTouch/Makefile.in~ soundtouch/source/SoundTouch/Makefile.in Code:
--- ./include/STTypes.h.00 2009-05-23 10:28:43.000000000 +0200 Code:
--- ./source/SoundTouch/Makefile.am.01 2009-05-23 10:34:54.000000000 +0200 soundtouch-libversion.diff Code:
--- ./source/SoundTouch/Makefile.am.00 2009-01-25 17:32:53.000000000 +0100 Code:
--- ./source/Makefile.in.02 2009-01-25 17:33:10.000000000 +0100 |
Thanks for the patches!!!
Worked a treat. This is what I had to use on aften and OpenAL Code:
Code:
Running Mkbootstrap for SDL_perl () Checked the SlackBuild, -fPIC is in the CFLAGS. I redownloaded the source file, and everything works fine. Strange :scratch: |
Thanks for the tip on the cmake_install.cmake changes needed. I was just writing a bit of new code for handling these files in src2pkg the other day and this looks like it should be looked at.
Can you show a link to the SDL_perl archive? And what version of SDL_gfx is that? |
Quote:
Code:
-DLIB_SUFFIX=${LIBDIRSUFFIX} |
Quote:
|
You can also do:
Code:
cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=/usr/lib64 . |
@H_TeXMeX_H
Where was your comment yesterday! I spent forever trying to find out what parameter it was... But then had I known Cmake better, I would have just read the CMakeLists.txt and found it right way... Honestly... LIB_INSTALL_DIR really should have been standardized to look like the other cmake parameters... like LIBRARY_INSTALL_DIRECTORY... or just be made a fully standard cmake parameter and append CMAKE_ to it. I did find LIBRARY_OUTPUT_DIRECTORY but that doesn't appear to be used as expected. |
Quote:
On some cmake apps it does, some need -DLIB_SUFFIX=64 like Alien Bob pointed out. Quote:
Frozen bubble works, so now the Girlfriend is happy :) Needed LIBDIR=/usr/lib64 after make install. That still seems goofy to me, like libembl and libmatroska which also needed libdir=$PKG/usr/lib64 on the same line as make install. |
All times are GMT -5. The time now is 11:27 PM. |