package/gobject-introspection: fix gidatadir
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 9 Aug 2021 22:42:14 +0000 (00:42 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 13 Aug 2021 11:29:33 +0000 (13:29 +0200)
Since commit 521d387640d704f24caee51841388d98bcac739b gidatadir is
wrongly set to ${libdir}/../share, set it back to
${datadir}/gobject-introspection-1.0

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/gobject-introspection/gobject-introspection.mk

index f56d0c5eff43babce640f5acfc98615239e63ac2..81938b14dff3734fdfce851ea7f9a2addd718698 100644 (file)
@@ -121,7 +121,7 @@ define GOBJECT_INTROSPECTION_INSTALL_WRAPPERS
        # causes the host /usr/share being used instead of $(STAGING_DIR)/usr/share.
        # Change datadir to $(libdir)/../share which will prefix $(STAGING_DIR)
        # to the correct location.
-       $(SED) "s%datadir=.*%datadir=\$${libdir}/../share%g" \
+       $(SED) "s%^datadir=.*%datadir=\$${libdir}/../share%g" \
                $(STAGING_DIR)/usr/lib/pkgconfig/gobject-introspection-1.0.pc
 
        # By default, girdir and typelibdir use datadir and libdir as their prefix,