LinuxQuestions.org
Review your favorite Linux distribution.
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 12-01-2015, 09:48 AM   #1
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Rep: Reputation: 231Reputation: 231Reputation: 231
Sbosrcarch and third party package managers


Hi

As you know third party package manager which have the ability to deal with SBo (sbopkg, sbotools, slpkg) always look at .info files to find the location of source files. I wonder how to use these tools so that they download source files from sbosrcarch instead?
One possible way would be manually editing .info files (I think this will work for sbotools). However, using this method for every single package would be a nightmare. What do you think? do you know a more automated way to do this?

Last edited by travis82; 12-01-2015 at 09:49 AM.
 
Old 12-01-2015, 11:25 AM   #2
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
sbopkg already has an experimental feature in a development branch -- see https://github.com/sbopkg/sbopkg/com...42287d31958d88

slackrepo automatically tries slackbuildsdirectlinks if the location in the .info file fails for any reason, I'm going to extend this for sbosrcarch in the very near future.
 
4 members found this post helpful.
Old 12-01-2015, 06:48 PM   #3
suppy
Member
 
Registered: Mar 2012
Location: Sweden
Distribution: Slackware
Posts: 83

Rep: Reputation: 60
Quote:
Originally Posted by travis82 View Post
Hi

As you know third party package manager which have the ability to deal with SBo (sbopkg, sbotools, slpkg) always look at .info files to find the location of source files. I wonder how to use these tools so that they download source files from sbosrcarch instead?
One possible way would be manually editing .info files (I think this will work for sbotools). However, using this method for every single package would be a nightmare. What do you think? do you know a more automated way to do this?
I'm intending to make sbotools able to check sbosrcarch automatically if a download fails, there's an issue about it on github: https://github.com/pink-mist/sbotools/issues/7
I just haven't had time to code it yet, but I don't think it will be too hard to do.
 
1 members found this post helpful.
Old 12-02-2015, 04:59 AM   #4
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
I have suggested that in salix forum too. seems that gapan want to do something about it:

https://github.com/gapan/repo-scripts/issues/1

Anyway, I think it would be necessary feature for source based package manager so that users have the ability to use different repositories same as binary ones. However, I don't know how much work needed as I know nothing about coding.

Thank you very much. I am looking forward to see how it goes for slackrepo and sbotools
 
1 members found this post helpful.
Old 12-02-2015, 09:59 PM   #5
dslackw
Member
 
Registered: Aug 2014
Location: Orestiada, GR
Distribution: Slackware 15.0 x86_64 -stable
Posts: 158

Rep: Reputation: 44
Code:
# slpkg -s sbo [package...] --download-only --directory-prefix=[dir]
 
Old 12-03-2015, 11:03 AM   #6
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by dslackw View Post
Code:
# slpkg -s sbo [package...] --download-only --directory-prefix=[dir]
Maybe I couldn't clarify my purpose due to my English languages. As far as I understood this command just download source files and store them in a specific location. I didn't mean that. I referred to an option which can give the user the ability to change source based repositories during dealing with SBo packages. For example using sbosrcarch for downloading source of jdk package instead oracle site which has been mentioned in "DOWNLOAD" field of jdk.info.

PS: Why does there is nothing about --download-only in slpkg man page?

Last edited by travis82; 12-03-2015 at 11:23 AM.
 
Old 12-04-2015, 04:36 PM   #7
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Quote:
Originally Posted by travis82 View Post
PS: Why does there is nothing about --download-only in slpkg man page?
It is in the man page. Under the -s, --sync section.

Code:
--resolve-off : Switch off automatic resolve dependencies.

--download-only : Download packages without install.

--directory-prefix=[path/to/dir/] : Download packages in specific directory.
 
Old 12-04-2015, 05:23 PM   #8
suppy
Member
 
Registered: Mar 2012
Location: Sweden
Distribution: Slackware
Posts: 83

Rep: Reputation: 60
I've made sbotools try sbosrcarch if the regular download fails or doesn't verify.
If you'd like to try it out you can get a release candidate of the source here: sbotools-1.10RC1.tar.gz
or a ready-made package here: sbotools-1.10RC1-noarch-1_SBo.tgz

There's also some other improvements in there, but they're not too relevant to the issue at hand =)
Please report any issues you find at https://github.com/pink-mist/sbotools/issues or the #sbotools irc channel on freenode.
 
1 members found this post helpful.
Old 12-05-2015, 12:10 AM   #9
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
@mralk3
Thanks Brenton and Sorry Dimitris for my bad mistake. Next time I will open my eyes before posting.

@Suppy
Thanks a lot. I will use it and report the results.

Edit: --download-only doesn't exits in man page of slpkg-3.0.0 which I was using. Seems that it has been added to 3.0.2 version.

Last edited by travis82; 12-05-2015 at 10:34 AM.
 
Old 12-06-2015, 04:29 AM   #10
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by suppy View Post
I've made sbotools try sbosrcarch if the regular download fails or doesn't verify.
If you'd like to try it out you can get a release candidate of the source here: sbotools-1.10RC1.tar.gz
or a ready-made package here: sbotools-1.10RC1-noarch-1_SBo.tgz

There's also some other improvements in there, but they're not too relevant to the issue at hand =)
Please report any issues you find at https://github.com/pink-mist/sbotools/issues or the #sbotools irc channel on freenode.
Thanks suppy, I haven't been faced any problem yet.

I have another suggestion, Is it possible to extend this feature to local source repo too? I mean since sbotools have the ability to keep source files in a dedicated directory, is it possible to give priority to this directory by sboinstall command so that sboinstall first looks for given version of source files in this directory then main source repo and then sbosrcarch? This feature will prevent re-downloading already downloaded source files.

Thanks again.

Last edited by travis82; 12-06-2015 at 04:39 AM.
 
Old 12-06-2015, 03:21 PM   #11
suppy
Member
 
Registered: Mar 2012
Location: Sweden
Distribution: Slackware
Posts: 83

Rep: Reputation: 60
Quote:
Originally Posted by travis82 View Post
I have another suggestion, Is it possible to extend this feature to local source repo too? I mean since sbotools have the ability to keep source files in a dedicated directory, is it possible to give priority to this directory by sboinstall command so that sboinstall first looks for given version of source files in this directory then main source repo and then sbosrcarch? This feature will prevent re-downloading already downloaded source files.
If you're talking about the /usr/sbo/distfiles directory, then if that has a source file with the right name and md5 it will be used instead of downloading already. So long as you don't sboclean -d at least.

If that wasn't what you meant, please submit a feature request on the issues page =)
 
  


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
slackpkg vs. third-party package repository kikinovak Slackware 738 07-10-2021 08:41 PM
package managers? briced Linux - Distributions 3 05-09-2008 04:29 PM
3rd party package managers? crontab Slackware 3 10-06-2007 10:34 AM
considering package managers peok Linux From Scratch 4 07-27-2006 05:42 AM
Installing '3rd party' display managers in FC2 paegus Linux - Software 0 06-21-2004 01:56 PM

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

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