LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   change a build script from sbopkg localy (https://www.linuxquestions.org/questions/slackware-14/change-a-build-script-from-sbopkg-localy-4175545094/)

a4z 06-11-2015 11:52 AM

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?

dederon 06-11-2015 12:16 PM

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.

ponce 06-11-2015 12:20 PM

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.

a4z 06-11-2015 01:10 PM

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

bassmadrigal 06-11-2015 01:35 PM

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.


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