From nobody Sat Sep 28 10:02:24 2024 X-Original-To: office@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 4XG2v45TfDz5X64X for ; Sat, 28 Sep 2024 10:02:24 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XG2v43dlyz44YC for ; Sat, 28 Sep 2024 10:02:24 +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=1727517744; 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: in-reply-to:in-reply-to:references:references; bh=77r53vjZQCCydzIMiM5IEXiNS23GdZAfhRx19uxQYX0=; b=SqduzOZtB3C0E7mesaxi1pA4OuaMvUzSt1p2W8yNBt2gaugVPDd9YPsO8LkIxY2SevXqFX QZEkI08t1qx8keFDg/TZ3so8pCyXDA+U6P7c4/fbm/Ut/Lg6JNWKj5JFaj6MdZVeF2h8b9 N6Cu2cWVjMf4c1cd5oqMtkOKrMQyLVCKZC0yaTAwew4SWgelYKKF6acDW2ig6OSz+QltMr 5WGlz+mICtOINoUZo1ADRwmQ3vYEbjG4gtk2oJmY4TxDX01Sd6ytRFfLj6/D4y5FDPrwte 0sS/LVl8DOuX30csS2n6LhEaIJoRpuCQ8cMaz2AqpQz/0hK3vTnFN6e/DPSZrA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727517744; a=rsa-sha256; cv=none; b=MmAt9wi6TRu830OGHEnbtAvqzDwP36+7r0WtR0qfx3NO/nAiyvJqKKhew034/KEDr6ENhq VaQqNKVQQZ/xkDJn3OHkjjccYQQAWvVZM3UOSETGHjlplG6s81OHMFKkoswi+t64pVLfb4 MyU5reDmA4ozZ1NlpZSRi7Yp/aL6O0bigSgslaE3gZ+2deK7pkEcT+5b7epT6ANwnfXvLD hBrPjEIUlE+DgFcFD62kFerDEY5VbyjO7Ts+hhdzoWFysTimS8JzEBK32rW+gaN1RcjzZ8 ToRUNShZEU+aS8Kg6NG/nPRBcPfuwfkHHmC9o9vFy35BuFZOuKVatD/D9rcQ8Q== 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 4XG2v43GRrzKpq for ; Sat, 28 Sep 2024 10:02:24 +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 48SA2OoE050317 for ; Sat, 28 Sep 2024 10:02:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 48SA2OoF050316 for office@FreeBSD.org; Sat, 28 Sep 2024 10:02:24 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: office@FreeBSD.org Subject: [Bug 281516] graphics/libemf: fix build with libc++ 19 Date: Sat, 28 Sep 2024 10:02:24 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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 Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: office@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: Office applications on FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-office List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-office@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281516 --- Comment #3 from commit-hook@FreeBSD.org --- A commit in branch 2024Q3 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3D5b9dda30c763cfaf81e0abcdeee4f6b= 2ac02ff45 commit 5b9dda30c763cfaf81e0abcdeee4f6b2ac02ff45 Author: Dimitry Andric AuthorDate: 2024-09-15 11:55:03 +0000 Commit: Dimitry Andric CommitDate: 2024-09-28 10:01:20 +0000 graphics/libemf: fix build with libc++ 19 As noted in the libc++ 19 release notes [1], std::char_traits<> is now only provided for char, char8_t, char16_t, char32_t and wchar_t, and any instantiation for other types will fail. This causes graphics/libemf to fail to compile with clang 19 and libc++ 19, resulting in errors similar to: /usr/include/c++/v1/string:820:42: error: implicit instantiation of undefined template 'std::char_traits' 820 | static_assert(is_same<_CharT, typename traits_type::char_type>::value, | ^ libemf.cpp:982:30: note: in instantiation of template class 'std::basic_string' requested here 982 | std::basic_string filename_w( filename, filename + filename_count ); | ^ /usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared = here 23 | struct _LIBCPP_TEMPLATE_VIS char_traits; | ^ libemf should really use char16_t for its 16-bit character type, but the code is full of Windows assumptions that WCHAR is unsigned short. Since std::basic_string is no longer available, use std::basic_string instead, and cast the result to the appropriate type for GetEnhMetaFileW(). [1] https://libcxx.llvm.org/ReleaseNotes/19.html#deprecations-and-remov= als PR: 281516 Approved by: maintainer timeout (~2 weeks) MFH: 2024Q3 (cherry picked from commit 2b65317363f625eceb125cad5864fd873a66562f) graphics/libemf/files/patch-libemf_libemf.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) --=20 You are receiving this mail because: You are the assignee for the bug.=