From d0679f8ab9d31dcfbef3493e2a646c084c17f229 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 15 Jun 2021 15:56:16 +0200 Subject: test build for fix for bad prefix guess from https://github.com/libvips/libvips/pull/2308 only use openjpeg2 >= 2.4 (Fedora >= 34) --- vips-lib64.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 vips-lib64.patch (limited to 'vips-lib64.patch') diff --git a/vips-lib64.patch b/vips-lib64.patch new file mode 100644 index 0000000..edcc88b --- /dev/null +++ b/vips-lib64.patch @@ -0,0 +1,22 @@ +From ea48b6a482f4e85c967593fc8dc523e3d10a7067 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Tue, 15 Jun 2021 15:17:35 +0200 +Subject: [PATCH] use /lib64 instead of /lib when needed + +--- + libvips/iofuncs/init.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/libvips/iofuncs/init.c b/libvips/iofuncs/init.c +index 74f9cdd93..b7b9e8e0b 100644 +--- a/libvips/iofuncs/init.c ++++ b/libvips/iofuncs/init.c +@@ -1226,6 +1226,8 @@ vips_guess_libdir( const char *argv0, const char *env_name ) + */ + if( strcmp( prefix, VIPS_PREFIX ) == 0 ) + libdir = VIPS_LIBDIR; ++ else if ( strstr(VIPS_LIBDIR, "/lib64") ) ++ libdir = g_strdup_printf( "%s/lib64", prefix ); + else + libdir = g_strdup_printf( "%s/lib", prefix ); + -- cgit