Commit 00afd3a5 authored by satmandu's avatar satmandu Committed by GitHub

fix png/gdk_pixbuf dep loop (#5563)

* fix png/gdk_pixbuf dep loop

* more gdk_pixbuf workarounds

* temporary workaround for runtime dep circular dependency
parent a6748a5d
......@@ -25,10 +25,10 @@ class Gdk_pixbuf < Package
depends_on 'glib'
depends_on 'gobject_introspection' => :build
depends_on 'jasper' => :build
depends_on 'libjpeg'
depends_on 'libpng'
depends_on 'libtiff'
depends_on 'libwebp' => :build
depends_on 'libjpeg' => :build #Actually runtime
depends_on 'libpng' => :build #Actually runtime
depends_on 'libtiff' => :build #Actually runtime
depends_on 'libwebp' => :build
depends_on 'pango' => :build
depends_on 'six' => :build
......
......@@ -61,6 +61,9 @@ class Libavif < Package
end
def self.postinstall
system 'gdk-pixbuf-query-loaders --update-cache'
if File.exist?("#{CREW_PREFIX}/bin/gdk-pixbuf-query-loaders")
system 'gdk-pixbuf-query-loaders',
'--update-cache'
end
end
end
......@@ -50,6 +50,9 @@ class Libheif < Package
end
def self.postinstall
system 'gdk-pixbuf-query-loaders --update-cache'
if File.exist?("#{CREW_PREFIX}/bin/gdk-pixbuf-query-loaders")
system 'gdk-pixbuf-query-loaders',
'--update-cache'
end
end
end
......@@ -43,10 +43,13 @@ class Libpng < Package
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
def self.postinstall
# *.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
system 'update-mime-database', "#{CREW_PREFIX}/share/mime"
system 'gdk-pixbuf-query-loaders', '--update-cache'
if File.exist?("#{CREW_PREFIX}/bin/gdk-pixbuf-query-loaders")
system 'gdk-pixbuf-query-loaders',
'--update-cache'
end
end
end
......@@ -42,6 +42,9 @@ class Libwmf < Package
end
def self.postinstall
system 'gdk-pixbuf-query-loaders --update-cache'
if File.exist?("#{CREW_PREFIX}/bin/gdk-pixbuf-query-loaders")
system 'gdk-pixbuf-query-loaders',
'--update-cache'
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment