Hi all

a partial answer to my own question:

Having found the source of mb here:
https://github.com/mer-tools/sdk-setup/blob/master/src/mb

I think it is failing at the line:
grep --color=never BuildRequires "$SPEC" | sed -e '/^#.*$/d' | gawk -F: '{ print $2 }' | tr ',' ' ' | xargs sb2 -t "$TARGET" -m sdk-install -R zypper in rpm-build

Taking that to pieces, it looks like sb2 is being passed the following:
pkgconfig(QtCore) >= 4.8.0 from grep et al.

Next I need to read the sb2 script to work out what is going on  / wrong.

Grüsse

Chris

--- Begin Message ---
Hi all

I have created a Demo sailfish project in Qt Creator
(New File or Project / SailfishOS Qt Quick Application)

I have changed this project (Demo2) in no way, so it is completely vanilla / virgin.

I want to build / run Demo2 as "Release / Install from RPM Package

However it aborts with the error: "sb2: Error: Invalid target specified, aborting."

If I follow David's instructions to manually build at:
https://sailfishos.org/wiki/Mer_OBS#Sailfish_on_OBS

Then I get the same error at the mb step:
mb build -t SailfishOS-i486-x86 rpm/<name of .spec file>

I have spooled my shell output below, including a tail of the .spec file

Any ideas?

Grüsse

Chris


Apple-Pip:~ christopherlamb$ ssh -p 2222 -i ~/.ssh/mer-qt-creator-rsa root@localhost
Last login: Sun Apr 21 13:32:10 2013 from 10.0.2.2

[root@SailfishSDK ~]# sdk-version
Core repos point at version: 0.20130222.0.1
Tools repos point at version: mer-tools-rolling

[root@SailfishSDK ~]# export PKG=Demo2
[root@SailfishSDK ~]# cd /home/mersdk/SailfishProjects/Demo2/Demo2/rpm/

[root@SailfishSDK rpm]# ls -l
total 8
-rwx------ 1 mersdk mersdk 771 2013-04-21 13:48 Demo2.spec
-rwx------ 1 mersdk mersdk 702 2013-04-21 13:27 Demo2.yaml

[root@SailfishSDK rpm]# (cd ..; make distclean 2>/dev/null; tar cf - --exclude /rpm --exclude .git/ --transform "s_./_${PKG}-0.1/_" ./) | bzip2 > ${PKG}-0.1.tar.bz2
[
root@SailfishSDK rpm]# ls -l
total 216
-rwx------ 1 mersdk mersdk 211308 2013-04-21 14:29 Demo2-0.1.tar.bz2
-rwx------ 1 mersdk mersdk    771 2013-04-21 13:48 Demo2.spec
-rwx------ 1 mersdk mersdk    702 2013-04-21 13:27 Demo2.yaml

[root@SailfishSDK rpm]# specify
Info: Old spec file exists, patching Demo2.spec ...

[root@SailfishSDK rpm]# cd ..
[root@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.
Setting up temporary specfile for Demo2 from rpm/Demo2.spec
rsyncing source...
run rpmbuild
sb2: Error: Invalid target specified, aborting.

[root@SailfishSDK Demo2]# tail rpm/Demo2.spec -n 100
#
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.25
#

Name:       Demo2

# >> macros
# << macros

Summary:    My SailfishOS Application
Version:    0.1
Release:    1
Group:      Qt/Qt
License:    LICENSE
Source0:    %{name}-%{version}.tar.bz2
Source100:  Demo2.yaml
Requires:   sailfishsilica
BuildRequires:  pkgconfig(QtCore) >= 4.8.0

%description
Short description of my SailfishOS Application



%prep
%setup -q -n %{name}-%{version}

# >> setup
# << setup

%build
# >> build pre
# << build pre

%qmake

make %{?jobs:-j%jobs}

# >> build post
# << build post

%install
rm -rf %{buildroot}
# >> install pre
# << install pre
%qmake_install

# >> install post
# << install post


%files
%defattr(-,root,root,-)
/opt
# >> files
# << files
[root@SailfishSDK Demo2]#


--- End Message ---
_______________________________________________
SailfishOS.org Devel mailing list

Reply via email to