LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-30-2020, 08:53 AM   #1
keeneadt
Member
 
Registered: Feb 2020
Distribution: Slackware
Posts: 56

Rep: Reputation: Disabled
Somehow i broke sbopkg


A couple of hours ago i decided to upgrade everything i got from ponce's sbo. According to this article i executed
Code:
rm -fR /var/lib/sbopkg/SBo-git
and then after rsync command i got
Code:
sbopkg -r
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
You do not have the initial commit yet
fatal: your current branch 'master' does not have any commits yet
Syncing with the remote repository into /var/lib/sbopkg/SBo-git.
From git://github.com/Ponce/slackbuilds
 * branch                  current    -> FETCH_HEAD
error: The following untracked working tree files would be overwritten by merge:
	ChangeLog.txt
Please move or remove them before you merge.
Aborting
Removing .gitignore
Removing ChangeLog.txt
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: your current branch 'master' does not have any commits yet

Repository update complete.
The only file i have now in SBo-git directory is ChangeLog.txt which is empty. I haven't done anything with sbopkg.conf and sbopkg files since i changed two options in config from the article to use it with ponce's repo. Anyway here is my config
Code:
# $Id$
#
# Please read the sbopkg.conf(5) man page for information about this
# configuration file, including an explanation of how to set these
# variables.

# The following variables are used by sbopkg and by the SlackBuild
# scripts themselves.  They must be exported for this reason.
export TMP=${TMP:-/tmp/SBo}
export OUTPUT=${OUTPUT:-/tmp}

# The following are variables used by sbopkg.  Any of these variables
# could be exported, if desired.

# Path variables
LOGFILE=${LOGFILE:-/var/log/sbopkg/sbopkg-build-log}
QUEUEDIR=${QUEUEDIR:-/var/lib/sbopkg/queues}
REPO_ROOT=${REPO_ROOT:-/var/lib/sbopkg}
SRCDIR=${SRCDIR:-/var/cache/sbopkg}
# sbopkg's temporary directory (where its internal temporary files are
# kept and where packages are made prior to being moved to OUTPUT)
# defaults to /tmp/sbopkg.XXXXXX where 'XXXXXX' is a random string. If
# /tmp is not a suitable containing directory, pass in an alternate
# TMPDIR or modify the following variable. This is actually a mktemp(1)
# variable.
export TMPDIR=${TMPDIR:-/tmp}

# Other variables:
CLEANUP=${CLEANUP:-NO}
DEBUG_UPDATES=${DEBUG_UPDATES:-0}
KEEPLOG=${KEEPLOG:-YES}
MKDIR_PROMPT=${MKDIR_PROMPT:-YES}
NICE=${NICE:-10}
REPO_BRANCH=${REPO_BRANCH:-current}
REPO_NAME=${REPO_NAME:-SBo-git}

# The following variable determines if multiple instances of sbopkg can
# be run simultaneously. It is *strongly* recommended that this value be
# set to NO. Do not set it to YES without first reading the
# sbopkg.conf(5) man page.
ALLOW_MULTI=${ALLOW_MULTI:-NO}

# The following variables are required and can be tweaked if desired,
# although this is not recommended.  Note:  rsync already uses
# --archive, --delete, --no-owner, and --exclude in the main sbopkg
# script so there is no need to add those flags here.
DIFF=${DIFF:-diff}
DIFFOPTS=${DIFFOPTS:--u}
RSYNCFLAGS="${RSYNCFLAGS:---verbose --timeout=30}"
WGETFLAGS="${WGETFLAGS:--c --progress=bar:force --timeout=30 --tries=5}"

# SRC_REPO defaults to "http://slackware.uk/sbosrcarch". To use
# a different repository, uncomment and edit this variable. The value
# must be the URL of the directory containing the by-name and by-md5
# sub directories, and should NOT have a trailing slash.
# SRC_REPO="http://slackware.uk/sbosrcarch"
I found a thread where a similar error was described, but i have no idea how relative is the answer since i don't use default slackbuilds repo for 14.2.

I did a full reinstall (first, i deleted sbopkg.conf) but it didn't help. What should i do to make sbopkg work again?
 
Old 03-30-2020, 10:39 AM   #2
keeneadt
Member
 
Registered: Feb 2020
Distribution: Slackware
Posts: 56

Original Poster
Rep: Reputation: Disabled
That's funny, but after two or three more times of doing
Code:
rm -fR /var/lib/sbopkg/SBo-git
sbopkg -r
without deleting of config file i finally get it worked. Seems like the problem is solved.
 
Old 04-01-2020, 08:42 PM   #3
Spinlock
Member
 
Registered: Jan 2006
Location: Missouri
Distribution: Slackware -current, Slackware64 -current, Slackware 12.2
Posts: 158

Rep: Reputation: 28
I would recommend applying the below patch to your local sbopkg. This is from the main tree, it just won't be released until 15.0 releases:

https://github.com/sbopkg/sbopkg/commit/5a5df8dc0a99645cb295e42e9940c9d6021ea870


It'll allow you to just refresh the queue like normal.
 
1 members found this post helpful.
Old 04-01-2020, 11:46 PM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,134

Rep: Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365
It would be better to use this one to test : https://sbopkg.org/test/sbopkg-0.38.2-noarch-1_wsr.tgz
don't forget to change the sbopkg.conf as it points to 15.0 repository which isn't exist yet
 
1 members found this post helpful.
Old 04-03-2020, 10:54 AM   #5
keeneadt
Member
 
Registered: Feb 2020
Distribution: Slackware
Posts: 56

Original Poster
Rep: Reputation: Disabled
@Spinlock, @willysr, thanks a lot. I'll try it a bit later.
 
  


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
broke fstab somehow billstowell Linux - Newbie 3 05-01-2013 09:30 AM
Broke default theme somehow hawk__0 Ubuntu 1 12-31-2009 07:12 AM
Somehow installing Crossover broke Wine which was working? iphigenie Linux - Games 1 10-03-2009 04:18 PM
Somehow I broke the splashimage with GRUB 0.95 on RHEL4 kevman Linux - General 2 09-23-2006 05:19 PM
HELP: I broke the workspace switcher somehow... Cookie Linux - Software 0 04-13-2004 03:55 PM

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

All times are GMT -5. The time now is 01:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration