LinuxQuestions.org
Visit Jeremy's Blog.
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 02-23-2022, 02:26 PM   #1
amikoyan
Member
 
Registered: Mar 2021
Distribution: Slackware64 -current
Posts: 318

Rep: Reputation: 171Reputation: 171
/usr/sbin/sqg configuration to use sqg to manage queue files


Here is a snippet of my /usr/sbin/sqg configuration:
Code:
#!/bin/sh

# $Id$

# sqg - sbopkg queuefile generator
# A script designed to generate queuefiles for sbopkg with recursively-listed
# dependencies from the REQUIRES line of the .info files.

# Copyright 2013 Chess Griffin <chess@chessgriffin.com> and
# slakmagik <slakmagik@gmail.com>
# Copyright 2016-2021 Willy Sudiarto Raharjo <willysr@sbopkg.org>

# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
#  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
#  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN
#  NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
#  TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
#  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
#  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
#  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
#  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

### OPTIONAL CONFIGURATION BELOW ###

LOCAL_SBOPKG_CONF=${LOCAL_SBOPKG_CONF:-/root/.sbopkg.conf}
SBOPKG_CONF=${SBOPKG_CONF:-/etc/sbopkg/sbopkg.conf}

### NO CHANGES SHOULD BE NECESSARY BELOW THIS LINE ###
I want to use sqg to manage queuefiles e.g. issuing the command sqg -p "pkg1 pkg2" to generate queue file for pkg1 and pkg2.

Do I need to add
Code:
REPO_ROOT=${REPO_ROOT:-/var/lib/sbopkg}
REPO_NAME=${REPO_NAME:-master}
REPO_BRANCH=${REPO_BRANCH:-SBo}
SKIP_EMPTY=${SKIP_EMPTY:-NO}
in the optional configuration section?
 
Old 02-23-2022, 03:46 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,146
Blog Entries: 6

Rep: Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834
You are probably going to have to read the docs.
https://docs.slackware.com/howtos:sl...es_with_sbopkg
https://github.com/chessgriffin/sqg/blob/master/sqg
https://raw.githubusercontent.com/sb...ools/sqg8.html
 
Old 02-23-2022, 07:36 PM   #3
ethelack
Member
 
Registered: Mar 2021
Location: New Zealand
Distribution: Slackware
Posts: 81

Rep: Reputation: Disabled
Yes looks good just make sure sqg's REPO_NAME and REPO_BRANCH are the same as those you have defined in /etc/sbopkg/sbopkg.conf. Good idea using skip_empty:-no as that adds a package to the queue even if it has no dependencies.
 
Old 02-24-2022, 01:55 AM   #4
amikoyan
Member
 
Registered: Mar 2021
Distribution: Slackware64 -current
Posts: 318

Original Poster
Rep: Reputation: 171Reputation: 171
Quote:
Originally Posted by teckk View Post
You are probably going to have to read the docs.
https://github.com/chessgriffin/sqg/blob/master/sqg
This links to this file:https://github.com/chessgriffin/sqg/blob/master/sqg

However, the file on my system is this one: https://github.com/sbopkg/sbopkg/blo...c/usr/sbin/sqgfrom willysr, which is significantly different.

Is it okay to add

Quote:
REPO_ROOT=${REPO_ROOT:-/var/lib/sbopkg}
REPO_NAME=${REPO_NAME:-master}
REPO_BRANCH=${REPO_BRANCH:-SBo}
SKIP_EMPTY=${SKIP_EMPTY:-NO}
to the (newer) 'willysr' /usr/sbin/sqg currently on my system?

Or do I need to completely replace my /usr/sbin/sqg with the one from Chess Griffin?
 
1 members found this post helpful.
Old 02-24-2022, 02:07 AM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,118

Rep: Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192
it's ok to use the unmodified last one, the one from this package (that I seem to understand you are already using): it should already source the sbopkg configuration files (the sanity_checks() function in /usr/libexec/sbopkg/sqg/functions), as you pasted in your first post
Code:
LOCAL_SBOPKG_CONF=${LOCAL_SBOPKG_CONF:-/root/.sbopkg.conf}
SBOPKG_CONF=${SBOPKG_CONF:-/etc/sbopkg/sbopkg.conf}
and use the variables defined there, so if you already have configured the correct repository in those files you shouldn't need to add any additional configuration in /usr/sbin/sqg.

Last edited by ponce; 02-24-2022 at 02:49 AM.
 
2 members found this post helpful.
Old 02-24-2022, 11:33 AM   #6
amikoyan
Member
 
Registered: Mar 2021
Distribution: Slackware64 -current
Posts: 318

Original Poster
Rep: Reputation: 171Reputation: 171
Quote:
Originally Posted by ponce View Post
it's ok to use the unmodified last one, the one from this package (that I seem to understand you are already using): it should already source the sbopkg configuration files (the sanity_checks() function in /usr/libexec/sbopkg/sqg/functions), as you pasted in your first post
Code:
LOCAL_SBOPKG_CONF=${LOCAL_SBOPKG_CONF:-/root/.sbopkg.conf}
SBOPKG_CONF=${SBOPKG_CONF:-/etc/sbopkg/sbopkg.conf}
and use the variables defined there, so if you already have configured the correct repository in those files you shouldn't need to add any additional configuration in /usr/sbin/sqg.
Thank you Matteo, that is the information I required.
sqg works as desired.
 
  


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
Faster implementation of sbopkg's sqg queue file generator. Richard Cranium Slackware 7 08-07-2016 11:12 AM
/usr/sbin/httpd: symbol lookup error: /usr/sbin/httpd: undefined symbol: apr_atomic_x dasoberdick Slackware 16 10-11-2014 02:36 AM
/usr/sbin/pmi and /usr/sbin/hibernate Woodsman Slackware 1 08-31-2013 10:41 PM
Error: Cannot find 'ssh-keygen' in '/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin' venu.navat Linux - Software 3 03-08-2012 04:00 AM
/bin, /sbin, /usr/bin, /usr/sbin - why are there 4? EmrldDrgn Linux - Newbie 3 11-18-2008 09:59 PM

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

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