def METHOD_NAME(self):
    # remove disable deprecated flag.
    filter_file(
        r'CFLAGS="-DGDK_PIXBUF_DISABLE_DEPRECATED $CFLAGS"', "", "configure", string=True
    )
    # https://gitlab.gnome.org/GNOME/gtk/-/issues/3776
    if self.spec.satisfies("@3:%gcc@11:"):
        filter_file("    '-Werror=array-bounds',", "", "meson.build", string=True)