Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
11-01-2016, 01:01 PM
|
#1
|
Member
Registered: Aug 2007
Distribution: Slackware
Posts: 948
Rep: 
|
slackrepo and custom SlackBuild
Hi,
How can I use slackrepo with customized SlackBuild?
What I mean is, I want to modify some SlackBuild from SlackBuilds.org, either for my own purposes or for the purpose of upstreaming.
I could probably setup my own git repo with the customized version, but what about the dependencies?
And I don't mean changes that can be accomplished with hinfile, what I need is direct modification of SlackBuild's text.
I know about the location where slackrepo stores the upstream SlackBuilds.
Is it fine to modify the SlackBuild there?
Won't I run into some dirty/uncommitted changes problems?
Another thing. Is it somehow possible to override the .info's REQUIRES with hintfile?
What I need to do is to remove some dependencies, which are not required if appropriate flag is passed to the SlackBuild.
Thanks!
--
Best regards,
Andrzej Telszewski
|
|
|
11-01-2016, 05:07 PM
|
#2
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
|
Quote:
I could probably setup my own git repo with the customized version, but what about the dependencies?
|
The dependencies would have to be installed manually and in order <or> you could use sbopkg.
Sorry I'm not good with install scripts.
Quote:
Is it fine to modify the SlackBuild there?
Won't I run into some dirty/uncommitted changes problems?
|
SlackBuild scripts are written and maintained by developers so anytime that you change what they have built the potential for running into problems could very well end up being the case.
I've never modified a SlackBuild maybe other members that have will know and be able to advise you.
Lets see what others have to say about this.
http://www.slackwiki.com/Writing_A_SlackBuild_Script
http://docs.slackware.com/slackware:slackbuild_scripts
|
|
|
11-01-2016, 05:21 PM
|
#3
|
Member
Registered: Aug 2007
Distribution: Slackware
Posts: 948
Original Poster
Rep: 
|
Hi,
@Ztcoracat Thanks for the help. Sorry I wasn't explicit enough, I mean the slackrepo application.
I'm actually maintaining some SlackBuilds at SlackBuilds.org, so I know the subject ;-)
--
Best regards,
Andrzej Telszewski
|
|
1 members found this post helpful.
|
11-01-2016, 05:44 PM
|
#4
|
Senior Member
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Rep: 
|
The whole idea is that it builds from the git repo - so you'd set up a branch in the git repo, based off the 14.2 branch, with your local changes in your local branch. You would need to merge the public updates from SBo from time to time, probably with git rebase.
It's exactly the same workflow that you would follow to create and submit changes to SBo, except simply that you don't push your changes to SBo.
It's not currently possible to override REQUIRES in a hintfile. This might be a useful feature to add (specifically for use with -current) but it might be a while before I have the time to do that. Until then, I'd say that if an SBo SlackBuild has an option that removes a dep listed in REQUIRES, the maintainer maybe should think about changing the defaults and remove it from the .info.
Last edited by 55020; 11-01-2016 at 05:58 PM.
|
|
2 members found this post helpful.
|
11-01-2016, 06:42 PM
|
#5
|
Member
Registered: Aug 2007
Distribution: Slackware
Posts: 948
Original Poster
Rep: 
|
Hi,
Quote:
Originally Posted by 55020
This might be a useful feature to add (specifically for use with -current)
|
And for example to override jdk with openjdk.
Quote:
Originally Posted by 55020
Until then, I'd say that if an SBo SlackBuild has an option that removes a dep listed in REQUIRES, the maintainer maybe should think about changing the defaults and remove it from the .info.
|
It was me ;-) I introduced the option sometime later and I didn't want to break the current users. This might change :-^
BTW, slackrepo is really nice. One day, when I start rolling my own tool, it'll be certainly based on yours ;-)
--
Best regards,
Andrzej Telszewski
|
|
|
All times are GMT -5. The time now is 06:49 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|