SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
$ 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?
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
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:
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:
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!
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.