LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-12-2019, 04:36 PM   #1
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,365

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
rav1e: clean slackbuild?


There has been a big day for av1 encoding with rav1e putting out a release version and the latest FFmpeg adding a librav1e encoder. I am running both here on -current but a 'clean' slackbuild has escaped me as my experience packaging with cargo is pretty negligible.

Does anybody have a solution to cargo downloading a dozen or so 'crates' (fine on my system but not a technically nice, offline slackbuild) and then building a package for rav1e?

Last edited by andrew.46; 11-12-2019 at 04:39 PM.
 
Old 11-12-2019, 06:57 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by andrew.46 View Post
Does anybody have a solution to cargo downloading a dozen or so 'crates' (fine on my system but not a technically nice, offline slackbuild) and then building a package for rav1e?
I did a quick grep through the SBo repo and there seems to be a few references you can use to deal with a cargo build system.

https://slackbuilds.org/slackbuilds/...cer.SlackBuild
https://slackbuilds.org/slackbuilds/...dor.SlackBuild
https://slackbuilds.org/slackbuilds/...tup.SlackBuild
https://slackbuilds.org/slackbuilds/...col.SlackBuild

Looks like one of the key things is adding the following to the script so it will look in a local directory for the crates rather than online:

Code:
# build offline
# configuration tells cargo to use the configured directory
# for dependencies instead of downloading from crates.io
mkdir .cargo
cat << EOF >> .cargo/config
[source.crates-io]
registry = 'https://github.com/rust-lang/crates.io-index'
replace-with = 'vendored-sources'

[source.vendored-sources]
directory = '$(pwd)/vendor'
EOF
 
2 members found this post helpful.
Old 11-12-2019, 07:54 PM   #3
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,365

Original Poster
Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
OIC, does not look so bad. Mind you rav1e has a mind-altering list of crates to process. Another option for me would be to package these by using 'cargo fetch' first and then creating an archive...

Edit: Needs a double build to also produce headers for FFmpeg and friends. Cargo is not the easiest to massage into a distro-specific package

Last edited by andrew.46; 11-13-2019 at 07:04 PM.
 
  


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
dnf clean all doesn't clean all mrmazda Fedora 3 11-13-2019 05:12 PM
[SOLVED] sbopkg installs "original" SlackBuild to /usr/doc/<pkg>/ instead of "local" SlackBuild drumz Slackware 29 01-20-2018 12:12 AM
Clean $PATH and clean python install iFunction Linux - General 1 10-12-2016 09:09 AM
[Patch and SlackBuild] Grub-2.02~beta2 SlackBuild and Patch. ReaperX7 Slackware 3 01-28-2015 09:30 AM
How would you clean the screen of a monitor?? CragStar General 58 02-06-2002 08:23 PM

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

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