Skip to content

Commit 73482cf

Browse files
committed
libgweather: migrate to [email protected] and backport build fix
1 parent 24a4b1e commit 73482cf

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Formula/lib/libgweather.rb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Libgweather < Formula
3333
depends_on "ninja" => :build
3434
depends_on "pkgconf" => [:build, :test]
3535
depends_on "pygobject3" => :build
36-
depends_on "python@3.13" => :build
36+
depends_on "python@3.14" => :build
3737

3838
depends_on "geocode-glib"
3939
depends_on "glib"
@@ -47,12 +47,15 @@ class Libgweather < Formula
4747
depends_on "gettext"
4848
end
4949

50+
# Backport fix for "error: call to undeclared library function 'alloca'"
51+
patch do
52+
url "https://gitlab.gnome.org/GNOME/libgweather/-/commit/12080775978b6d5140c741562894ea5d21601e15.diff"
53+
sha256 "64f638c4ffe0936016117f7355a1bbbbf2fec41b1e67bb64eac1bdca760eba23"
54+
end
55+
5056
def install
5157
ENV["DESTDIR"] = "/"
5258

53-
# Fix compile with newer Clang
54-
ENV.append_to_cflags "-Wno-implicit-function-declaration" if DevelopmentTools.clang_build_version >= 1403
55-
5659
system "meson", "setup", "build", "-Dgtk_doc=false", "-Dtests=false", *std_meson_args
5760
system "meson", "compile", "-C", "build", "--verbose"
5861
system "meson", "install", "-C", "build"

0 commit comments

Comments
 (0)