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 01-02-2024, 01:55 PM   #1
rootaccess
Member
 
Registered: Mar 2012
Posts: 311

Rep: Reputation: Disabled
sqg and existing packages


I'm attempting to build obs-studio and already have vlc

Code:
sqg -p obs-studio
produces quite a bit of dependencies but I already have vlc installed. Would this rebuild vlc or is there some way it checks /var/log/packages to know if its already installed or not?
 
Old 01-02-2024, 02:09 PM   #2
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 591

Rep: Reputation: Disabled
The sqg script merely generates the queue files but does not compile anything. For that you would then use "sbopkg -i -k obs-studio" where the "-k" options tells sbopkg to skip the already installed packages.
 
1 members found this post helpful.
Old 01-02-2024, 03:28 PM   #3
rootaccess
Member
 
Registered: Mar 2012
Posts: 311

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Windu View Post
The sqg script merely generates the queue files but does not compile anything. For that you would then use "sbopkg -i -k obs-studio" where the "-k" options tells sbopkg to skip the already installed packages.
Yes I actually generate a queue with -o and load that into sbopkg but totally forgot about using sbopkg on the command line. Thanks for referencing the -k flag to skip.
 
Old 01-02-2024, 08:07 PM   #4
rootaccess
Member
 
Registered: Mar 2012
Posts: 311

Original Poster
Rep: Reputation: Disabled
Just wanted to report back and mention that the -k must not precede the queue name. The queue name must proceed -i so I put -k at the very end.
 
Old 01-02-2024, 08:45 PM   #5
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,670

Rep: Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786
yeah, you should use -k -i obs-studio instead
 
Old 01-02-2024, 09:16 PM   #6
rootaccess
Member
 
Registered: Mar 2012
Posts: 311

Original Poster
Rep: Reputation: Disabled
im building obs-studio on another slackware 15 i got laying around right now because i did my other one sort of manually first. it is currently building quite nicely. just wanted to say this method is a charm. this totally beats out any system i know. you cant do this stuff on debian or redhat systems. to be able to build from source and the fact that slackbuilds have been developed specifically to compile from source onto slackware is something no other system has besides BSD and arch, i believe.

i actually did not generate an output file with -o from sqg but i thought that would work. so instead, i ended up simply doing

Code:
sqg -p obs-studio
ls -t /tmp/sqg > obs-studio
sbopkg -i obs-studio -k
yes its slower to compile from source where there are packages available for deb and rpm but sometimes we want to compile from source to modify stuff or just to be sure no one d**ked with the application that we want to use (some of us do read the source code looking for anything nefarious!). another great thing about slackware is
Code:
rpm2tgz
i've done this for google-chrome. it's great to have many options to get our packages. thank you slackware team.

Last edited by rootaccess; 01-02-2024 at 09:17 PM.
 
Old 01-02-2024, 09:21 PM   #7
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,691

Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
Quote:
Originally Posted by rootaccess View Post
im building obs-studio on another slackware 15 i got laying around right now because i did my other one sort of manually first. it is currently building quite nicely. just wanted to say this method is a charm. this totally beats out any system i know. you cant do this stuff on debian or redhat systems. to be able to build from source and the fact that slackbuilds have been developed specifically to compile from source onto slackware is something no other system has besides BSD and arch, i believe.

i actually did not generate an output file with -o from sqg but i thought that would work. so instead, i ended up simply doing

Code:
sqg -p obs-studio
ls -t /tmp/sqg > obs-studio
sbopkg -i obs-studio -k
yes its slower to compile from source where there are packages available for deb and rpm but sometimes we want to compile from source to modify stuff or just to be sure no one d**ked with the application that we want to use (some of us do read the source code looking for anything nefarious!). another great thing about slackware is
Code:
rpm2tgz
i've done this for google-chrome. it's great to have many options to get our packages. thank you slackware team.
Just in case you don't know, you can speed up your compile by using all your CPU cores. To do this in sbopkg, edit /etc/sbopkg/sbopkg.conf and add the line in red

Code:
DIFF=${DIFF:-diff}
DIFFOPTS=${DIFFOPTS:--u}
RSYNCFLAGS="${RSYNCFLAGS:---verbose --timeout=30}"
WGETFLAGS="${WGETFLAGS:--c --progress=bar:force --timeout=30 --tries=5}"
export MAKEFLAGS="j?"
with ? being the number of CPU cores you have plus one. so on my system its j25.
 
1 members found this post helpful.
Old 01-02-2024, 09:28 PM   #8
rootaccess
Member
 
Registered: Mar 2012
Posts: 311

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Daedra View Post
Just in case you don't know, you can speed up your compile by using all your CPU cores. To do this in sbopkg, edit /etc/sbopkg/sbopkg.conf and add the line in red

Code:
DIFF=${DIFF:-diff}
DIFFOPTS=${DIFFOPTS:--u}
RSYNCFLAGS="${RSYNCFLAGS:---verbose --timeout=30}"
WGETFLAGS="${WGETFLAGS:--c --progress=bar:force --timeout=30 --tries=5}"
export MAKEFLAGS="j?"
with ? being the number of CPU cores you have plus one. so on my system its j25.
thanks. i had wondered why it is so much slower on this machine. its an i5 M560 and my desktop is an i7 8700k but i will definitely make these changes.
 
  


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] /usr/sbin/sqg configuration to use sqg to manage queue files amikoyan Slackware 5 02-24-2022 11:33 AM
Sqg & Sbopkg - build / install only new (not jet installed) packages in a queue joenew Slackware 3 08-30-2021 10:46 AM
sbopkg/sqg vs sbotools? Didier Spaier Slackware 2 11-11-2015 04:39 AM
sqg - sbopkg queuefile generator chess Slackware 22 12-30-2014 03:31 AM

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

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