Issue building Cairo linked to glib: undefined method `uses_from_macos'

Hi !
I wanted to reinstall Gtk because I got an issue with empty windows. But now Cairo does not want to build.

I tried to update,upgrade, update-reset, rm, … Homebrew.
There is a topic on brew "forum"about that brew topic but there doesn’t seem to have a solution.

I don’t know what to do.

Thank you for your help !

" **┌ Error:** Error building `Cairo`: 

**│** WARNING: redefining constant DEBIAN_VERSION_REGEX

**│** WARNING: redefining constant have_sonames

**│** WARNING: redefining constant sonames

**│** WARNING: redefining constant EXTENSIONS

**│** Error: glib: undefined method `uses_from_macos' for Formulary::FormulaNamespacea48ca441d76283034e0771f11ba514b0::Glib:Class

**│** Error: glib: undefined method `uses_from_macos' for Formulary::FormulaNamespacea48ca441d76283034e0771f11ba514b0::Glib:Class

**│** Error: glib: undefined method `uses_from_macos' for Formulary::FormulaNamespacea48ca441d76283034e0771f11ba514b0::Glib:Class

**│** 

**│** signal (11): Segmentation fault: 11

**│** in expression starting at /Users/Asphod/.julia/packages/Cairo/p68X8/deps/build.jl:176

**│** _platform_strcmp at /usr/lib/system/libsystem_platform.dylib (unknown line)

**│** Allocations: 20052375 (Pool: 20049509; Big: 2866); GC: 44

Building Cairo has been a problem since a few months, I’m not sure there’s a clear solution yet:

I broke my Gtk installation last week, and the only thing I could do was copy an older version of my Homebrew folder (which contains all the binary dependency) to restore it to a working state.

Maybe try the master branch of Homebrew: