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 11-14-2022, 05:13 PM   #5221
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Original Poster
Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175

Quote:
Originally Posted by gian_d View Post
Hi, another issue is caused by the update of ffmpeg to 5.x version in Blender. The slackbuild for Blender 3.0.1 fails with the support to ffmpeg due the drastic changes in this version. The support to ffmpeg 5 was added in Blender since the version 3.1.0, but this version is not still compatible with Slackware current because it requires Python 3.10.
Then I extrapolated the changes in the source Blender 3.1.0 (ref https://github.com/blender/blender/c...d2d3f81057717a ) to make a patch which adapted them to Blender 3.0.1 sources.
The first version of the patch threw a new error but I was able to fix it just changing the name of a variable declared in a source file versus the original code.

Warning: the build ends successfully and after updating the package Blender starts regularly, but I cannot test the support to ffmpeg 5 in runtime because that's a feature of Blender that I don't use and I have no knowledge on this context. If someone can test in runtime the ffmpeg support of the patched package can help by reporting any runtime errors or confirming the full functionality.

The patch is quite long, just over 1000 lines of code, so I uploaded it in my repository on GitHub. It is available here: https://github.com/giandex/misc/blob...-ffmpeg5.patch

Regards
Hi Giancarlo, could you please ping the mantainer about this? It could be that he uses current too or have the possibility to ack this in any case...
 
Old 11-14-2022, 05:40 PM   #5222
gian_d
Member
 
Registered: Nov 2019
Location: Cagliari, Sardinia (Italy)
Distribution: Slackware
Posts: 72

Rep: Reputation: Disabled
Done :-)
 
Old 11-15-2022, 03:07 AM   #5223
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 915

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Quote:
Originally Posted by gian_d View Post
The patch is quite long, just over 1000 lines of code, so I uploaded it in my repository on GitHub. It is available here: https://github.com/giandex/misc/blob...-ffmpeg5.patch
Thanks @gian_d - that was a mighty effort which seems to work OK here.

I've pushed a change to SBo which applies @gian_d's patch on condition that ffmpeg-5.1 is found, which ensures the SlackBuild is usable on both -stable and -current.

Similarly, for openimageio (required for Blender) I've pushed a change (similar to @gian_d's suggestion elsewhere) to conditionally use ffmpeg 5.1 if found at build time.

To summarize, after next SBo global update, both openimageio & Blender SlackBuilds at SBo will be usable without any change on both -stable & -current.

BTW, my limited test to check the Blender ffmpeg patch was to play a video in the Blender UI. Open File->New->Video Editing; select a video from file chooser on left and drag it to the timeline; then press play button.


chris
 
1 members found this post helpful.
Old 11-15-2022, 03:55 AM   #5224
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Original Poster
Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
Quote:
Originally Posted by chris.willing View Post
Thanks @gian_d - that was a mighty effort which seems to work OK here.

I've pushed a change to SBo which applies @gian_d's patch on condition that ffmpeg-5.1 is found, which ensures the SlackBuild is usable on both -stable and -current.

Similarly, for openimageio (required for Blender) I've pushed a change (similar to @gian_d's suggestion elsewhere) to conditionally use ffmpeg 5.1 if found at build time.

To summarize, after next SBo global update, both openimageio & Blender SlackBuilds at SBo will be usable without any change on both -stable & -current.

BTW, my limited test to check the Blender ffmpeg patch was to play a video in the Blender UI. Open File->New->Video Editing; select a video from file chooser on left and drag it to the timeline; then press play button.


chris
thanks Chris!
 
Old 11-15-2022, 01:53 PM   #5225
gian_d
Member
 
Registered: Nov 2019
Location: Cagliari, Sardinia (Italy)
Distribution: Slackware
Posts: 72

Rep: Reputation: Disabled
Quote:
Originally Posted by chris.willing View Post
BTW, my limited test to check the Blender ffmpeg patch was to play a video in the Blender UI. Open File->New->Video Editing; select a video from file chooser on left and drag it to the timeline; then press play button.


chris
That's a good sign! thanks Chris
 
Old 11-18-2022, 11:17 PM   #5226
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,365

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
I see the smallest error in the ponce SlackBuild for gpac:

https://github.com/Ponce/slackbuilds...pac.SlackBuild

You will see:

Code:
chown -R root.root .
whereas the following is expected:

Code:
chown -R root:root .
Actually on closer examination I see this same error in the 15.0 SBo script...
 
Old 11-19-2022, 12:35 AM   #5227
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Original Poster
Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
Quote:
Originally Posted by andrew.46 View Post
I see the smallest error in the ponce SlackBuild for gpac:

https://github.com/Ponce/slackbuilds...pac.SlackBuild

You will see:

Code:
chown -R root.root .
whereas the following is expected:

Code:
chown -R root:root .
Actually on closer examination I see this same error in the 15.0 SBo script...
it's an old syntax still accepted by gnu chown that I unfortunately started using decades ago: with the new one in coreutils a warning (still not an error) is issued
Code:
2022-02-25  Paul Eggert  <eggert@cs.ucla.edu>

        chown: warn about USER.GROUP
        Suggested by Dan Jacobson (Bug#44770).
        * src/chown.c, src/chroot.c (main):
        Issue warnings if obsolete USER.GROUP notation is present.
let me say that I'm not the only old fart with bad habits: try this command in a SBo sources tree
Code:
grep 'root\.root' */*/*.SlackBuild
 
Old 11-19-2022, 02:57 AM   #5228
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
As an aside, out of laziness I often use a syntax like:
chown root: <file>.

I just realized that this is allowed by "man chown" which documents the GNU version of chown:
Quote:
If a colon but no group name follows the user name, that user is made the owner of the files and the group of the files is changed to that user's login group.
but not by POSIX:
Quote:
If the group portion of the first operand is given, the group ID indicated by it shall be used as the group argument; otherwise, the group ownership shall not be changed.
So from now on I will write:
chown root:root <file>
or:
chown 0:0 <file>
as numeric user and group ID are allowed.
In many cases the GNU utilities provide options not specified by POSIX (which I try to avoid) but here the behavior diverges from the specification...

Last edited by Didier Spaier; 11-19-2022 at 03:17 AM. Reason: Typo fix.
 
2 members found this post helpful.
Old 11-19-2022, 09:45 PM   #5229
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,365

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
Quote:
Originally Posted by ponce View Post
it's an old syntax still accepted by gnu chown that I unfortunately started using decades ago: with the new one in coreutils a warning (still not an error) is issued
I did not know that, thanks .
 
Old 11-28-2022, 11:02 PM   #5230
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,023

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Clamav-1.0.0

Looks like a major change to the code and the SlackBuild no longer works.

Code:
.
.
.
clamav-1.0.0/clambc/bcrun.c
clamav-1.0.0/clambc/CMakeLists.txt
clamav-1.0.0/.gitattributes
tar: /mnt/storage/patches/clamav/clamav-1.0.0-vendor.tar.xz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
The "vendor*" bits now seen to be in the source tree and it is using rust as well.

Code:
.
.
.
-rw-r--r-- jenkins/jenkins   64004 2022-11-23 19:55 clamav-1.0.0/libclamav_rust/.cargo/vendor/serde/src/ser/mod.rs
-rw-r--r-- jenkins/jenkins    5273 2022-11-23 19:55 clamav-1.0.0/libclamav_rust/.cargo/vendor/serde/src/ser/impossible.rs
.
.
 
Old 11-29-2022, 12:57 AM   #5231
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,070

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by 3rensho View Post
Clamav-1.0.0

Looks like a major change to the code and the SlackBuild no longer works.
Your post first surprised me since I had just built version 1.0.0 successfully. I then realised that I had used an older buildscript from Ponce, without lines 120-127.

It might well be that my build misses out some functions due to the old buildscript. If I understand it correctly, the vendor stuff has to do with using databases/signatures other than clamav's own. All I know is that basic functions (upgrading the clamav database, checking files/folders) work as intended.

Last edited by kgha; 11-29-2022 at 12:59 AM.
 
1 members found this post helpful.
Old 11-29-2022, 01:50 AM   #5232
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,023

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Quote:
Originally Posted by kgha View Post
Your post first surprised me since I had just built version 1.0.0 successfully. I then realised that I had used an older buildscript from Ponce, without lines 120-127.

It might well be that my build misses out some functions due to the old buildscript. If I understand it correctly, the vendor stuff has to do with using databases/signatures other than clamav's own. All I know is that basic functions (upgrading the clamav database, checking files/folders) work as intended.
Thanks for noting that. I'll give it a go.
 
Old 11-29-2022, 02:04 AM   #5233
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,023

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Well, in my case the lines 120-127 were not pertinent and I just commented out the line where the clamav-1.0.0-vendor.tar.xz was to be untared. Then it built fine. Thanks for letting me know it can be built.
 
Old 11-29-2022, 04:46 AM   #5234
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,070

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
As already mentioned, it might be that some functions are lost when built without the vendor stuff. However, I compared my package with the .deb and .rpm packages available from clamav.net and couldn't see any obvious differences. Same files. The /sbin/clamonacc file is smaller in the slackware package, but that could be because slackware is systemd-free.
 
Old 11-29-2022, 12:33 PM   #5235
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Original Poster
Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
I'll try to explain: with clamav-0.105.1 the developers introduced rust code in libclamav (libclamav_rust) that, like most of the other rust stuff, needed to download additional sources from the internet at build time: to avoid that (the SBo policy is that SlackBuilds shouldn't download anything at build time) I introduced the *-vendor-* tarball with said sources (generated with "cargo vendor" in the main clamav-0.105.1 sources directory) and forced the build system to look in the "vendor" directory (with the additional dedicated snippet in the SlackBuild).
with the new 1.0.0 version looks like the developers came to sense and included the additional rust sources themselves (in libclamav_rust/.cargo/vendor) telling the build system to use those so the snippet and the *-vendor-* tarball aren't needed anymore (I'll remove them whenever I'll push clamav-1.0.0 on SBo).

thanks for the heads-up but, that said, please, don't use this topic to report updates that apply also to stable... open a new one, thanks!
 
3 members found this post helpful.
  


Reply

Tags
current, sbo, sbopkg, slackrepo



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] Error building gst1-plugins-good 1.4.1 from SBO l0rddarkf0rce Slackware 4 10-06-2014 05:58 PM
[SOLVED] Failure building nvidia-kernel Slackbuild from SBo sysfce2 Slackware 7 07-02-2011 01:10 AM
problems building fontforge from SBo gtludwig Slackware 7 05-12-2010 01:52 PM
Pls help me take my 1st step! verysoon Fedora - Installation 2 12-12-2005 07:49 AM

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

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