Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107198591
D34679.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
5 KB
Referenced Files
None
Subscribers
None
D34679.diff
View Options
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1927,7 +1927,7 @@
load-octave-pkg \
ocamlfind \
update-desktop-database update-mime-database \
- gdk-pixbuf-query-loaders catalog.ports \
+ catalog.ports \
ccache-update-links
.if defined(USE_LOCAL_MK)
diff --git a/graphics/gdk-pixbuf2/Makefile b/graphics/gdk-pixbuf2/Makefile
--- a/graphics/gdk-pixbuf2/Makefile
+++ b/graphics/gdk-pixbuf2/Makefile
@@ -17,11 +17,13 @@
BUILD_DEPENDS= docbook-xsl>0:textproc/docbook-xsl
USES= cpe gettext gnome localbase:ldflags meson pkgconfig \
- python:3.4+,build shared-mime-info tar:xz
+ python:3.4+,build shared-mime-info tar:xz trigger
CPE_VENDOR= gnome
USE_GNOME= glib20 introspection:build libxslt:build
USE_LDCONFIG= yes
MESON_ARGS= -Dman=true
+TRIGGERS= gdk-pixbuf-query-loaders
+SUB_LIST= GTK2_VERSION=${GTK2_VERSION}
BINARY_ALIAS= python3=${PYTHON_VERSION}
diff --git a/graphics/gdk-pixbuf2/files/gdk-pixbuf-query-loaders.ucl.in b/graphics/gdk-pixbuf2/files/gdk-pixbuf-query-loaders.ucl.in
new file mode 100644
--- /dev/null
+++ b/graphics/gdk-pixbuf2/files/gdk-pixbuf-query-loaders.ucl.in
@@ -0,0 +1,17 @@
+path: "%%PREFIX%%/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders"
+cleanup: {
+ type: lua
+ sandbox: false
+ script: <<EOS
+print("Removing gdk-pixbuf cache directory")
+os.remove("%%PREFIX%%/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders")
+EOS
+}
+trigger: {
+ type: lua
+ sandbox: false
+ script: <<EOS
+print("Generating gdk-pixbuf modules cache")
+pkg.exec({"%%PREFIX%%/bin/gdk-pixbuf-query-loaders"})
+EOS
+}
diff --git a/graphics/gdk-pixbuf2/pkg-plist b/graphics/gdk-pixbuf2/pkg-plist
--- a/graphics/gdk-pixbuf2/pkg-plist
+++ b/graphics/gdk-pixbuf2/pkg-plist
@@ -152,5 +152,3 @@
share/locale/zh_HK/LC_MESSAGES/gdk-pixbuf.mo
share/locale/zh_TW/LC_MESSAGES/gdk-pixbuf.mo
share/thumbnailers/gdk-pixbuf-thumbnailer.thumbnailer
-@postexec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders.cache 2>/dev/null || /usr/bin/true
-@postunexec rm %D/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders.cache 2>&1 >/dev/null || true
diff --git a/graphics/libavif/pkg-plist b/graphics/libavif/pkg-plist
--- a/graphics/libavif/pkg-plist
+++ b/graphics/libavif/pkg-plist
@@ -9,5 +9,3 @@
lib/libavif.so.13
lib/libavif.so.13.0.0
libdata/pkgconfig/libavif.pc
-%%PIXBUF%%@postexec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders.cache 2>/dev/null || /usr/bin/true
-%%PIXBUF%%@postunexec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders.cache 2>/dev/null || /usr/bin/true
diff --git a/graphics/libjxl/pkg-plist b/graphics/libjxl/pkg-plist
--- a/graphics/libjxl/pkg-plist
+++ b/graphics/libjxl/pkg-plist
@@ -33,5 +33,3 @@
%%MANPAGES%%share/man/man1/djxl.1.gz
share/mime/packages/image-jxl.xml
%%PIXBUF%%share/thumbnailers/jxl.thumbnailer
-%%PIXBUF%%@postexec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders.cache 2>/dev/null || /usr/bin/true
-%%PIXBUF%%@postunexec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders.cache 2>/dev/null || /usr/bin/true
diff --git a/graphics/librsvg2-rust/pkg-plist b/graphics/librsvg2-rust/pkg-plist
--- a/graphics/librsvg2-rust/pkg-plist
+++ b/graphics/librsvg2-rust/pkg-plist
@@ -131,5 +131,3 @@
share/gir-1.0/Rsvg-2.0.gir
share/thumbnailers/librsvg.thumbnailer
share/vala/vapi/librsvg-2.0.vapi
-@postexec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders.cache 2>/dev/null || /usr/bin/true
-@postunexec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders.cache 2>/dev/null || /usr/bin/true
diff --git a/graphics/librsvg2/pkg-plist b/graphics/librsvg2/pkg-plist
--- a/graphics/librsvg2/pkg-plist
+++ b/graphics/librsvg2/pkg-plist
@@ -35,5 +35,3 @@
share/gir-1.0/Rsvg-2.0.gir
share/thumbnailers/librsvg.thumbnailer
%%VAPI%%share/vala/vapi/librsvg-2.0.vapi
-@postexec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders.cache 2>/dev/null || /usr/bin/true
-@postunexec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders.cache 2>/dev/null || /usr/bin/true
diff --git a/graphics/webp-pixbuf-loader/pkg-plist b/graphics/webp-pixbuf-loader/pkg-plist
--- a/graphics/webp-pixbuf-loader/pkg-plist
+++ b/graphics/webp-pixbuf-loader/pkg-plist
@@ -1,4 +1,2 @@
lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders/libpixbufloader-webp.so
share/thumbnailers/webp-pixbuf.thumbnailer
-@postexec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders.cache 2>/dev/null || /usr/bin/true
-@postunexec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders.cache 2>/dev/null || /usr/bin/true
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 12, 1:22 PM (21 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15769745
Default Alt Text
D34679.diff (5 KB)
Attached To
Mode
D34679: graphics/gdk-pixbuf2: add trigger to run gdk-pixbuf-query-loaders
Attached
Detach File
Event Timeline
Log In to Comment