LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 04-25-2024, 09:22 PM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,971

Rep: Reputation: 271Reputation: 271Reputation: 271
Solaar slackbuilds package installs libraries in /lib/


But other Python packages install in /usr/lib64. I had to move Solaar's to get it to run.
 
Old 04-26-2024, 06:27 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,359

Rep: Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333
Where is set in the initial Slackbuild for libs? Does it pass --with-libdir=/usr/lib64?
 
Old 04-27-2024, 02:05 PM   #3
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,971

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by business_kid View Post
Where is set in the initial Slackbuild for libs? Does it pass --with-libdir=/usr/lib64?
I can't see one. Is this my fault? Should I have set something?
 
Old 04-27-2024, 03:32 PM   #4
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 402

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
You could change the Slackbuild as :

Add under OUTPUT=${OUTPUT:-/tmp} line :

if [ "$ARCH" = "i586" ]; then
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
else
LIBDIRSUFFIX=""
fi

Replace :

python3 setup.py install

With :

PYVER=$(python3 --version | cut -d' ' -f2|cut -d'.' -f1-2)
python3 setup.py install --root=$PKG --install-platlib=/usr/lib$LIBDIRSUFFIX/python${PYVER}/site-packages
 
Old 04-27-2024, 06:37 PM   #5
fourtysixandtwo
Member
 
Registered: Jun 2021
Location: Alberta
Distribution: Slackware...mostly
Posts: 321

Rep: Reputation: 215Reputation: 215Reputation: 215
RandomTroll, are you running slackware64-current then? This is a bug that should be reported upstream(already has https://github.com/pwr-Solaar/Solaar/issues/2454). It is normal with the upgrade to python 3.11 that they can be installed to /usr/lib or /usr/lib64, setuptools will decide.

If I was to guess, Solaar is not honoring the python search path for some reason. This is indeed a problem with Solaar. Everything else I've tested so far has no problems with this. -this is wrong, see next post

Code:
# python3 -c "import sys; print('\n'.join(sys.path))"

/usr/lib64/python311.zip
/usr/lib64/python3.11
/usr/lib64/python3.11/lib-dynload
/usr/lib64/python3.11/site-packages
/usr/lib/python3.11/site-packages

# python3 -c "import solaar as i; print(i.__file__,i.__version__)"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'solaar'
Edit: I also tried upgrading to Solaar-1.1.12 which was just released over an hour ago but the problem remains.

Last edited by fourtysixandtwo; 04-27-2024 at 08:31 PM.
 
Old 04-27-2024, 08:30 PM   #6
fourtysixandtwo
Member
 
Registered: Jun 2021
Location: Alberta
Distribution: Slackware...mostly
Posts: 321

Rep: Reputation: 215Reputation: 215Reputation: 215
BrunoLafleur's fix doesn't work either and neither of us looked far enough down in the slackbuild. The confusing part was that this wasn't an issue on 15.0, but due to to difference I mentioned in the previous post about the upgrade to 3.11.

This is the fix that's needed to the SlackBuild and will work with 15.0 as well. I've contacted the maintainer.

Code:
diff --git a/system/Solaar/Solaar.SlackBuild b/system/Solaar/Solaar.SlackBuild
index e7d07704..95a46432 100644
--- a/system/Solaar/Solaar.SlackBuild
+++ b/system/Solaar/Solaar.SlackBuild
@@ -68,7 +68,8 @@ find -L . \
 
 python3 setup.py install --root=$PKG
 
+mkdir $PKG/lib
-mv $PKG/usr/lib $PKG/
+mv $PKG/usr/lib/udev $PKG/lib/
 sed -i 's/#MODE="0660", GROUP="plugdev"/MODE="0660", GROUP="plugdev"/g' $PKG/lib/udev/rules.d/42-logitech-unify-permissions.rules
 
 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
 
1 members found this post helpful.
Old 05-01-2024, 12:08 AM   #7
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,971

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by fourtysixandtwo View Post
RandomTroll, are you running slackware64-current then? This is a bug that should be reported upstream(already has https://github.com/pwr-Solaar/Solaar/issues/2454).
I'm ArthurPeabody.


Quote:
Originally Posted by fourtysixandtwo View Post
This is the fix that's needed to the SlackBuild and will work with 15.0 as well. I've contacted the maintainer.
Thanks.
 
Old 05-01-2024, 12:51 AM   #8
fourtysixandtwo
Member
 
Registered: Jun 2021
Location: Alberta
Distribution: Slackware...mostly
Posts: 321

Rep: Reputation: 215Reputation: 215Reputation: 215
I figured it might be.

Fix will be included in this weeks updates.

https://git.slackbuilds.org/slackbui...b971abe9958214
 
1 members found this post helpful.
  


Reply



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
[SOLVED] Installed Solaar-1.1.9, hte gui will not start. camorri Slackware 13 08-31-2023 08:26 AM
Getting solaar to work with my Logitech devices RandomTroll Linux - Hardware 7 12-28-2020 03:41 PM
[SOLVED] Solaar not working TarFile Slackware 7 01-14-2019 09:30 PM
Logitech keyboard not connecting (Unify software in MS) using Solaar on Ubuntu 14.04 cilbuper Ubuntu 1 10-22-2016 08:34 AM

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

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