[SailfishDevel] Fwd: Fwd: mb gives error "sb2: Error: Invalid target specified, aborting.": Part 3

christopher.lamb at thurweb.ch christopher.lamb at thurweb.ch
Mon Apr 22 08:16:30 UTC 2013


Hi All

Maybe a glimmer of light at the end of the tunnel.

I have found which instance of sb2 is being called (/usr/bin/sb2), and  
have have extended the exit_error() function to give a little more  
info. I now get the following error output:

[root at SailfishSDK Demo2]# mb build -t SailfishOS-i486-x86 rpm/Demo2.spec
Building rpm/Demo2.spec for SailfishOS-i486-x86
Checking dependencies...
sb2: Error: Invalid target specified, aborting. Deep Shit!
current directory is:  /home/mersdk/SailfishProjects/Demo2/Demo2
script is : /usr/bin/sb2
target is: SailfishOS-i486-x86
file being looked for at: /root/.scratchbox2/SailfishOS-i486-x86/sb2.config
Setting up temporary specfile for Demo2 from rpm/Demo2.spec
rsyncing source...
run rpmbuild
sb2: Error: Invalid target specified, aborting. Deep Shit!
current directory is:  /home/mersdk/SailfishProjects/Demo2/Demo2
script is : /usr/bin/sb2
target is: SailfishOS-i486-x86
file being looked for at: /root/.scratchbox2/SailfishOS-i486-x86/sb2.config

The problem seems to be that ether:
a) /root/.scratchbox2/SailfishOS-i486-x86/sb2.config is missing or
b) sb2 is looking for this file in the wrong place

An ls of /root gives me:

[root at SailfishSDK Demo2]# ls -l -A //root
total 32
-rw------- 1 root root  510 2013-04-21 13:34 .bash_history
-rw-r--r-- 1 root root   24 2012-01-25 19:08 .bash_logout
-rw-r--r-- 1 root root  191 2012-01-25 19:08 .bash_profile
-rw-r--r-- 1 root root  176 2012-01-25 19:08 .bashrc
-rw-r--r-- 1 root root  100 2012-01-25 19:08 .cshrc
drwxr-xr-x 4 root root 4096 2013-04-21 14:31 rpmbuild
-rw-r--r-- 1 root root  129 2012-01-25 19:08 .tcshrc
-rw------- 1 root root  963 2013-03-28 15:19 .viminfo
[root at SailfishSDK Demo2]#

No sign here of a .scratchbox2 directory....


Grüsse

Chris

-------------- next part --------------
An embedded message was scrubbed...
From: christopher.lamb at thurweb.ch
Subject: Fwd: mb gives error "sb2: Error: Invalid target specified,	aborting.": Part 2
Date: Sun, 21 Apr 2013 20:01:16 +0200
Size: 1632
URL: <http://lists.sailfishos.org/pipermail/devel/attachments/20130422/8a73e941/attachment.mht>


More information about the Devel mailing list