From nobody Tue Aug 13 10:02:33 2024 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 4Wjn4V3NH1z5Sqn4 for ; Tue, 13 Aug 2024 10:02: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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wjn4T6tVgz4gDB for ; Tue, 13 Aug 2024 10:02:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723543354; a=rsa-sha256; cv=none; b=obV6174HYvlYHG4l9NGaJcJ1Uhb2WMo4fwfkC+aAFGeieotHvuwUdkmKH0Mnteunkbr4r0 TwZJLekt8WTEvgEO67o3IxhGu+tNrNHiJMORJzWVbPLE6EbvrO8MBtQJRbPPxJv4NRei+w RzspWYHdw91CE2J3JgkIKYw47ka3x1ZH5bDwqZ3YB0LouymM3uxBk0t4QmfAc1v8GWerkx TeUbxBXAGNC/ZBCoC5rI5a/hhk7Lo6BAai+6LYJK4/4CjU0JuOquFr3ov4PGVk20ExPkHO 0h1X51UyhvflpxqwROdECpdpvZdIt2NMVcVSTQeo1vovHLtbeQoXcvHK5uBCXw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723543354; 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=cOmJos7ZSs5Ve/p5hI0cqNYlNWl0aHnUaPslSEv7/KY=; b=oBb5qTvbOdFuHrS4/yqSVHd1CyOF3zvJ6KLo746t6I3XD0DcYgQC1mL1h7FasohB/n0Sny jmMAgUHgxTivq60iscqmJ4EvYvYT7+lX8kb0mXkFvpgVvTm8A/HJEPzJmOnojyAGs0+3Tu Teh7Zp3Z2BZ9mrt0vaAVNFO2MA01JW/13Z8joj4moF/9Wt9IUj9WCuuLjN3wpEX0k1cKJl iUwuCOMi6TWxKXCaV7xIcMCiEn1yF12dpPazrO7zWvE1qpx82VjhxtBpEoYVjuKXwOyk0V e6//nBRTfOUvNBc2a+Rh5XqaITEe+fgvANy6Dm4QQhvT2bXOABhcw6ZY47t13Q== 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 4Wjn4T6W5pz16Gl for ; Tue, 13 Aug 2024 10:02: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 47DA2XOF053277 for ; Tue, 13 Aug 2024 10:02:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47DA2XEt053276 for ports-bugs@FreeBSD.org; Tue, 13 Aug 2024 10:02: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 280791] textproc/zxing-cpp: fix build with libc++ 19 Date: Tue, 13 Aug 2024 10:02: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 Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kde@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name 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: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280791 Bug ID: 280791 Summary: textproc/zxing-cpp: fix build with libc++ 19 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: kde@FreeBSD.org Reporter: dim@FreeBSD.org Flags: maintainer-feedback?(kde@FreeBSD.org) Assignee: kde@FreeBSD.org 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 textproc/zxing-cpp to fail to compile with clang 19 and libc++ 19, resulting in errors similar to: /usr/include/c++/v1/string_view:300:42: error: implicit instantiation of undefined template 'std::char_traits' 300 | static_assert(is_same<_CharT, typename traits_type::char_type>::value, | ^ =20=20=20 /wrkdirs/usr/ports/textproc/zxing-cpp/work/zxing-cpp-2.2.1/core/src/Utf.cpp= :72:42: note: in instantiation of template class 'std::basic_string_view' requested here 72 | static size_t Utf8CountCodePoints(utf8_t utf8) | ^ /usr/include/c++/v1/__string/char_traits.h:45:8: note: template is decl= ared here 45 | struct char_traits; | ^ `utf8_t` is effectively defined as `std::basic_string`, which is no longer possible. So redefine it as a `std::vector` instead. This requires only a small adjustment in one other place: replacing the initializer list in the `AppendFromUtf8` call in `FromUtf8`. [1] https://libcxx.llvm.org/ReleaseNotes/19.html#deprecations-and-removals --=20 You are receiving this mail because: You are the assignee for the bug.=