svn commit: r535220 - in head/emulators/wine-devel: . files

Gerald Pfeifer gerald at FreeBSD.org
Thu May 14 07:40:27 UTC 2020


Author: gerald
Date: Thu May 14 07:40:26 2020
New Revision: 535220
URL: https://svnweb.freebsd.org/changeset/ports/535220

Log:
  Revert 1ccd638b1aa85fb3c43b49d69d279cd509ebdc21 from upstream which
  causes problems upon startup while, hopefully, a fix will be created
  upstream. (This changes tools/winegcc/winegcc.c)
  
  Backport 23543f20058d1655d3ad552474ce99c01bbd78ea from upstream which
  landed after the Wine 5.8 snapshot (and should be included in the next)
  and avoid crashes related to fonts.
  
  With these two changes Wine should mostly work again.

Added:
  head/emulators/wine-devel/files/patch-dlls-dwrite-opentype.c   (contents, props changed)
  head/emulators/wine-devel/files/patch-tools-winegcc   (contents, props changed)
Modified:
  head/emulators/wine-devel/Makefile

Modified: head/emulators/wine-devel/Makefile
==============================================================================
--- head/emulators/wine-devel/Makefile	Thu May 14 07:36:29 2020	(r535219)
+++ head/emulators/wine-devel/Makefile	Thu May 14 07:40:26 2020	(r535220)
@@ -3,6 +3,7 @@
 
 PORTNAME=	wine
 DISTVERSION=	5.8
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	emulators
 MASTER_SITES=	SF/${PORTNAME}/Source \

Added: head/emulators/wine-devel/files/patch-dlls-dwrite-opentype.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/wine-devel/files/patch-dlls-dwrite-opentype.c	Thu May 14 07:40:26 2020	(r535220)
@@ -0,0 +1,27 @@
+The following is a backport of code contributed between Wine 5.8 and 5.9;
+it should be included in Wine 5.9 released later this month at which point
+this patch can (and should) go again.
+
+commit 23543f20058d1655d3ad552474ce99c01bbd78ea
+Author: Gijs Vermeulen <gijsvrm at gmail.com>
+Date:   Mon May 11 15:43:59 2020 +0200
+
+    dwrite: Set ret on unimplemented lookup in opentype_layout_apply_gsub_lookup.
+    
+    Signed-off-by: Gijs Vermeulen <gijsvrm at gmail.com>
+    Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
+    Signed-off-by: Alexandre Julliard <julliard at winehq.org>
+
+--- UTC
+diff --git dlls/dwrite/opentype.c dlls/dwrite/opentype.c
+index 0feb2feadc..f22cd7469b 100644
+--- dlls/dwrite/opentype.c
++++ dlls/dwrite/opentype.c
+@@ -4478,6 +4478,7 @@ static void opentype_layout_apply_gsub_lookup(struct scriptshaping_context *cont
+             case GSUB_LOOKUP_LIGATURE_SUBST:
+             case GSUB_LOOKUP_CONTEXTUAL_SUBST:
+             case GSUB_LOOKUP_REVERSE_CHAINING_CONTEXTUAL_SUBST:
++                ret = FALSE;
+                 WARN("Unimplemented lookup %d.\n", lookup_type);
+                 break;
+             default:

Added: head/emulators/wine-devel/files/patch-tools-winegcc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/wine-devel/files/patch-tools-winegcc	Thu May 14 07:40:26 2020	(r535220)
@@ -0,0 +1,33 @@
+Revert commit 1ccd638b1aa85fb3c43b49d69d279cd509ebdc21
+Author: Alexandre Julliard <julliard at winehq.org>
+Date:   Tue Apr 21 11:27:53 2020 +0200
+
+    winegcc: No longer use a constructor for module initialization.
+    
+    Signed-off-by: Alexandre Julliard <julliard at winehq.org>
+
+--- UTC
+diff --git tools/winegcc/winegcc.c tools/winegcc/winegcc.c
+index 8a7db2ad34..9008c457bd 100644
+--- tools/winegcc/winegcc.c
++++ tools/winegcc/winegcc.c
+@@ -553,6 +553,8 @@ static strarray *get_link_args( struct options *opts, const char *output_name )
+         strarray_add( flags, "-Wl,--no-wchar-size-warning" );
+     if (!try_link( opts->prefix, link_args, "-Wl,-z,defs" ))
+         strarray_add( flags, "-Wl,-z,defs" );
++    if (opts->shared && !try_link( opts->prefix, link_args, "-Wl,-init,__wine_spec_init" ))
++        strarray_add( flags, "-Wl,-init,__wine_spec_init" );
+ 
+     strarray_addall( link_args, flags );
+     return link_args;
+@@ -1408,8 +1410,8 @@ static void build(struct options* opts)
+         }
+     }
+ 
+-    if (!is_pe) fixup_constructors( opts, output_path );
+-    else if (opts->wine_builtin) make_wine_builtin( opts, output_path );
++    if (!is_pe && !opts->shared) fixup_constructors( opts, output_path );
++    if (is_pe && opts->wine_builtin) make_wine_builtin( opts, output_path );
+ 
+     /* create the loader script */
+     if (generate_app_loader)


More information about the svn-ports-head mailing list