LinuxQuestions.org
Help answer threads with 0 replies.
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 03-22-2024, 08:03 AM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,967

Rep: Reputation: 271Reputation: 271Reputation: 271
ldd /usr/lib/polkit-1/polkitd returns libmozjs-102.so.0 => not found


Code:
/usr/lib/polkit-1/polkitd
returns
Quote:
libmozjs-102.so.0 => not found
latest polkit package, polkit-123-x86_64-1.txz I never use polkitd, so I don't care
 
Old 03-22-2024, 08:22 AM   #2
Thom1b
Member
 
Registered: Mar 2010
Location: France
Distribution: Slackware
Posts: 484

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Hi,
Do you install mozjs102 package?
 
Old 03-22-2024, 08:22 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,579
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
That's javascript. Polkit uses it for some of its configuration files. But you should have it as part of firefox.
 
Old 03-22-2024, 09:23 AM   #4
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,967

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Whoops! It's my fault. Because upgrade of mozjs packages don't remove old ones, I do it myself. I didn't notice that Slackware has 2 mozjs packages. Sorry. I still think this is a defect of mozjs.
 
Old 03-22-2024, 10:52 AM   #5
Thom1b
Member
 
Registered: Mar 2010
Location: France
Distribution: Slackware
Posts: 484

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Usually when there is a new mozjs$NEWVERSION package, mozjs$OLDVERSION is removed. That's not the case for mozjs102.
 
Old 03-22-2024, 02:33 PM   #6
reddog83
Member
 
Registered: Apr 2018
Distribution: Slackware 15.0/Current
Posts: 443

Rep: Reputation: 229Reputation: 229Reputation: 229
Mozjs115 was built with the library name libmozjs102 i suggest to reinstall mozjs102 and that will fix it cause the correct name for mozjs115 library is libmozjs115

Last edited by reddog83; 03-22-2024 at 02:42 PM.
 
Old 03-22-2024, 03:00 PM   #7
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,508

Rep: Reputation: 8468Reputation: 8468Reputation: 8468Reputation: 8468Reputation: 8468Reputation: 8468Reputation: 8468Reputation: 8468Reputation: 8468Reputation: 8468Reputation: 8468
Quote:
Originally Posted by reddog83 View Post
Mozjs115 was built with the library name libmozjs102 i suggest to reinstall mozjs102 and that will fix it cause the correct name for mozjs115 library is libmozjs115
I don't believe that glitch ever caused a broken symlink. It just caused the first build of mozjs115 to include the same symlinks that were in mozjs102.

But yes, now we are seeing why we didn't just call this one "mozjs".
 
1 members found this post helpful.
Old 03-23-2024, 03:26 AM   #8
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,967

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by Thom1b View Post
Usually when there is a new mozjs$NEWVERSION package, mozjs$OLDVERSION is removed.
That has often not-happened with me, as I have reported in LQ before.

polkit was the only executable or library that objected to the lack of mozjs102. Could it have been built against mozjs115?
 
Old 03-23-2024, 01:25 PM   #9
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 766

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
Quote:
Originally Posted by RandomTroll View Post
polkit was the only executable or library that objected to the lack of mozjs102. Could it have been built against mozjs115?
polkit-124 is the newer version that uses mozjs115. Slackware-current is still using polkit-123 at the moment, which uses the mozjs102 version.

I tried building polkit-124 and it fails on slackware-current due to some flawed logic in the meson.build file where it tries to set the 'sysusers.d' directory but fails on non-systemd installs. The Artix linux guys have a patch that fixes that issue by making that a build option instead: https://gitea.artixlinux.org/package...susers-d.patch

The build succeeds with the patch.

I haven't runtime tested it since I don't have a machine running -current that's up-to-date at the moment, but as it stands, that version doesn't build as-is from upstream and needs some fixing.
 
1 members found this post helpful.
Old 03-23-2024, 11:10 PM   #10
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,967

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by 0XBF View Post
polkit-124 is the newer version that uses mozjs115. Slackware-current is still using polkit-123 at the moment, which uses the mozjs102 version.

I tried building polkit-124...
Thanks. The substance of my question was whether polkit is outdated or are there features of mozjs102 that mozjs115 lacks. It seems the former.
 
Old 03-24-2024, 10:05 AM   #11
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 766

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
In the meanwhile, polkit-123 was switched to build with duktape and mozjs102 has been dropped, making this all moot:
Code:
l/duktape-2.7.0-x86_64-1.txz:  Added.
  Needed by polkit.
l/polkit-123-x86_64-2.txz:  Rebuilt.
  Use duktape instead of mozjs102 as the JavaScript engine.
l/mozjs102-102.15.1esr-x86_64-2.txz:  Removed.
 
1 members found this post helpful.
Old 03-24-2024, 11:36 AM   #12
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,967

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by 0XBF View Post
polkit-123 was switched to build with duktape and mozjs102 has been dropped..
Beat me to it, curse you! I just downloaded the Slack source and built it, found what you reported. Thanks.
 
  


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
LXer: Those Polkit/PolicyKit XML files a pain to view? Polkit Explorer now avaiable... LXer Syndicated Linux News 0 03-31-2013 03:42 PM
LXer: KDE extends Polkit support to polkit-1 LXer Syndicated Linux News 0 12-26-2009 12:00 PM
Ubuntu 5.10 -> 6.06: diversion of /usr/bin/ldd to /usr/bin/ldd.amd64 by ia32-libs HellSpawn Linux - Software 2 06-04-2006 09:18 PM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM
/usr/lib and /usr/local/lib doxxan Slackware 5 06-15-2004 12:58 AM

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

All times are GMT -5. The time now is 09:53 AM.

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