From nobody Tue Jul 04 14:54:33 2023 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QwQmp2ZwQz4lk3w for ; Tue, 4 Jul 2023 14:54:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QwQmn5yFQz3nwm for ; Tue, 4 Jul 2023 14:54:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688482473; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nzNr9q3s4+M8gxZqHTFiKyWuWWd/TytaWVwLMowyn14=; b=OiZa4qaU/c2daL2O1koWREFKN/Vyam5L+SB6n4whpv63ONwxCfBIdaDFpgXQ+eqiAZclcK /q56XQ7ji922ROkWzTYq4JKlNDr1h1+5OCmsHFJT4ZwweRzH8MckuNs6Dcb1kCTjUpmQ/8 CWpAFqCJCkut/hZJTFl1GJvM+p6Jgd7Cg2iTv1u+2MAYXQQSn4QDCG6VlbSb4BCGSSMAq+ 7HsKDMCXJM+9/iGkSvUNsyvqBazU1MkdjLF9yE/5ibywrbucQllviQAOds02Z3tpQ1+sjD k81cZs1oIdApdR6Obl+bc9Q2WAvXRqtRwS4vY+kNlCsltZcHPgaw7Vsf9Ox1wg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688482473; a=rsa-sha256; cv=none; b=CSH/z1XS23vj67b/NlQbCAb4ZvgWKSB/knYzWPfF4xiExhSOlMbLGbsgK+7RKY88wkH8uo bjAqAfezJb5VBgP1rzReAB35poTELVC521hbCdmlJFjzBWj3p+xrAVqdpcE9ZkoYGwW9fk 4reXYgR6P+V1LaQ5FBMZscMUCh/iFbqN1soo4AhzbXqsThpM+w2VrpWrR6tF8uBONVgMST cj257obiMQEzOI79qoaGiOOfpSPB0tesIHHqAKVNrSJLzxrl0F6FX+eMspvHK88/TXQdpF bvFgE+K6KVtddMNBJuFoDJvTINWZhmOQtaBd+KdTcyhDc3ZktbW2uM8JZOgyXQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QwQmn4ydMzcp6 for ; Tue, 4 Jul 2023 14:54:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 364EsX67060129 for ; Tue, 4 Jul 2023 14:54:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 364EsXGh060128 for ports-bugs@FreeBSD.org; Tue, 4 Jul 2023 14:54:33 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 272364] textproc/p5-SGML-Parser-OpenSP: Fix build with Perl 5.38 Date: Tue, 04 Jul 2023 14:54:33 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: yasu@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? merge-quarterly? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272364 Bug ID: 272364 Summary: textproc/p5-SGML-Parser-OpenSP: Fix build with Perl 5.38 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: yasu@freebsd.org CC: cyberbotx@cyberbotx.com CC: cyberbotx@cyberbotx.com Flags: maintainer-feedback?(cyberbotx@cyberbotx.com) Flags: merge-quarterly? Created attachment 243200 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D243200&action= =3Dedit Patch file When 5.38 is default perl5 version, build of this port fails as following. --- OpenSP.c --- Warning: Found a 'CODE' section which seems to be using 'RETVAL' but no 'OUTPUT' section. in OpenSP.xs, line 1178 mv OpenSP.xsc OpenSP.c --- OpenSP.o --- c++ -c -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack-protector-strong -fno-strict-aliasin= g=20=20=20 -DVERSION=3D\"0.994\" -DXS_VERSION=3D\"0.994\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.38/mach/CORE" -DSP_MULTI_BYTE=3D1 OpenSP.c c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] OpenSP.xs:165:17: error: use of undeclared identifier 'uvuni_to_utf8_flags' d =3D uvuni_to_utf8_flags(d, s.ptr[i], 0); ^ OpenSP.xs:174:17: error: use of undeclared identifier 'uvuni_to_utf8_flags' d =3D uvuni_to_utf8_flags(d + SvCUR(result), s.ptr[i], 0); ^ 2 errors generated. *** [OpenSP.o] Error code 1 make[1]: stopped in /usr0/freebsd/ports/work/usr/ports/textproc/p5-SGML-Parser-OpenSP/work/SGML= -Parser-OpenSP-0.994 1 error make[1]: stopped in /usr0/freebsd/ports/work/usr/ports/textproc/p5-SGML-Parser-OpenSP/work/SGML= -Parser-OpenSP-0.994 =3D=3D=3D> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failure = to the maintainer. *** Error code 1 Stop. make: stopped in /usr/ports/textproc/p5-SGML-Parser-OpenSP In the perlintern(1) man pages of perl 5.36.1, there are sentences as following. "uvuni_to_utf8_flags" "DEPRECATED!" It is planned to remove "uvuni_to_utf8_flags" from a future release of Perl. Do not use it for new code; remove it from existing code. Instead you almost certainly want to use "uvchr_to_utf8" in perlapi or "uvchr_to_utf8_flags" in perlapi. This function is a deprecated synonym for "uvoffuni_to_utf8_flags", which itself, while not deprecated, should be used only in isolated circumstances. These functions were useful for code that wanted to handle both EBCDIC and ASCII platforms with Unicode properties, but starting in Perl v5.20, the distinctions between the platforms have mostly been made invisible to most code, so this function is quite unlikely to be what you want. U8* uvuni_to_utf8_flags(U8 *d, UV uv, UV flags) So it seems planned removal finally happend with 5.38. There are two occurrences of uvuni_to_utf8_flags in OpenSP.xs. So fix build= by replacing them with uvchr_to_utf8_flags. MFH: 2023Q3 --=20 You are receiving this mail because: You are the assignee for the bug.=