1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
Mirror of the FreeBSD ports git repo https://git.FreeBSD.org/ports.git .
Go to file
Dimitry Andric 43d0c7131e textproc/zxing-cpp: 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 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<unsigned char>'
      300 |   static_assert(is_same<_CharT, typename traits_type::char_type>::value,
          |                                          ^
    /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<unsigned char>' requested here
       72 | static size_t Utf8CountCodePoints(utf8_t utf8)
          |                                          ^
    /usr/include/c++/v1/__string/char_traits.h:45:8: note: template is declared here
       45 | struct char_traits;
          |        ^

`utf8_t` is effectively defined as `std::basic_string<uint8_t>`, which
is no longer possible. So redefine it as a `std::vector<uint8_t>`
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

PR:		280791
Approved by:	tcberner (maintainer)
MFH:		2024Q3
2024-08-16 17:35:26 +02:00
.hooks
accessibility all: Bump after lang/go121 update 2024-08-09 06:24:08 +00:00
arabic editors/libreoffice: update to 24.2.5 release (+) 2024-07-16 14:13:20 +03:00
archivers archivers/nfpm: update 2.38.0 → 2.39.0 2024-08-15 13:55:48 -07:00
astro *: Change *_DEPENDS from p5-Test2-Suite to p5-Test-Simple 2024-08-15 23:30:59 +08:00
audio audio/py-pyttsx3: Update to 2.91 2024-08-15 19:57:53 +02:00
benchmarks all: Bump after lang/go121 update 2024-08-09 06:24:08 +00:00
biology devel/grpc: Update to 1.65.4 2024-08-15 18:55:25 +08:00
cad devel/protobuf: Update to 27.3 2024-08-15 18:55:26 +08:00
chinese */wordpress*: Update to 6.6.1 2024-08-07 09:41:36 +02:00
comms comms/py-fritzconnection: update 1.13.2 → 1.14.0 2024-08-14 17:43:36 +03:00
converters textproc/libwbxml: Move textproc/wbxml2 to textproc/libwbxml 2024-08-15 18:55:23 +08:00
databases databases/tdb: Update to 1.4.9 2024-08-16 12:07:03 +02:00
deskutils deskutils/xfce4-notifyd: Update to 0.9.6 2024-08-15 12:24:51 +02:00
devel devel/llvm14: fix build with clang 19 2024-08-16 17:34:42 +02:00
dns *: Change *_DEPENDS from p5-Test2-Suite to p5-Test-Simple 2024-08-15 23:30:59 +08:00
editors editors/vim: Update to 9.1.0678 2024-08-16 09:26:41 -04:00
emulators emulators/ares: unbreak i386 build 2024-08-15 20:35:42 +03:00
finance all: Bump after lang/go122 update 2024-08-09 06:24:09 +00:00
french */wordpress*: Update to 6.6.1 2024-08-07 09:41:36 +02:00
ftp ftp/curl: Fix SIGPIPE initialization 2024-08-15 19:53:54 +08:00
games games/NBlood: update to r14084 2024-08-16 13:54:24 +02:00
german */wordpress*: Update to 6.6.1 2024-08-07 09:41:36 +02:00
graphics graphics/poppler: fix build with libc++ 19 2024-08-16 17:32:25 +02:00
hebrew editors/libreoffice: update to 24.2.5 release (+) 2024-07-16 14:13:20 +03:00
hungarian editors/libreoffice: update to 24.2.5 release (+) 2024-07-16 14:13:20 +03:00
irc irc/anope: 2.0.14 → 2.0.16 2024-08-16 16:17:05 +03:00
japanese devel/protobuf: Update to 27.3 2024-08-15 18:55:26 +08:00
java java/intellij-pty4j: update 0.11.4 → 0.12.35, take maintainership 2024-08-08 14:52:36 +03:00
Keywords
korean editors/libreoffice: update to 24.2.5 release (+) 2024-07-16 14:13:20 +03:00
lang lang/p5-Scalar-List-Utils: Update to 1.65 2024-08-15 18:55:33 +08:00
mail mail/s-nail: Update to 14.9.25 2024-08-16 16:19:27 +09:00
math *: Change *_DEPENDS from p5-Test2-Suite to p5-Test-Simple 2024-08-15 23:30:59 +08:00
misc misc/llama-cpp: update 3581 → 3593 2024-08-16 01:44:27 -07:00
Mk Mk/UsesMk/compiler.mk: Add c17 argument 2024-08-15 22:10:06 -07:00
multimedia multimedia/vvdec: remove ONLY_FOR_ARCHS 2024-08-16 13:54:21 +02:00
net net/routinator: enable on i386 2024-08-16 13:54:20 +02:00
net-im net-im/py-matrix-synapse: Allow build with py-setuptools-rust 1.10.1 2024-08-15 19:47:43 +08:00
net-mgmt net-mgmt/py-pynetbox: Update to 7.4.0 2024-08-16 05:46:00 +02:00
net-p2p net-p2p/monero-cli: fix returcode with miniupnpc 2.2.8 2024-08-16 17:02:16 +02:00
news news/inn-current: Update to 20240810 2024-08-13 12:37:29 -07:00
polish polish/hunspell: Update to 20240801 2024-08-05 05:17:37 +08:00
ports-mgmt ports-mgmt/synth: add missed patchfile, fixes the build (+) 2024-08-12 18:25:37 +03:00
portuguese editors/libreoffice: update to 24.2.5 release (+) 2024-07-16 14:13:20 +03:00
print print/lilypond-devel: update 2.25.17 → 2.25.18 2024-08-11 19:17:08 +03:00
russian */wordpress*: Update to 6.6.1 2024-08-07 09:41:36 +02:00
science science/{,py-}crystal: update 3.8.0 → 3.9.0 2024-08-15 13:55:48 -07:00
security security/py-ssh-audit: fix hang on runtime 2024-08-16 13:54:25 +02:00
shells shells/bash-completion-freebsd: Update to 1.3.0 2024-08-12 15:41:57 +02:00
sysutils sysutils/fastfetch: update to 2.21.3 2024-08-16 13:54:23 +02:00
Templates Framework: Finalize switch to share/man for manpages 2024-04-11 21:51:09 +03:00
textproc textproc/zxing-cpp: fix build with libc++ 19 2024-08-16 17:35:26 +02:00
Tools rmport: warn about node slave packages when removing a www/node port 2024-07-14 16:01:55 +02:00
ukrainian editors/libreoffice: update to 24.2.5 release (+) 2024-07-16 14:13:20 +03:00
vietnamese vietnamese/aspell: take maintainership 2024-07-20 13:10:48 +03:00
www www/ungoogled-chromium: update to 127.0.6533.119 2024-08-16 10:40:40 +02:00
x11 x11/foot: unbreak runtime after ac90984a4b 2024-08-15 20:52:09 +02:00
x11-clocks x11-clocks/wlclock: unbreak long options 2024-08-03 18:49:16 +02:00
x11-drivers x11-drivers/xorgxrdp: Fix build when DRI3=off 2024-08-07 11:23:40 +09:00
x11-fm x11-fm/doublecmd: update to 1.1.6 gamma release 2024-08-01 15:16:53 +03:00
x11-fonts x11-fonts/py-vfblib: Update to 0.7.1 2024-08-05 01:14:16 +08:00
x11-servers x11-servers/xwayland: update to 24.1.1 2024-07-17 14:18:15 +02:00
x11-themes Uses/kde.mk: prepare for the removal of devel/kf5-extra-cmake-modules 2024-07-23 15:51:04 +03:00
x11-toolkits x11-toolkits/wlroots-hyprland: remove after 8a07c7eca2 2024-08-12 02:54:38 +02:00
x11-wm x11-wm/picom: drop maintainership 2024-08-15 21:15:32 +02:00
.arcconfig
.gitignore
.mailmap
CHANGES CHANGES: Fix typos 2024-04-08 22:43:33 +02:00
CONTRIBUTING.md
COPYRIGHT
GIDs net-mgmt/ipfixcol2: New port: High-performance NetFlow v5/v9 and IPFIX collector (RFC7011) 2024-08-14 12:26:15 +07:00
Makefile README: searchable index of all ports is at ports.freebsd.org 2024-08-14 14:58:31 +00:00
MOVED devel/p5-Test2-Suite: Remove obsoleted port 2024-08-15 23:30:59 +08:00
README README: searchable index of all ports is at ports.freebsd.org 2024-08-14 14:58:31 +00:00
UIDs net-mgmt/ipfixcol2: New port: High-performance NetFlow v5/v9 and IPFIX collector (RFC7011) 2024-08-14 12:26:15 +07:00
UPDATING UPDATING: Fix another typo 2024-08-16 20:06:17 +09:00

This is the FreeBSD Ports Collection.  For an easy to use
WEB-based interface to it, please see:

	https://ports.FreeBSD.org

For general information on the Ports Collection, please see the
FreeBSD Handbook ports section which is available from:

	https://docs.freebsd.org/en/books/handbook/ports/
		for the latest official version
	or:
	The ports(7) manual page (man ports).

These will explain how to use ports and packages.

If you would like to search for a port, you can do so easily by
saying (in /usr/ports):

	make search name="<name>"
	or:
	make search key="<keyword>"

which will generate a list of all ports matching <name> or <keyword>.
make search also supports wildcards, such as:

	make search name="gtk*"

For information about contributing to FreeBSD ports, please see the Porter's
Handbook, available at:

	https://docs.freebsd.org/en/books/porters-handbook/

NOTE:  This tree will GROW significantly in size during normal usage!
The distribution tar files can and do accumulate in /usr/ports/distfiles,
and the individual ports will also use up lots of space in their work
subdirectories unless you remember to "make clean" after you're done
building a given port.  /usr/ports/distfiles can also be periodically
cleaned without ill-effect.