dev-db/sqlite: Disable tests broken on x86 (bug #628242).
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Thu, 28 Sep 2017 15:40:27 +0000 (17:40 +0200)
committerMike Gilbert <floppym@gentoo.org>
Thu, 28 Sep 2017 17:10:59 +0000 (13:10 -0400)
dev-db/sqlite/sqlite-3.20.1-r1.ebuild

index 137b7b0eeb213e557adc17b0a102b8582ae723e7..6b547ffb208d547b790268ec143440859944550f 100644 (file)
@@ -74,6 +74,18 @@ src_prepare() {
        eautoreconf
 
        multilib_copy_sources
+
+       preparation() {
+               pushd "${BUILD_DIR}" > /dev/null || die
+
+               if [[ "${ABI}" == "x86" ]]; then
+                       # Disable tests broken on x86.
+                       sed -e "/^for {set i 0} {\$i<1000} {incr i} {$/,/^}$/d" -i test/date.test || die "sed failed"
+               fi
+
+               popd > /dev/null || die
+       }
+       multilib_foreach_abi preparation
 }
 
 multilib_src_configure() {