Mailinglist Archive: opensuse-buildservice (245 mails)

< Previous Next >
[opensuse-buildservice] Error in package build log
  • From: "David Jarvie" <djarvie@xxxxxxx>
  • Date: Tue, 5 Oct 2010 13:40:23 +0100
  • Message-id: <4bda8cd7b0f0216e09dd766d5b517f19.squirrel@xxxxxxxxxxxxxxxx>
I'm getting an error in the package build log for Fedora_12 x86_64. The
error doesn't appear for other distros or architectures. It appears to be
from the %find_lang macro, although I can't be sure. I don't know whether
the error matters. Any advice would be welcome.

The project page is at
https://build.opensuse.org/package/show?package=kalarm&project=home%3Adjar%3Akalarm.

The extract from the log showing the error (which occurs in the 'test ==
2' line) is:

-- Installing: 
/home/abuild/rpmbuild/BUILDROOT/kalarm-2.5.2.kde4-7.1.fc12.x86_64/usr/share/locale/zh_TW/LC_MESSAGES/kalarm.mo
make: Leaving directory `/home/abuild/rpmbuild/BUILD/kalarm-2.5.2/build'
+ for lang in kalarm
+ find_lang_tmp_name=kalarm.lang
+ test 2 = 2
+ find_lang_tmp_name=kalarm.lang
+ test -e kalarm.lang
+ /usr/lib/rpm/find-lang.sh 
/home/abuild/rpmbuild/BUILDROOT/kalarm-2.5.2.kde4-7.1.fc12.x86_64 kalarm 
kalarm.lang
+ test -e kalarm.lang.sav
+ test == 2
/var/tmp/rpm-tmp.o2CWYq: line 41: test: ==: unary operator expected
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip
+ /usr/lib/rpm/brp-strip-static-archive
+ /usr/lib/rpm/brp-strip-comment-note
Processing files: kalarm-2.5.2.kde4-7.1.fc12.x86_64

The install section of the spec file (which I presume is producing the
error) is:

%install
%kde4_makeinstall -C build
for lang in kalarm; do
%find_lang $lang %{name}.lang
done
%if %((%{_kde4_bindir}/kde4-config --version || echo "KDE 4.3.0") | grep
^KDE | sed 's/^.*KDE 4\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*$/04.0\1.0\2/'
| sed 's/\.0\([0-9][0-9]\)/.\1/g' | sed 's/\.//g') < 040290
echo "%dir %{_kde4_appsdir}/kalarm/holidays" >>%{name}.lang
echo "%{_kde4_appsdir}/kalarm/holidays/holiday_*" >>%{name}.lang
%endif
%if %((%{_kde4_bindir}/kde4-config --version || echo "KDE 4.3.0") | grep
^KDE | sed 's/^.*KDE 4\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*$/04.0\1.0\2/'
| sed 's/\.0\([0-9][0-9]\)/.\1/g' | sed 's/\.//g') < 040480
echo "%doc %lang(fr) %{_kde4_htmldir}/fr/kalarm/" >>%{name}.lang
%endif
cat %{name}.lang
%suse_update_desktop_file kalarm TimeUtility
%kde_post_install


--
David Jarvie.
KDE developer.
KAlarm author - http://www.astrojar.org.uk/kalarm

--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups