Fix openSUSE 15.5 and Win32 builds

This commit is contained in:
Přemysl Eric Janouch 2024-04-06 20:41:06 +02:00
parent 7330f07dd7
commit e57364cd97
Signed by: p
GPG Key ID: A0420B94F92B9493
5 changed files with 19 additions and 9 deletions

View File

@ -400,7 +400,8 @@ fiv_io_cmm_argb32_premultiply(FivIoCmm *self,
#else // ! HAVE_LCMS2 || LCMS_VERSION < 2130 #else // ! HAVE_LCMS2 || LCMS_VERSION < 2130
static void static void
fiv_io_cmm_argb32(FivIoCmm *, FivIoImage *, FivIoProfile *, FivIoProfile *) fiv_io_cmm_argb32(G_GNUC_UNUSED FivIoCmm *self, G_GNUC_UNUSED FivIoImage *image,
G_GNUC_UNUSED FivIoProfile *source, G_GNUC_UNUSED FivIoProfile *target)
{ {
// TODO(p): Unpremultiply, transform, repremultiply. Or require lcms2>=2.13. // TODO(p): Unpremultiply, transform, repremultiply. Or require lcms2>=2.13.
} }

View File

@ -61,6 +61,9 @@
#ifdef HAVE_LIBTIFF #ifdef HAVE_LIBTIFF
#include <tiff.h> #include <tiff.h>
#include <tiffio.h> #include <tiffio.h>
#ifndef TIFF_TMSIZE_T_MAX
#define TIFF_TMSIZE_T_MAX ((tmsize_t) (SIZE_MAX >> 1))
#endif
#endif // HAVE_LIBTIFF #endif // HAVE_LIBTIFF
#ifdef HAVE_GDKPIXBUF #ifdef HAVE_GDKPIXBUF
#include <gdk-pixbuf/gdk-pixbuf.h> #include <gdk-pixbuf/gdk-pixbuf.h>

View File

@ -646,7 +646,8 @@ reload_screen_cms_profile(FivView *self, GdkWindow *window)
gchar *data = NULL; gchar *data = NULL;
gsize length = 0; gsize length = 0;
if (g_file_get_contents(path, &data, &length, NULL)) if (g_file_get_contents(path, &data, &length, NULL))
self->screen_cms_profile = fiv_io_profile_new(data, length); self->screen_cms_profile = fiv_io_cmm_get_profile(
fiv_io_cmm_get_default(), data, length);
g_free(data); g_free(data);
} }
g_free(path); g_free(path);

View File

@ -75,10 +75,15 @@ extract() {
--exclude '*/share/man' --exclude '*/share/doc' --exclude '*/share/man' --exclude '*/share/doc'
done < db.want done < db.want
bsdtar -xf exiftool.tar.gz # Don't require Perl, which may not exist anymore on i686:
mv Image-ExifTool-*/exiftool bin # https://github.com/msys2/MINGW-packages/pull/20085
mv Image-ExifTool-*/lib/* lib/perl5/site_perl if [ -d lib/perl5 ]
rm -rf Image-ExifTool-* then
bsdtar -xf exiftool.tar.gz
mv Image-ExifTool-*/exiftool bin
mv Image-ExifTool-*/lib/* lib/perl5/site_perl
rm -rf Image-ExifTool-*
fi
} }
configure() { configure() {

View File

@ -12,15 +12,15 @@ fi
# Copy binaries we directly or indirectly depend on. # Copy binaries we directly or indirectly depend on.
cp -p "$msys2_root"/bin/*.dll . cp -p "$msys2_root"/bin/*.dll .
cp -p "$msys2_root"/bin/wperl.exe . cp -p "$msys2_root"/bin/wperl.exe . || :
cp -p "$msys2_root"/bin/exiftool . cp -p "$msys2_root"/bin/exiftool . || :
# The console helper is only useful for debug builds. # The console helper is only useful for debug builds.
cp -p "$msys2_root"/bin/gspawn-*-helper*.exe . cp -p "$msys2_root"/bin/gspawn-*-helper*.exe .
cp -pR "$msys2_root"/etc/ . cp -pR "$msys2_root"/etc/ .
mkdir -p lib mkdir -p lib
cp -pR "$msys2_root"/lib/gdk-pixbuf-2.0/ lib cp -pR "$msys2_root"/lib/gdk-pixbuf-2.0/ lib
cp -pR "$msys2_root"/lib/perl5/ lib cp -pR "$msys2_root"/lib/perl5/ lib || :
mkdir -p share/glib-2.0/schemas mkdir -p share/glib-2.0/schemas
cp -pR "$msys2_root"/share/glib-2.0/schemas/*.Settings.* share/glib-2.0/schemas cp -pR "$msys2_root"/share/glib-2.0/schemas/*.Settings.* share/glib-2.0/schemas
mkdir -p share/icons mkdir -p share/icons