LinuxQuestions.org
Visit the LQ Articles and Editorials section
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-28-2013, 11:38 PM   #16
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,357
Blog Entries: 2

Rep: Reputation: 3980Reputation: 3980Reputation: 3980Reputation: 3980Reputation: 3980Reputation: 3980Reputation: 3980Reputation: 3980Reputation: 3980Reputation: 3980Reputation: 3980

Quote:
Originally Posted by chess View Post
Slight tweak to the script to skip packages with an empty REQUIRES= line unless a new SKIP_EMPTY variable is uncommented. Probably makes no sense to create queuefiles for packages with no dependencies in most cases.
Unless you want to have a queuefile for customized options, for example the p7zip package, which has optional dependencies if you want to build it with GUI=yes option, but has an empty REQUIRES field (therefore my previous post that parsing the %README% not really makes sense unless all script maintainers actually use it).
 
Old 02-28-2013, 11:53 PM   #17
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,380

Rep: Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840
just to clarify: the %README% entry in REQUIRES means that, according to the maintainer, it's *mandatory* having a look at the README before building for successful compilation or for having a working package after, like:
- creation of additional users/groups;
- some important options you need to choose between before building;
- steps to take before building;
- steps to take after package installation;
- whatever more;

( leaving aside that one should be supposed to have a look at READMEs of the stuff he builds from SBo anyways )

Last edited by ponce; 03-01-2013 at 12:01 AM.
 
Old 03-01-2013, 06:41 AM   #18
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,357
Blog Entries: 2

Rep: Reputation: 3980Reputation: 3980Reputation: 3980Reputation: 3980Reputation: 3980Reputation: 3980Reputation: 3980Reputation: 3980Reputation: 3980Reputation: 3980Reputation: 3980
Quote:
Originally Posted by ponce View Post
( leaving aside that one should be supposed to have a look at READMEs of the stuff he builds from SBo anyways )
True, but as you can see in the case of p7zip skipping packages with an empty REQUIRES field is not always the correct option. I can't see any disadvantages in having queuefiles that contain only the package name, I would think that it is more of a disadvantage to not being able to determine packages that have optional dependencies, especially if you want to build a whole bunch (or all) queue-files at once.
A simple boolean flag in the .info-file, like OPTIONAL="TRUE||FALSE" would make it much easier in these cases where you for sure won't read all 3000+ READMEs, but can do a simple grep over all .info files to become aware of which packages need special attention.

To be honest, some time ago I tried to write something similar (though my attempts were lot less elegant), but the issue of not being able to determine reliably if a package has optional dependencies (which really matters for queue-files) and the reluctance of most maintainers when it comes to changes (see discussions on the SBo mailing list) put me down on that and I have given up before even asking for something like that.
 
Old 03-01-2013, 07:02 AM   #19
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,380

Rep: Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840
about that if you grep -i for "dependenc" on the READMEs you can have a general idea, I think: dependencies that are not optional shouldn't be listed there.

Last edited by ponce; 03-01-2013 at 07:03 AM.
 
Old 03-01-2013, 08:25 AM   #20
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware, OpenBSD, FreeBSD
Posts: 728

Original Poster
Rep: Reputation: 168Reputation: 168
Quote:
Originally Posted by TobiSGD View Post
Unless you want to have a queuefile for customized options, for example the p7zip package, which has optional dependencies if you want to build it with GUI=yes option, but has an empty REQUIRES field (therefore my previous post that parsing the %README% not really makes sense unless all script maintainers actually use it).
Yep, which is why I made it so you can uncomment SKIP_EMPTY and those queuefiles will be created so you can have it both ways. :-) Plus, if the REQUIRES is empty except for the %README% then the queuefile will still be created even if SKIP_EMPTY is left commented. In other words, the default action is to skip packages where the REQUIRES is truly empty. If there is anything in the REQUIRES (include %README%) then a queuefile will be created. Again, this can be changed by uncommenting SKIP_EMPTY in which case all queuefiles will be created.

Last edited by chess; 03-01-2013 at 08:27 AM.
 
  


Reply

Tags
queuefiles, sbopkg, slackbuilds, sqg


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
sbopkg problem... Alexvader Slackware 7 02-03-2014 01:01 AM
What other functionalities would like to have on sbopkg ChrisAbela Slackware 2 05-11-2012 03:50 AM
sbopkg help rng Slackware 6 03-16-2012 09:32 AM
Sbopkg... Alexvader Slackware 24 11-23-2009 11:38 AM
Sbopkg Popularity Murdock1979 Slackware 35 09-08-2009 01:53 AM


All times are GMT -5. The time now is 05:25 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration