LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-01-2016, 01:01 PM   #1
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Rep: Reputation: Disabled
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
 
Old 11-01-2016, 05:07 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12 & Devuan
Posts: 9,488
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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
 
Old 11-01-2016, 05:21 PM   #3
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Original Poster
Rep: Reputation: Disabled
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.
Old 11-01-2016, 05:44 PM   #4
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
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.
Old 11-01-2016, 06:42 PM   #5
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Original Poster
Rep: Reputation: Disabled
Hi,

Quote:
Originally Posted by 55020 View Post
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 View Post
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
 
  


Reply


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
[SOLVED] Two questions / wishes related to slackrepo slalik Slackware 3 07-21-2015 05:18 AM
[ANN] New package building tool: slackrepo 55020 Slackware 18 07-24-2014 10:55 AM
Creating Custom LiveOS ISO with Custom Files and RPMs niteshadw Red Hat 1 11-06-2012 10:44 AM
Problems with logging the output of a custom daemon with a custom init script d1s4st3r *BSD 3 04-30-2010 04:46 AM
Custom kernel image on custom slack build using CUSS nykey Slackware 2 07-15-2006 03:05 AM

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

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