From owner-svn-ports-all@freebsd.org Tue Nov 6 15:42:40 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BB7BD1127F3F; Tue, 6 Nov 2018 15:42:39 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46E527C9F0; Tue, 6 Nov 2018 15:42:39 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2811DACD; Tue, 6 Nov 2018 15:42:39 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wA6FgdEd012336; Tue, 6 Nov 2018 15:42:39 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wA6Fgc5d012334; Tue, 6 Nov 2018 15:42:38 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201811061542.wA6Fgc5d012334@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Tue, 6 Nov 2018 15:42:38 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r484301 - in branches/2018Q4/devel/glib20: . files X-SVN-Group: ports-branches X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in branches/2018Q4/devel/glib20: . files X-SVN-Commit-Revision: 484301 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 46E527C9F0 X-Spamd-Result: default: False [-103.09 / 200.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; ALLOW_DOMAIN_WHITELIST(-100.00)[FreeBSD.org]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.991,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; HAS_XAW(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all]; DMARC_NA(0.00)[FreeBSD.org]; RCVD_COUNT_THREE(0.00)[4]; MX_GOOD(-0.01)[cached: mx1.FreeBSD.org]; NEURAL_HAM_SHORT(-0.99)[-0.988,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_TLS_LAST(0.00)[] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2018 15:42:40 -0000 Author: jbeich Date: Tue Nov 6 15:42:38 2018 New Revision: 484301 URL: https://svnweb.freebsd.org/changeset/ports/484301 Log: MFH: r483878 devel/glib20: revert to old g_convert() behavior PR: 232073 Reported by: many (via inkscape) Suggested by: tijl Tested by: glib/tests/convert Approved by: ports-secteam blanket Added: branches/2018Q4/devel/glib20/files/patch-revert-8abf3a0 - copied unchanged from r483878, head/devel/glib20/files/patch-revert-8abf3a0 Modified: branches/2018Q4/devel/glib20/Makefile Directory Properties: branches/2018Q4/ (props changed) Modified: branches/2018Q4/devel/glib20/Makefile ============================================================================== --- branches/2018Q4/devel/glib20/Makefile Tue Nov 6 15:38:49 2018 (r484300) +++ branches/2018Q4/devel/glib20/Makefile Tue Nov 6 15:42:38 2018 (r484301) @@ -3,7 +3,7 @@ PORTNAME= glib PORTVERSION= 2.56.1 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= devel MASTER_SITES= GNOME Copied: branches/2018Q4/devel/glib20/files/patch-revert-8abf3a0 (from r483878, head/devel/glib20/files/patch-revert-8abf3a0) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2018Q4/devel/glib20/files/patch-revert-8abf3a0 Tue Nov 6 15:42:38 2018 (r484301, copy of r483878, head/devel/glib20/files/patch-revert-8abf3a0) @@ -0,0 +1,61 @@ +Revert https://gitlab.gnome.org/GNOME/glib/commit/8abf3a04e699 for +breaking at least graphics/inkscape as wchar_t is locale-dependent. + +--- glib/gconvert.c.orig 2018-03-12 16:23:37 UTC ++++ glib/gconvert.c +@@ -264,13 +264,6 @@ g_iconv_open (const gchar *to_codeset, + * GLib provides g_convert() and g_locale_to_utf8() which are likely + * more convenient than the raw iconv wrappers. + * +- * Note that the behaviour of iconv() for characters which are valid in the +- * input character set, but which have no representation in the output character +- * set, is implementation defined. This function may return success (with a +- * positive number of non-reversible conversions as replacement characters were +- * used), or it may return -1 and set an error such as %EILSEQ, in such a +- * situation. +- * + * Returns: count of non-reversible conversions, or -1 on error + **/ + gsize +@@ -379,14 +372,6 @@ close_converter (GIConv cd) + * character until it knows that the next character is not a mark that + * could combine with the base character.) + * +- * Characters which are valid in the input character set, but which have no +- * representation in the output character set will result in a +- * %G_CONVERT_ERROR_ILLEGAL_SEQUENCE error. This is in contrast to the iconv() +- * specification, which leaves this behaviour implementation defined. Note that +- * this is the same error code as is returned for an invalid byte sequence in +- * the input character set. To get defined behaviour for conversion of +- * unrepresentable characters, use g_convert_with_fallback(). +- * + * Returns: (array length=bytes_written) (element-type guint8) (transfer full): + * If the conversion was successful, a newly allocated buffer + * containing the converted string, which must be freed with +@@ -466,13 +451,6 @@ g_convert_with_iconv (const gchar *str, + break; + } + } +- else if (err > 0) +- { +- /* @err gives the number of replacement characters used. */ +- g_set_error_literal (error, G_CONVERT_ERROR, G_CONVERT_ERROR_ILLEGAL_SEQUENCE, +- _("Unrepresentable character in conversion input")); +- have_error = TRUE; +- } + else + { + if (!reset) +--- glib/gconvert.h.orig 2018-02-06 15:44:20 UTC ++++ glib/gconvert.h +@@ -37,9 +37,7 @@ G_BEGIN_DECLS + * GConvertError: + * @G_CONVERT_ERROR_NO_CONVERSION: Conversion between the requested character + * sets is not supported. +- * @G_CONVERT_ERROR_ILLEGAL_SEQUENCE: Invalid byte sequence in conversion input; +- * or the character sequence could not be represented in the target +- * character set. ++ * @G_CONVERT_ERROR_ILLEGAL_SEQUENCE: Invalid byte sequence in conversion input. + * @G_CONVERT_ERROR_FAILED: Conversion failed for some reason. + * @G_CONVERT_ERROR_PARTIAL_INPUT: Partial character sequence at end of input. + * @G_CONVERT_ERROR_BAD_URI: URI is invalid.