[arch-commits] Commit in libgweather/trunk (PKGBUILD disable-metar-test.diff)

Jan Steffens heftig at gemini.archlinux.org
Wed Mar 30 20:25:10 UTC 2022


    Date: Wednesday, March 30, 2022 @ 20:25:09
  Author: heftig
Revision: 441013

40.0+r87+g80e5a652-2: debug on

Added:
  libgweather/trunk/disable-metar-test.diff
Modified:
  libgweather/trunk/PKGBUILD

-------------------------+
 PKGBUILD                |   32 ++++++++++++++++++++++----------
 disable-metar-test.diff |   12 ++++++++++++
 2 files changed, 34 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-30 20:23:53 UTC (rev 441012)
+++ PKGBUILD	2022-03-30 20:25:09 UTC (rev 441013)
@@ -3,7 +3,7 @@
 
 pkgname=libgweather
 pkgver=40.0+r87+g80e5a652
-pkgrel=1
+pkgrel=2
 pkgdesc="Location and timezone database and weather-lookup library"
 url="https://wiki.gnome.org/Projects/LibGWeather"
 arch=(x86_64)
@@ -10,30 +10,42 @@
 license=(LGPL)
 depends=(libsoup gtk3 geocode-glib dconf)
 makedepends=(gobject-introspection vala git gtk-doc glade meson python-gobject)
-provides=(libgweather-3.so)
+checkdepends=(python-pylint)
+options=(debug)
 _commit=80e5a652405a7c492b252c5196460caa0b05793d  # libgweather-3
-source=("git+https://gitlab.gnome.org/GNOME/libgweather.git#commit=$_commit")
-sha256sums=('SKIP')
+source=("git+https://gitlab.gnome.org/GNOME/libgweather.git#commit=$_commit"
+        disable-metar-test.diff)
+sha256sums=('SKIP'
+            'f64afeebdca41198e16a040379e2d6f02ef07784d5ef4d15df381d2c065f588a')
 
 pkgver() {
-  cd $pkgname
-  git describe --tags | sed 's/\.beta/beta/;s/[^-]*-g/r&/;s/-/+/g'
+  cd libgweather
+  git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
 }
 
 prepare() {
-  cd $pkgname
+  cd libgweather
+
+  # Avoid test failure without fr_FR.UTF-8 locale
+  git cherry-pick -n 237addd5c02f70c654b69f6697c502590594ae20
+
+  # Disable metar test, depends on unstable online service
+  git apply -3 ../disable-metar-test.diff
 }
 
 build() {
-  arch-meson $pkgname build -D gtk_doc=true
+  arch-meson libgweather build -D gtk_doc=true
   meson compile -C build
 }
 
 check() {
-  # Test fails without fr_FR.UTF-8 locale
-  meson test -C build --print-errorlogs || :
+  meson test -C build --print-errorlogs
 }
 
 package() {
+  provides=(libgweather-3.so)
+
   meson install -C build --destdir "$pkgdir"
 }
+
+# vim:set sw=2 et:

Added: disable-metar-test.diff
===================================================================
--- disable-metar-test.diff	                        (rev 0)
+++ disable-metar-test.diff	2022-03-30 20:25:09 UTC (rev 441013)
@@ -0,0 +1,12 @@
+diff --git i/libgweather/test_libgweather.c w/libgweather/test_libgweather.c
+index b10c1f16..d09aaed6 100644
+--- i/libgweather/test_libgweather.c
++++ w/libgweather/test_libgweather.c
+@@ -899,7 +899,6 @@ main (int argc, char *argv[])
+ 	g_test_add_func ("/weather/no-code-serialize", test_no_code_serialize);
+ 	g_test_add_func ("/weather/timezones", test_timezones);
+ 	g_test_add_func ("/weather/airport_distance_sanity", test_airport_distance_sanity);
+-	g_test_add_func ("/weather/metar_weather_stations", test_metar_weather_stations);
+ 	g_test_add_func ("/weather/utc_sunset", test_utc_sunset);
+ 	g_test_add_func ("/weather/weather-loop-use-after-free", test_weather_loop_use_after_free);
+ 	/* Modifies environment, so needs to run last */



More information about the arch-commits mailing list