I’m having an odd error on the build service. I’m trying to compile a qt application. I have BuildRequires: libqt4-devel set. When it gets to qmake the output says command not found. I even replaced the command with /usr/bin/qmake and it says
/usr/bin/qmake: No such file or directory
Here is the end of the log file:
You can see the whole thing here: https://build.opensuse.org/package/live_build_log/home:agronick/BIR/openSUSE_13.1/i586
0s] ...
30s] setting /usr/bin/write to root:tty 2755. (wrong permissions 0755)
30s] setting /usr/bin/eject to root:audio 4755. (wrong permissions 4750)
30s] aaa_base-13.1-16.17.1 ########################################
30s] Updating /etc/sysconfig/language...
30s] Updating /etc/sysconfig/backup...
30s] Updating /etc/sysconfig/boot...
30s] Updating /etc/sysconfig/clock...
30s] Updating /etc/sysconfig/proxy...
30s] Updating /etc/sysconfig/windowmanager...
30s] Updating /etc/sysconfig/cron...
30s] Updating /etc/sysconfig/news...
30s] Updating /etc/sysconfig/shutdown...
30s] Updating etc/passwd...unchanged
30s] Updating etc/group...unchanged
30s] Updating etc/shadow...unchanged
30s] aaa_base-malloccheck-13.1-16.17.1 ########################################
30s] file-magic-5.14-4.1.2 ########################################
30s] libmagic1-5.14-4.1.2 ########################################
31s] rpm-4.11.1-6.2.1 ########################################
31s] Updating /etc/sysconfig/services...
31s] rpmlint-mini-1.5-2.2.5 ########################################
31s] file-5.14-4.1.2 ########################################
31s] rpm-build-4.11.1-6.2.1 ########################################
31s] rpmlint-Factory-1.0-84.1.1 ########################################
31s] post-build-checks-1.0-119.1.2 ########################################
31s] pam-modules-12.1-20.1.2 ########################################
31s] m4-1.4.16-14.1.2 ########################################
31s] build-compare-2012.01.26-20.1.4 ########################################
31s] brp-check-suse-1.0-59.1.2 ########################################
31s] attr-2.4.47-2.1.2 ########################################
31s] brp-extract-appdata-2012.02.13-16.3.1 ########################################
31s] build-mkbaselibs-20131015-1.1 ########################################
31s] removing nis flags from //etc/nsswitch.conf...
31s] now finalizing build dir...
32s] SIOCSIFADDR: File exists
32s] -----------------------------------------------------------------
32s] I have the following modifications for BIR.spec:
32s] 29c29
32s] < Release: 1
32s] ---
32s] > Release: 33.1
32s] -----------------------------------------------------------------
32s] ----- building BIR.spec (user abuild)
32s] -----------------------------------------------------------------
32s] -----------------------------------------------------------------
32s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --define 'disturl obs://build.opensuse.org/home:agronick/openSUSE_13.1/3c6dada5f4be8099c557e46f5830fc6c-BIR' /home/abuild/rpmbuild/SOURCES/BIR.spec
32s] Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.LDch92
32s] + umask 022
32s] + cd /home/abuild/rpmbuild/BUILD
32s] + cd /home/abuild/rpmbuild/BUILD
32s] + rm -rf bir-1.1
32s] + /bin/tar -xvvf -
32s] + /usr/bin/gzip -dc /home/abuild/rpmbuild/SOURCES/bir-1.1.tar.gz
32s] drwxr-xr-x kyle/users 0 2014-08-27 04:11 bir-1.1/
32s] -rw-r--r-- kyle/users 31 2014-08-27 02:40 bir-1.1/bit.config
32s] -rw-r--r-- kyle/users 1149 2014-08-27 02:40 bir-1.1/main.cpp
32s] -rw-r--r-- kyle/users 104 2014-08-27 02:40 bir-1.1/icon.qrc
32s] -rw-r--r-- kyle/users 11194 2014-08-27 02:40 bir-1.1/bir.cpp
32s] -rw-r--r-- kyle/users 1173 2014-08-27 02:40 bir-1.1/bir.h
32s] -rw-r--r-- kyle/users 18043 2014-08-27 02:40 bir-1.1/bir.user
32s] -rw-r--r-- kyle/users 2988 2014-08-27 02:40 bir-1.1/icon.png
32s] -rw-r--r-- kyle/users 319 2014-08-27 02:40 bir-1.1/README.md
32s] -rw-r--r-- kyle/users 1989 2014-08-27 02:40 bir-1.1/bir.spec
32s] -rw-r--r-- kyle/users 494 2014-08-27 02:40 bir-1.1/selectitem.cpp
32s] -rw-r--r-- kyle/users 566 2014-08-27 02:40 bir-1.1/bir.pro
32s] -rw-r--r-- kyle/users 192 2014-08-27 02:40 bir-1.1/image.h
32s] -rw-r--r-- kyle/users 21906 2014-08-27 02:40 bir-1.1/bir.ui
32s] -rw-r--r-- kyle/users 448 2014-08-27 02:40 bir-1.1/selectitem.h
32s] -rw-r--r-- kyle/users 214 2014-08-27 03:55 bir-1.1/bir.desktop
32s] -rw-r--r-- kyle/users 18043 2014-08-27 02:40 bir-1.1/bir.pro.user
32s] -rw-r--r-- kyle/users 75 2014-08-27 02:40 bir-1.1/image.cpp
32s] + STATUS=0
32s] + '' 0 -ne 0 ']'
32s] + cd bir-1.1
32s] + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
32s] + exit 0
32s] Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.m3oekY
32s] + umask 022
32s] + cd /home/abuild/rpmbuild/BUILD
32s] + /usr/bin/rm -rf /home/abuild/rpmbuild/BUILDROOT/bir-1.1-33.1.i386
32s] ++ dirname /home/abuild/rpmbuild/BUILDROOT/bir-1.1-33.1.i386
32s] + /usr/bin/mkdir -p /home/abuild/rpmbuild/BUILDROOT
33s] + /usr/bin/mkdir /home/abuild/rpmbuild/BUILDROOT/bir-1.1-33.1.i386
33s] + cd bir-1.1
33s] + /usr/bin/qmake
33s] /var/tmp/rpm-tmp.m3oekY: line 32: /usr/bin/qmake: No such file or directory
33s] error: Bad exit status from /var/tmp/rpm-tmp.m3oekY (%build)
33s]
33s]
33s] RPM build errors:
33s] Bad exit status from /var/tmp/rpm-tmp.m3oekY (%build)
33s] ### WATCHDOG MARKER START ###
36s] 25.873386] SysRq : Power Off
36s] 25.877855] reboot: Power down
42s] ### WATCHDOG MARKER END ###
The specfile is a mess as I’ve been copying things from random sources. No matter what I do the problem remains the same.
#
# spec file for package bim
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# See also http://en.opensuse.org/openSUSE:Shared_library_packaging_policy
Name: bir
%define is_mandrake %(test -e /etc/mandrake-release && echo 1 || echo 0)
%define is_suse %(test -e /etc/SuSE-release && echo 1 || echo 0)
%define is_fedora %(test -e /etc/fedora-release && echo 1 || echo 0)
%define lrelease lrelease
Version: 1.1
Release: 1
Summary: Batch image resizer and manipulator.
License: GPL
Group: Graphics/RasterGraphics
Url: https://github.com/agronick/BIR
Source0: %{name}-%{version}.tar.gz
Distribution: %{distr}
Packager: Kya Asdsak agsdsdck@gmail.com
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source1: %name.desktop
%description
Batch image resizer and manipulator. Written in Qt. Able to resize, crop, and rotate directories of images and preserve file structure.
BuildRequires: gcc-c++
%if 0%{?mandriva_version} > 2006
export PATH=/usr/lib/qt4/bin:$PATH
export QTDIR=%{_prefix}/lib/qt4/
%endif
%if 0%{?fedora_version}
BuildRequires: qt4-devel qt-x11
Requires: beesu
%define qmake /usr/bin/qmake-qt4
%endif
%if 0%{?mandriva_version}
BuildRequires: libqt4-devel -kernel
%define qmake /usr/bin/qmake
%endif
%if 0%{?suse_version}
BuildRequires: libqt4-devel dos2unix update-desktop-files
%define qmake /usr/bin/qmake
%endif
%prep
%setup
%build
/usr/bin/qmake
make
%install
make install DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
%suse_update_desktop_file -i %name
%clean
rm -rf $RPM_BUILD_ROOT
%files
/usr/share/applications/%name.desktop
%defattr(-,root,root)
%doc README.md
%{_bindir}/%{name}
%changelog