LinuxQuestions.org
Review your favorite Linux distribution.
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-01-2024, 10:32 PM   #1
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
rebuilding packages


EDIT : meant to have this in slackwarearm forum, some mod please move this thread there PLEASE!

Quote:
l/libunibreak-6.0-aarch64-1.txz: Upgraded.
Shared library .so-version bump.
this caused some breakage, soma which uses mplayer as in
Quote:
ldd /usr/bin/mplayer | grep -i found
libunibreak.so.5 => not found
so while waiting for things to catch up and I'd really like to get experience doing this

to rebuild mplayer, would it be download
slackware64-current/source/xap/MPlayer/ bits
but use slackwareaarch64-current/source/xap/MPlayer/
slackbuild ?

ffmpeg too it seems

Last edited by glorsplitz; 03-01-2024 at 10:35 PM.
 
Old 03-02-2024, 04:54 AM   #2
jloco
Member
 
Registered: Apr 2016
Location: Detroit, MI
Distribution: Slackware
Posts: 180

Rep: Reputation: 148Reputation: 148
To rebuild packages on arm, you need the 64bit x86 Slackware source tree, and the arm64 source tree and to configure '/usr/share/slackdev/slackdev.config' properly, telling it where to find all the sources. You can also change the global variables in that config file if you so choose to do so.

Once all your paths are configured properly, cd into the offending arm64 package source dir and issue a './arm/build' and if the slackdev.config is setup correctly, it will build your package. NOTE: the scripts are setup to install the needed deps if they aren't found, or fail if it can't find the packages locally. Ensure you have a copy of the package set downloaded as well. It also will remove the package you're building, afterward you'll need to 'installpkg' your new build.
 
2 members found this post helpful.
Old 03-02-2024, 06:26 AM   #3
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,791

Rep: Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469
Quote:
Originally Posted by glorsplitz View Post
Quote:
ldd /usr/bin/mplayer | grep -i found
libunibreak.so.5 => not found
I don't have slackwarearm, but your ldd command does not prove mplayer needs rebuilding. Use 'objdump -p /usr/bin/mplayer|grep NEEDED' to see what libraries mplayer needs. This is with slackware64-current (x86_64):

Code:
$ ldd /usr/bin/mplayer |grep libunibreak
        libunibreak.so.6 => /usr/lib64/libunibreak.so.6 (0x00007fbb6d80b000)
$ objdump -p /usr/bin/mplayer|grep NEEDED|grep libunibreak
$
So, mplayer does not link to libunibreak but one of its dependencies or dependencies of dependencies does.

