Re: mutter need one upstream patch to build with pange 1.58.0

Bruce Dubbs ([email protected] via blfs-dev Mailing List) <[email protected]> Mon, 29 Jun 2026 08:30:34 -0500
Newsgroups gmane.linux.lfs.beyond.devel
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1782739845-1024790-2051
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

On 6/29/26 12:02 AM, Zhang Wen ([email protected] via blfs-dev Mailing List) wrote:
> See the upsgream link:
> https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/5102
> 
> Maybe we can use sed instead, but i'm not good at the sed command.

That's interesting.  The path just removes one line if pango is greater than 1.57.2:

#if !PANGO_VERSION_CHECK(1, 57, 2)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PangoRenderer, g_object_unref)
#endif

Where PANGO_VERSION_CHECK is defined in pango as:

#define PANGO_VERSION_CHECK(major,minor,micro)    \
    (PANGO_VERSION >= PANGO_VERSION_ENCODE(major,minor,micro))

Since we are at pango-1.58.0, we can just do:
   sed -i '/AUTOPTR/d' clutter/clutter/pango/clutter-pango-private.h

If we want to duplicate the change the sed is:

sed -e '/AUTOPTR/i #if !PANGO_VERSION_CHECK(1, 57, 2)' \
     -e '/AUTOPTR/a #endif'                             \
     -i clutter/clutter/pango/clutter-pango-private.h

   -- Bruce


------------=_1782739845-1024790-2051
Content-Type: text/plain; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0

-- 
http://lists.linuxfromscratch.org/sympa/info/blfs-dev
Unsubscribe: See the above information page
------------=_1782739845-1024790-2051--