LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-30-2017, 03:44 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
sqg -p empty REQUIRES line, why?


I've been happily using sbopkg since posting thread http://www.linuxquestions.org/questi...ol-4175596457/. However, the last several packages I've tried give me the error:
Code:
$ sqg -p passwdqc
passwdqc: empty REQUIRES line. No queuefile generated.
Uncomment SKIP_EMPTY to change this.
Done.
If I use sbopkg interactive mode: Search > pkgname > Add to Queue, it adds it to the queue without problem; no "empty REQUIRES line" warning. I can then

$ sbopkg -i pkgname

and it installs just fine.

Although I can rather painlessly use the sbopkg interactive mode, I don't get why that works but sqg aborts with the "empty REQUIRES line" error. Using the sqg command line is simple. Is there a way I can force sqg to generate the queuefile anyway, like sbopkg interactive does?
 
Old 03-30-2017, 04:38 PM   #2
jimtrenton
Member
 
Registered: Oct 2007
Distribution: Slackware 15.0, Manjaro
Posts: 37

Rep: Reputation: 10
Hi,

I believe this is because the sqg would need to create a queue file that would only contain the name of the package itself. And this seems a bit useless, because there is no need to queue only one package when it can be built directly or as part of a bigger queue.

Last edited by jimtrenton; 03-30-2017 at 04:38 PM. Reason: typo
 
Old 03-30-2017, 04:48 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
sqg -p <package> builds a queue of dependencies needed to build the package, if any. But passwdqc has no dependency, hence sqg -p does nothing. That's what it says and this is not an error.

But as suggested by the message if you uncomment the line #50 of /usr/sbin/sqg, jut removing the leading # so it becomes:
Code:
SKIP_EMPTY=${SKIP_EMPTY:-NO}
then a queue file will be generated:
Code:
root[/]# sqg -p passwdqc
Processing passwdqc.
Done.
root[/]# cat /var/lib/sbopkg/queues/passwdqc.sqf 
passwdqc
root[/]#
As you see the queue file just contains passwdqc itself, as it has no dependency.

Last edited by Didier Spaier; 03-30-2017 at 04:49 PM.
 
Old 03-31-2017, 12:25 AM   #4
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by Didier Spaier View Post
sqg -p <package> builds a queue of dependencies needed to build the package, if any. But passwdqc has no dependency, hence sqg -p does nothing. That's what it says and this is not an error.
Well, in fact it doesn't actually say "passwdqc has no dependencies". All it says is "empty REQUIRES line", which could mean various things. I took it to mean that the REQUIRES line is required and processing was therefore aborted.
Quote:
But as suggested by the message if you uncomment the line #50 of /usr/sbin/sqg, jut removing the leading # so it becomes:
Code:
SKIP_EMPTY=${SKIP_EMPTY:-NO}
then a queue file will be generated:
Code:
root[/]# sqg -p passwdqc
Processing passwdqc.
Done.
root[/]# cat /var/lib/sbopkg/queues/passwdqc.sqf 
passwdqc
root[/]#
As you see the queue file just contains passwdqc itself, as it has no dependency.
Ah ha! So then, if I try sqg on a package, and it gives me this "empty REQUIRES line" message, that means there are no other dependencies; which means I could just go ahead and run `sbopkg -i` immediately without bothering to create a queuefile, right?

Also, I didn't get that the message "Uncomment SKIP_EMPTY to change this" meant to change that line (50) in the sqg script! I thought it was referring to the package .info file so some such thing whose name/location I had no idea of.

Both messages are uncommonly terse and, to me, unhelpful. Why doesn't it simply say "No dependencies in this package", instead of the cryptic "empty REQUIRES line". The message "Uncomment SKIP_EMPTY to change this", wasn't enough information for me. A simple addition of "in the sqg script", would have clarified that.

For such a single-purpose tool with few options, I've spent a lot of time and not a few threads trying to figure out its laconic help and feedback!

Last edited by mfoley; 03-31-2017 at 12:32 AM.
 
Old 03-31-2017, 04:30 AM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Quote:
Originally Posted by mfoley View Post
Ah ha! So then, if I try sqg on a package, and it gives me this "empty REQUIRES line" message, that means there are no other dependencies; which means I could just go ahead and run `sbopkg -i` immediately without bothering to create a queuefile, right?
Right.

Quote:
Why doesn't it simply say "No dependencies in this package", instead of the cryptic "empty REQUIRES line". The message "Uncomment SKIP_EMPTY to change this", wasn't enough information for me. A simple addition of "in the sqg script", would have clarified that.
This suggestion should be addressed to the current maintainer aka Willy. See how to contact him in the script itself.

Alternatively, you can open an issue or make a pull request on GitHub: https://github.com/sbopkg/sbopkg

Quote:
For such a single-purpose tool with few options, I've spent a lot of time and not a few threads trying to figure out its laconic help and feedback!
Oftentimes, it helps to have a look to the program that displays a puzzling message, in this case the easy to read shell script /usr/sbin/sqg.

Also http://docs.slackware.com/howtos:sla...es_with_sbopkg is worth reading.

Last edited by Didier Spaier; 03-31-2017 at 04:34 AM.
 
1 members found this post helpful.
Old 03-31-2017, 04:45 AM   #6
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Thanks for the feedback. The code was added long time ago (2013). I will have a look on this matter asap.
 
Old 03-31-2017, 11:51 AM   #7
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by Didier Spaier View Post
This suggestion should be addressed to the current maintainer aka Willy. See how to contact him in the script itself.
Well apparently Willy reads this forum, or someone else contacted him! Willy, if you're still reading, thanks for your attention. sqg is a great program and I appreciate your efforts.
Didier: thanks for the clarifications. I can continue happily on! I will definitely check that link.
 
Old 03-31-2017, 12:04 PM   #8
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
It's fixed in master already
hopefully the new message makes more sense
 
Old 03-31-2017, 12:08 PM   #9
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Kool! Thanks!!!!
 
  


Reply

Tags
sbopkg, sqg



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
"APT-GET, DPKG empty line, new line error failed install" solution :) stovey Linux - Newbie 2 07-06-2015 02:06 PM
sed append at new line if the old line is not empty ted_chou12 Linux - Newbie 12 05-26-2011 08:33 AM
how to pipeline when the file requires two command line args???? lemon09 Programming 4 01-19-2010 09:24 PM
command line requires authorization with network server resnostyle Ubuntu 4 09-06-2006 09:12 PM
Adobe Acrobate Reader Requires A Plugin-That Requires Open LDAP That Requires Berkely Old_Fogie Slackware 10 05-08-2006 05:04 AM

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

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