Quote:
ffmpeg too it seems
That was a third-party ffmpeg which linked to libunibreak. The ffmpeg package included in Slackware did not. (But I don't know about slackwarearm.)

Last edited by Petri Kaukasoina; 03-02-2024 at 06:27 AM.
 
1 members found this post helpful.
Old 03-02-2024, 09:25 AM   #4
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Original Poster
Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
jloco you have Slackware AArch64-current install and have you applied last updates?

I found soma doesn't work as it uses mplayer and something somewhere is not right with mplayer however there doesn't seem to be issue with x86_64 current mplayer or soma.

I'm not as good detective as Petri Kaukasoina to identify which dependencies or dependencies of dependencies might be culprit.

Maybe Slackware AArch64-current just needs to get caught up with x86_64 current.

Last edited by glorsplitz; 03-02-2024 at 09:29 AM.
 
Old 03-02-2024, 09:49 AM   #5
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,543

Rep: Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313
Quote:
Originally Posted by glorsplitz View Post
Maybe Slackware AArch64-current just needs to get caught up with x86_64 current.
Nope. I suspect your machine hasn't applied all of the updates - specifically mplayer.


Code:
ls /var/lib/pkgtools/packages/MPlayer-20240130-aarch64-1

root@honey:~# ldd /usr/bin/mplayer | grep -i found
root@honey:~# ldd /usr/bin/mplayer | grep -i unibr
        libunibreak.so.6 => /usr/lib64/libunibreak.so.6 (0x0000ffff8beb0000)
root@honey:~#

Last edited by drmozes; 03-02-2024 at 09:50 AM.
 
1 members found this post helpful.
Old 03-02-2024, 12:08 PM   #6
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,791

Rep: Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469
You could try the script in the Code block of this post: https://www.linuxquestions.org/quest...8/#post6468523. I don't know if it works on slackwarearm, but it could give a hint of what needs upgrade.
 
Old 03-02-2024, 12:33 PM   #7
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Original Poster
Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
NOT solved but I give up

I'm not sure what's going and I give up.

pbp says
Quote:
6.6.18-armv8 #1 SMP PREEMPT Wed Feb 28 09:52:50 GMT 2024 aarch64 GNU/Linux
-rw-r--r-- 1 root root 1044 Feb 29 19:25 /var/log/packages/libunibreak-6.0-aarch64-1
-rw-r--r-- 1 root root 7413 Feb 1 19:33 /var/log/packages/MPlayer-20240130-aarch64-1
-rw-r--r-- 1 root root 10351 Feb 1 19:38 /var/log/packages/ffmpeg-6.1.1-aarch64-1
ldd /usr/bin/mplayer | grep -i break
libunibreak.so.5 => not found
ldd /usr/bin/ffmpeg | grep -i break
libunibreak.so.5 => not found
rockpro64 says
Quote:
6.6.18-armv8 #1 SMP PREEMPT Wed Feb 28 09:52:50 GMT 2024 aarch64 GNU/Linux
-rw-r--r-- 1 root root 1044 Feb 29 19:37 /var/log/packages/libunibreak-6.0-aarch64-1
-rw-r--r-- 1 root root 7413 Feb 3 22:19 /var/log/packages/MPlayer-20240130-aarch64-1
-rw-r--r-- 1 root root 10351 Feb 3 22:25 /var/log/packages/ffmpeg-6.1.1-aarch64-1
ldd /usr/bin/mplayer | grep -i break
libunibreak.so.6 => /usr/lib64/libunibreak.so.6 (0x0000ffff91450000)
ldd /usr/bin/ffmpeg | grep -i break
libunibreak.so.6 => /usr/lib64/libunibreak.so.6 (0x0000ffff7c560000)

Last edited by glorsplitz; 03-02-2024 at 12:38 PM.
 
Old 03-02-2024, 12:53 PM   #8
reddog83
Member
 
Registered: Apr 2018
Distribution: Slackware 15.0/Current
Posts: 443

Rep: Reputation: 229Reputation: 229Reputation: 229
Ffmpeg needs to be recompiled its looking for the wrong library. Its looking for this one libunibreak.so.5 and you have this one installed libunibreak.so.6
 
Old 03-02-2024, 01:32 PM   #9
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,791

Rep: Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469
So, you can't try what I suggested in post #6?

Neither MPlayer nor ffmpeg link to libunibreak. But, for example, both of them link to libass which links to libunibreak. Is your libass up to date?
 
2 members found this post helpful.
Old 03-02-2024, 01:46 PM   #10
reddog83
Member
 
Registered: Apr 2018
Distribution: Slackware 15.0/Current
Posts: 443

Rep: Reputation: 229Reputation: 229Reputation: 229
Cool

Quote:
Originally Posted by Petri Kaukasoina View Post
So, you can't try what I suggested in post #6?

Neither MPlayer nor ffmpeg link to libunibreak. But, for example, both of them link to libass which links to libunibreak. Is your libass up to date?
Very good point
 
1 members found this post helpful.
Old 03-02-2024, 02:06 PM   #11
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Original Poster
Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
Petri Kaukasoina, thank you for your interest, and yes reddog83, Very good point.

changelog said couple things about libunibreak, like
Quote:
l/libass-0.17.1-aarch64-2.txz: Rebuilt.
Recompiled against libunibreak-6.0.
So I did some more digging.

I did not remember as part of my fooling around trying to get mpv to build/install that libass was part of my attempt.

I had someones packages for mpv blacklisted and libass was one of those packages blacklisted.

Code:
/sbin/upgradepkg --reinstall --install-new libass-0.17.1-aarch64-2.txz
all fixed now and really solved
 
Old 03-02-2024, 06:25 PM   #12
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,543

Rep: Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313
Quote:
Originally Posted by glorsplitz View Post

Code:
/sbin/upgradepkg --reinstall --install-new libass-0.17.1-aarch64-2.txz
all fixed now and really solved
Glad you got it solved! I forgot to check that mplayer wasn't directly linked to libunibreak. There are never broken library links now,as a linked library test is performed on each batch.
 
1 members found this post helpful.
Old 03-02-2024, 08:13 PM   #13
jloco
Member
 
Registered: Apr 2016
Location: Detroit, MI
Distribution: Slackware
Posts: 180

Rep: Reputation: 148Reputation: 148
Quote:
Originally Posted by glorsplitz View Post
I did not remember as part of my fooling around trying to get mpv to build/install that libass was part of my attempt.

I had someones packages for mpv blacklisted and libass was one of those packages blacklisted.
Those packages I had made for you before libass was added to Slackware. Since it’s not part of a real repo yet, you wouldn’t have gotten the updated packages unless you manually downloaded them from my server afterwards. (I’m still working toward a repo, hopefully for 15.1 release.)

I do believe the ones I currently have are fine and I had removed the libass dep from what I have since it’s included in Slackware now. But I haven’t checked them out lately. The latest mpv packages are here.
 
1 members found this post helpful.
Old 03-02-2024, 08:24 PM   #14
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Original Poster
Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
Quote:
Originally Posted by drmozes View Post
There are never broken library links now,as a linked library test is performed on each batch.
good to hear, this is very cool!
 
Old 03-02-2024, 08:28 PM   #15
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Original Poster
Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
jloco, ah, so you're the someone I installed mpv from, good to hear you're still doing mpv, I'll be trying your packages soonest, Thank you!
 
  


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] Slackware 14.2/-current - problem with rebuilding kde-workspace and possibly other packages DarkVision Slackware 8 03-21-2016 01:32 AM
rebuilding a failed portion of a SlackBuilds build, instead of rebuilding everything Geremia Slackware 26 01-21-2015 05:56 PM
Rebuilding packages with -march=native flag (Intel Haswell 4770K) - good idea? Olaus Slackware 7 03-26-2014 07:27 AM
Rebuilding /var/lib/rpm/Packages harris4got Linux - Software 3 10-22-2009 11:17 AM
rebuilding the packages. serikas Slackware 3 02-02-2003 05:27 PM

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

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