Skip to contentSkip to conversation

package/gdk-pixbuf: fix target loaders.cache

PATCH Applied Fabrice Fontaine 3 participants 3 messages Mar 22, 2022 – Mar 31, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/gdk-pixbuf: fix target loaders.cache

As reported by Rutger Sassen in
https://lists.buildroot.org/pipermail/buildroot/2022-March/638895.html,
target loaders.cache is broken since commit 75361a9aba042799040591fb84192802b137fc3a so fix it by prepending /usr/ to relative host paths

---
 package/gdk-pixbuf/gdk-pixbuf.mk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
package/gdk-pixbuf/gdk-pixbuf.mk +3 -3
index 6eaf023789..69bb34b0cb 100644
@@ -70,14 +70,14 @@ endif
 # gdk-pixbuf requires the loaders.cache file populated to work properly
 # Rather than doing so at runtime, since the fs can be read-only, do so
 # here after building and installing to target.
-# And since the cache file will contain absolute host directory names we
-# need to sanitize (strip) them.
+# And since the cache file will contain relative host directory names we
+# need to prepend them with /usr/.
 ifeq ($(BR2_STATIC_LIBS),)
 define GDK_PIXBUF_UPDATE_CACHE
 	GDK_PIXBUF_MODULEDIR=$(HOST_DIR)/lib/gdk-pixbuf-2.0/2.10.0/loaders \
 		$(HOST_DIR)/bin/gdk-pixbuf-query-loaders \
 		> $(TARGET_DIR)/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
-	$(SED) "s,$(HOST_DIR)/lib,/usr/lib,g" \
+	$(SED) 's,^"lib,"/usr/lib,g' \
 		$(TARGET_DIR)/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
 endef
 GDK_PIXBUF_POST_INSTALL_TARGET_HOOKS += GDK_PIXBUF_UPDATE_CACHE
Signature · 6 lines
2.35.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 7 lines · Fabrice Fontaine

As reported by Rutger Sassen in
https://lists.buildroot.org/pipermail/buildroot/2022-March/638895.html,
target loaders.cache is broken since commit 75361a9aba042799040591fb84192802b137fc3a so fix it by prepending /usr/ to relative host paths

Applied to master, thanks.

Regards,
Arnout

Quoted 16 lines
---
  package/gdk-pixbuf/gdk-pixbuf.mk | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
package/gdk-pixbuf/gdk-pixbuf.mk +2 -2
index 6eaf023789..69bb34b0cb 100644
@@ -70,14 +70,14 @@ endif
  # gdk-pixbuf requires the loaders.cache file populated to work properly
  # Rather than doing so at runtime, since the fs can be read-only, do so
  # here after building and installing to target.
-# And since the cache file will contain absolute host directory names we
-# need to sanitize (strip) them.
+# And since the cache file will contain relative host directory names we
+# need to prepend them with /usr/.

package/gdk-pixbuf/gdk-pixbuf.mk endif · line 83

Quoted 10 lines
package/gdk-pixbuf/gdk-pixbuf.mk +1 -1
  ifeq ($(BR2_STATIC_LIBS),)
  define GDK_PIXBUF_UPDATE_CACHE
  	GDK_PIXBUF_MODULEDIR=$(HOST_DIR)/lib/gdk-pixbuf-2.0/2.10.0/loaders \
  		$(HOST_DIR)/bin/gdk-pixbuf-query-loaders \
  		> $(TARGET_DIR)/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
-	$(SED) "s,$(HOST_DIR)/lib,/usr/lib,g" \
+	$(SED) 's,^"lib,"/usr/lib,g' \
  		$(TARGET_DIR)/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
  endef
  GDK_PIXBUF_POST_INSTALL_TARGET_HOOKS += GDK_PIXBUF_UPDATE_CACHE

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
In reply to Fabrice Fontaine
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

As reported by Rutger Sassen in
https://lists.buildroot.org/pipermail/buildroot/2022-March/638895.html,
target loaders.cache is broken since commit 75361a9aba042799040591fb84192802b137fc3a so fix it by prepending /usr/ to relative host paths

Committed to 2021.02.x and 2022.02.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot