LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-11-2015, 11:52 AM   #1
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Question change a build script from sbopkg localy


Say I want to have one package in a newer version and change something in the build
How does this work?

I change the info file,
I change the slackbuild
and the changes are ignored by sbopgk?
 
Old 06-11-2015, 12:16 PM   #2
dederon
Member
 
Registered: Oct 2013
Posts: 104

Rep: Reputation: 54
sbopkg will extract the package file (which contains the slackbuild and the info file), so you changes are overwritten. if you made changes to the slackbuild, then invoke the slackbuild itself, don't use sbopkg.
 
1 members found this post helpful.
Old 06-11-2015, 12:20 PM   #3
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,068

Rep: Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145
I'll try to explain how I use sbopkg with a custom repository.

as sbopkg can use a git repository as source, I have:
- forked SBo's git repository (master branch);
- created a branch for every script I modify (I find easier to manage them this way);
- merged every resulting branch in one with all the modifications (you can avoid the previous step if you are comfortable in using directly a single branch);
- set up in /etc/sbopkg/sbopkg.conf to use that.

you can modify the file /etc/sbopkg/repos.d/60-SBo-current.repo to point at your git repository or better create a new file (variables description is at the top of the file) with your data and configure the parameters you set there in sbopkg.conf.
as an example you can create a file /etc/sbopkg/repos.d/70-slackbuilds.repo with this content
Code:
# Repo Branch Description Tag Tool Link CheckGPG
slackbuilds master "Official git master from slackbuilds.org" custom git git://slackbuilds.org/slackbuilds.git@master ""
and then set in /etc/sbopkg/sbopkg.conf
Code:
REPO_BRANCH=${REPO_BRANCH:-master}
REPO_NAME=${REPO_NAME:-slackbuilds}
to use SlackBuilds.org's git master branch.

you should be able also to use a local repository, as described in this mailing list message, but doing without a git repository that's useful also as a backup I personally found pretty easy to lose the changes.

Last edited by ponce; 06-11-2015 at 12:47 PM.
 
2 members found this post helpful.
Old 06-11-2015, 01:10 PM   #4
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Original Poster
Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
thanks for the info, will check how his works
I will read the README-repos and see how far I come


--edit
looks promising, so I mark this as solved

Last edited by a4z; 06-11-2015 at 01:15 PM.
 
Old 06-11-2015, 01:35 PM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Another option is to use the edit option directly within sbopkg (go under the package you want to change and then select the edit... you can change the slackbuild to add or change options and the info if you need to change the download/md5sum). By default, it uses vi, but if you want a different editor (since I can never remember the commands), you can change the $EDITOR variable to a different editor, like pico or nano.
 
2 members found this post helpful.
  


Reply

Tags
sbopkg


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] SBo + sbopkg, qt5 build parallel a4z Slackware 3 10-12-2014 11:54 AM
SBOPKG(8) not list/show/build dependencies of SlackBuild scripts to build Slackware p xavi_slacky Slackware 3 06-13-2013 07:53 PM
[SOLVED] Cannot build wxPython from sbopkg arubin Slackware 12 10-08-2012 06:22 PM
SBopkg build queue for multimedia dependencies damgar Slackware 1 07-01-2012 02:48 PM
[SOLVED] Build a complete optimized Slackware using sbopkg? TobiSGD Slackware 7 03-27-2011 08:23 PM

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

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