fixup! Introduce 'crosswalk-bin.spec'.
authorhh4813.kim <hh4813.kim@samsung.com>
Fri, 17 Jul 2015 00:47:44 +0000 (09:47 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
This patch temporarily fixes a GBS build error of 'crosswalk-bin.spec'
related to 'rpmlint'. It happens when build_{tv/mobile}.sh scripts are
not used, and gbs <parameters> is called directly.

Similar fix is also present in chromium-efl.spec.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13316
Reviewed by: Antonio Gomes, DONGJUN KiM

Change-Id: Ic95092ee6c570d2e47e05e550b0cdd621714e8c5
Signed-off-by: hh4813.kim <hh4813.kim@samsung.com>
tizen_src/packaging/crosswalk-bin.spec

index 246d1ed..6349778 100644 (file)
@@ -280,6 +280,19 @@ tizen_src/build/prebuild/ninja %{_smp_mflags} -C"%{OUTPUT_FOLDER}" \
    ${NINJA_TARGETS}
 %endif
 
+# XXX Workaround for using rpmlint with gbs build on Tizen 3.0
+#
+# When using the latest snapshot repo on http://download.tizen.org/snapshots
+# rpmlint-tizen-1.0-6.1 is installed in GBS-ROOT. So, after rpms are built
+# gbs build script runs rpmlint to test created packages. There is some BUG in
+# this script and directory /home/abuild/rpmbuild/OTHER/ isn't created. This
+# directory is required for rpmlint's log file and its lack causes build error.
+%if "%{?chromium_efl_tizen_version}%{!?chromium_efl_tizen_version:0}" == "3.0"
+if [ ! -d %{buildroot}/../../OTHER/ -a -f /opt/testing/bin/rpmlint ]; then
+   mkdir -p %{buildroot}/../../OTHER/
+fi
+%endif
+
 ###### end of block copied/adapted from chromium-efl.spec
 
 %install