1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
Commit Graph

682030 Commits

Author SHA1 Message Date
Rainer Hurling
e2a8f8dcf5 devel/py-qstylizer: Update to 0.2.4
Fix regex string to stop SyntaxWarning

Changelog: https://github.com/blambright/qstylizer/compare/0.2.3...0.2.4

Reported by:	portscout, Repology
MFH:		2024Q4

(cherry picked from commit 7fbcbebbec)
2024-11-24 17:49:27 +01:00
Serhii (Sergey) Kozlov
ae28458150 ftp/sftpgo: unbreak build
SFTPGo requires Go 1.22.7+, but the default is 1.21, so it doesn't
build without specifying the version explicitly. Unfortunatelly, go.mk
doesn't support specifying _minimum_ Go version, so I have to pin it to
1.22 even though the port builds OK on 1.23 and 1.24.

(cherry picked from commit 8cb463576e)
2024-11-24 14:15:54 +00:00
Daniel Engberg
ab3dadd758 databases/mdbtools: Allow newer LLMV/Clang
- Import patch from macports repo
- Improve Makefile for readability
- Bump PORTVERSION because of different pkg size

PR:		282938

MFH:		2024Q4
(cherry picked from commit e94112fafc)
2024-11-24 10:44:27 +01:00
Thomas Zander
deca96638d
sysutils/zellij: Update to upstream release 0.41.2
Details:
- Bugfix release, see
  https://github.com/zellij-org/zellij/releases/tag/v0.41.2

MFH:		2024Q4
(cherry picked from commit 5d21b9abf0)
2024-11-23 19:58:17 +01:00
Michael Gmelin
0cbaa6fcee sysutils/iocage-devel: Add hardening measures on untar
This adds hardening measures while untaring archives fetched
over the network (including FreeBSD tarballs and iocage plugins),
as implemented by TrueNAS.

This reduces the impact of intentionally malicious or accidentally
broken archives.

Please note that users are still advised to only fetch from
trusted sources and make use of TLS to prevent MITM attacks.

While there, add patch to store man pages in the correct location.

Obtained from:          https://github.com/truenas/iocage/pull/358

(cherry picked from commit a4b2dd4648)
2024-11-23 19:25:51 +01:00
Michael Gmelin
48716a2641 sysutils/iocage: Add hardening measures on untar
This adds hardening measures while untaring archives fetched
over the network (including FreeBSD tarballs and iocage plugins),
as implemented by TrueNAS.

This reduces the impact of intentionally malicious or accidentally
broken archives.

Please note that users are still advised to only fetch from
trusted sources and make use of TLS to prevent MITM attacks.

While there, add patch to store man pages in the correct location.

Obtained from:		https://github.com/truenas/iocage/pull/358

(cherry picked from commit c4139815d8)
2024-11-23 19:22:58 +01:00
Jason E. Hale
0217bc049f www/qt6-webengine: Address multiple vulnerabilities
Includes security patches up to Chromium 130.0.6723.116.

MFH:		2024Q4
Security:	889eddee-a964-11ef-b680-4ccc6adda413
(cherry picked from commit 43a03e9b73)
2024-11-23 11:00:06 -05:00
Jan Beich
d66b3a399a graphics/libjxl: enable AVX512 runtime detection (amd64-only)
Upstream default is optimized for bundling or Linux-style micro-packages.
FreeBSD currently doesn't split docs/headers/plugins, so minor binary size
increase (7 MiB -> 9 MiB) is less important. FreeBSD is primarily used on
servers where AVX512 is more common while on old desktops libjxl bloat is
dwarfed by many other packages (e.g., firefox, llvm*, gcc*, boost-libs).

See also https://github.com/libjxl/libjxl/pull/2627#issuecomment-1618237136

(cherry picked from commit 18d435c1e3)
2024-11-23 12:01:39 +01:00
Jason E. Hale
5e22d1c314 net-im/telegram-desktop: Chase Qt5 update
This unfortunately makes use of the Qt private API, so it has to be
rebuilt with each Qt update.

MFH:		2024Q4
(cherry picked from commit 4b89736d15)
2024-11-23 00:48:50 -05:00
Jason E. Hale
114bfa2414 Qt5: Update to 5.15.16
Update devel/pyside2* and devel/shiboken2 to 5.15.16

Update www/qt5-webengine to include the latest security fixes in
the chromium submodule [1]

Release note:
https://code.qt.io/cgit/qt/qtreleasenotes.git/about/qt/5.15.16/release-note.md

MFH:		2024Q4
Security:	16e472d5-a8aa-11ef-b680-4ccc6adda413 [1]
(cherry picked from commit 501ccfe6dd)
2024-11-23 00:41:29 -05:00
Jan Beich
5ce6ee9b77 graphics/libjxl: expose LCMS2 support (disabled by default)
lcms2 and skcms interpret color profiles differently. Upstream
default seems to be optimized for rendering in Chromium and Firefox.

https://github.com/libjxl/libjxl/blob/v0.11.0/doc/color_management.md#cms-library
https://github.com/libjxl/libjxl/issues/1579#issuecomment-1180561564
(cherry picked from commit cafd30223c)
2024-11-23 06:29:21 +01:00
Piotr Kubaj
1cb50a2ddd graphics/libjxl: fix build on big-endian
-- Big-endian architecture detected; defaulting to lcms2 instead of skcms

(cherry picked from commit 7dbe2e17c9)
2024-11-23 06:29:18 +01:00
Jan Beich
25b58a2ca1 graphics/libjxl: unbreak JPEG=off build after 70e2590d63
In file included from lib/extras/dec/jpegli.cc:16:
In file included from lib/extras/enc/jpegli.cc:27:
In file included from lib/jpegli/common.h:23:
lib/jxl/base/include_jpeglib.h:15:10: fatal error: 'jpeglib.h' file not found
   15 | #include <jpeglib.h>  // IWYU pragma: keep
      |          ^~~~~~~~~~~

PR:		282926
Reported by:	amdmi3

(cherry picked from commit ada3d2df83)
2024-11-23 05:11:14 +01:00
Colin Percival
08b1c19992 misc/freebsd-release-manifests: Add 14.2-RC1 MANIFEST files
Approved by:	re (implicit)
Sponsored by:	Amazon

(cherry picked from commit 6df70458f8)
2024-11-22 16:29:01 -08:00
Vladimir Druzenko
cf35b63e39 Revert "devel/wasi-libc: chase missed _DEPENDS line changes after flavourisation"
Flavorization of the devel/wasi-libc was not MFH.

This reverts commit 0c538aad8a.
2024-11-22 19:33:34 +03:00
Vladimir Druzenko
f56874033f www/tor-browser: Update 14.0.1 → 14.0.2
Release notes:
https://blog.torproject.org/new-release-tor-browser-1402/

PR:		282752
Approved by:	Martin Filla <freebsd@sysctl.cz> (maintainer)
MFH:		2024Q4

(cherry picked from commit 2ba33d0e9c)
2024-11-22 19:12:41 +03:00
Vladimir Druzenko
746fb80588 www/tor-browser: Improve port
- move git tags to variables,
- move list of locales to variable,
- replace CP+CHMOD with COPYTREE_SHARE,
- sort options,
- align lines,
- strip long lines,
- pet portclippy,
- use UNZIP_NATIVE_CMD instead if direct run unzip,
- remove unnecessary BUILD_DEPENDS from zip.

PR:		282752
Approved by:	Martin Filla <freebsd@sysctl.cz> (maintainer)
MFH:		2024Q4

(cherry picked from commit b9efb7c8e0)
2024-11-22 19:12:35 +03:00
Jesper Schmitz Mouridsen
540a0656dc www/tor-browser: Update to 14.0.1
Remove webrtc patches since webrtc is disabled.

PR:	281551
Approved by:	Martin Filla <freebsd@sysctl.cz> (maintainer)
Co-authored-by: Martin Filla <freebsd@sysctl.cz>

(cherry picked from commit e1f70209b0)
2024-11-22 19:11:56 +03:00
Charlie Li
0c538aad8a devel/wasi-libc: chase missed _DEPENDS line changes after flavourisation
(cherry picked from commit 1c5ebef22a)
2024-11-22 19:09:37 +03:00
Dimitry Andric
fa64477e6c graphics/povray37: 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/povray37 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<unsigned short>'
    820 |   static_assert(is_same<_CharT, typename traits_type::char_type>::value,
        |                                          ^
  ./base/configbase.h:159:19: note: in instantiation of template class 'std::basic_string<unsigned short>' requested here
    159 | inline UCS2String ASCIItoUCS2String(const char *s)
        |                   ^
  /usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
     23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
        |                             ^

This can be fixed by defining `POVMSUCS2` as `char16_t` instead of
`unsigned short`, `UCS2` as `char16_t` instead of `unsigned short`, and
`UCS4` as `char32_t` instead of `unsigned int` in the passed-in
`CPPFLAGS` variable.

Also, patch up `vfe.cpp` and `vfeconf.h` to use `char16_t` and
`u16string` instead of the non-standard types.

[1] https://libcxx.llvm.org/ReleaseNotes/19.html#deprecations-and-removals

PR:		282645
Approved by:	bsd@philippost.de (maintainer)
MFH:		2024Q4

(cherry picked from commit 6133473e42)
2024-11-22 00:11:13 +01:00
Don Lewis
47ae7312e8 editors/openoffice-devel: Upgrade to a newer snapshot
Upgrade openoffice-devel to a new snapshot with multiple bug fixes.

Some of our patches have been upstreamed.

No longer use -Os optimization. It seems to be buggy.

Some non-default options can generate debug symbols, so always
strip the binaries when WITH_DEBUG is not set.

(cherry picked from commit 431b502d84)
2024-11-21 12:29:18 -08:00
Don Lewis
6b4b2fff34 editors/openoffice-*: Fix build error with clang 19
Fix this build error:

In file included from /wrkdirs/usr/ports/editors/openoffice-4/work/aoo-4.1.15/main/writerfilter/source/ooxml/OOXMLFactory.cxx:28:
In file included from /wrkdirs/usr/ports/editors/openoffice-4/work/aoo-4.1.15/main/writerfilter/source/ooxml/OOXMLFactory.hxx:39:
In file included from /wrkdirs/usr/ports/editors/openoffice-4/work/aoo-4.1.15/main/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx:38:
/wrkdirs/usr/ports/editors/openoffice-4/work/aoo-4.1.15/main/writerfilter/source/ooxml/RefAndPointer.hxx:104:18: error: no member named 'getHandler' in 'RefAndPointer<Interface, ChildClass>'; did you mean 'mpHandler'?
  104 |         set(rSrc.getHandler());
      |                  ^~~~~~~~~~
      |                  mpHandler
/wrkdirs/usr/ports/editors/openoffice-4/work/aoo-4.1.15/main/writerfilter/source/ooxml/RefAndPointer.hxx:39:26: note: 'mpHandler' declared here
   39 |     mutable ChildClass * mpHandler;
      |                          ^

when building with:

FreeBSD clang version 19.1.2 (https://github.com/llvm/llvm-project.git llvmorg-19.1.2-0-g7ba7d8e2f7b6)

It appears that clang 19 does more sanity checks of unused class
methods than gcc, old versions of Microsoft Visual C++ used by the
AOO project, and older versions of clang.

The assign method in the RefAndPointer class has been broken since
forever and appears to be unused, so comment it out.

This is only a build fix and does not affect the generated code with
older compilers, so there is no PORTREVISION bump.

Reported by:	pkg-fallout

(cherry picked from commit e9090c817e)
2024-11-21 12:29:17 -08:00
Christoph Moench-Tegeder
2b072524b5 www/firefox: update to 133.0 (rc2)
Release Notes (soon):
  https://www.mozilla.org/en-US/firefox/133.0/releasenotes/

(cherry picked from commit b298d97ea4)
2024-11-21 21:26:18 +01:00
Jan Beich
1d66b8995a games/veloren-weekly: update to s20241120
Changes:	57ed7d762...dc22338d0
(cherry picked from commit b52bfa0cff)
2024-11-21 01:58:29 +01:00
Jason E. Hale
832fb76d49 devel/qt6-base: Fix broken mouse behavior
Add upstream patch that reverts a bad commit causing mouse scroll wheel,
button click, and button mapping issues with certain window managers.
The report in this case was being unable to click on items in menu bars.

PR:		282335
Reported by:	<mmatalka@gmail.com>
MFH:		2024Q4

(cherry picked from commit 877838cddb)
2024-11-20 16:08:20 -05:00
Kurt Jaeger
33a7791c5f x11-servers/xwayland: update 24.1.2 -> 24.1.4 to fix CVE-2024-9632
PR:		282415
Relnotes:	https://lists.x.org/archives/xorg-announce/2024-October/003547.html
		https://lists.x.org/archives/xorg-announce/2024-October/003532.html
(cherry picked from commit f771f52f8b)
2024-11-20 20:17:31 +01:00
Kurt Jaeger
5078ad3a0e x11-servers/xorg-server: update 21.1.13 -> 21.1.14 to fix CVE-2024-9632
PR: 		282415
Relnotes:	https://lists.x.org/archives/xorg-announce/2024-October/003545.html
Reviewed by:	manu

(cherry picked from commit a273f8256b)
2024-11-20 20:13:12 +01:00
Jan Beich
eee577cc80 multimedia/libgav1: drop maintainership
(cherry picked from commit 2a511a334e)
2024-11-20 14:33:17 +01:00
Jan Beich
f7c86bc272 multimedia/libgav1: switch distfile mirror
Avoid having to maintain my own mirror. To find more use
https://github.com/search?q=libgav1&type=repositories&s=updated

(cherry picked from commit 1dbb613969)
2024-11-20 14:33:13 +01:00
Jan Beich
6b673d654b x11/i3bar-river: update to 1.1.0
Changes:	https://github.com/MaxVerevkin/i3bar-river/releases/tag/v1.1.0
Reported by:	GitHub (watch releases)

(cherry picked from commit 43b2512195)
2024-11-20 13:00:17 +01:00
Jan Beich
7fee128dfd net/wlvncc: update to s20241119
Changes:	174ad8a...9b8798b
(cherry picked from commit 28ecfa6c91)
2024-11-20 13:00:04 +01:00
Dimitry Andric
18716b688c math/givaro: fix build with clang 19
Clang 19 has become more strict about errors in member functions, which
results in errors building math/givaro:

  ./givaro/givaro/givaro/random-integer.h:94:51: error: no viable overloaded '='
     94 |                 const_cast<Integer_Domain&>(_ring)=R._ring;
        |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
  ./givaro/givaro/givaro/random-integer.h:94:51: note: type 'Integer_Domain' (aka 'ZRing<Integer>') is incomplete
     94 |                 const_cast<Integer_Domain&>(_ring)=R._ring;
        |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
  In file included from givintprime.C:19:
  In file included from ./givaro/givintprime.h:24:
  In file included from ./givaro/givaro/givinteger.h:25:
  ../../../src/kernel/ring/givaro/zring.h:123:13: warning: misleading indentation; statement is not part of the previous 'while' [-Wmisleading-indentation]
    123 |             return a; }
        |             ^
  ../../../src/kernel/ring/givaro/zring.h:121:11: note: previous statement is here
    121 |         { while (isZero(init(a, g())))
        |           ^

The `const_cast` line has been removed by upstream as part of
https://github.com/linbox-team/givaro/commit/b0cf33e1, but that commit
is rather large. It is enough to only delete the line.

Also fix a failure that occurs when running "make test":

  ../src/kernel/recint/rfiddling.h:170:29: error: no member named 'Low' in 'rint<K>'

This is because the expression `max.Low.Value` should actually be
`max.Value.Low`.

PR:		282830
Approved by:	pi (maintainer)
MFH:		2024Q4

(cherry picked from commit b47d453f0a)
2024-11-20 09:50:07 +01:00
Nuno Teixeira
ad801399f6 sysutils/duplicity: Update to 3.0.3.1
ChangeLog:	https://duplicity.gitlab.io/stable/CHANGELOG.html
MFH:		2024Q4

(cherry picked from commit 4d8dfc3732)
2024-11-19 22:22:16 +00:00
Erik Jensen
1704cd381b devel/root: Unbreak FreeBSD 15
PR:		282756
MFH:		2024Q4

(cherry picked from commit 7cfcd90ff0)
2024-11-19 21:23:11 +00:00
Erik Jensen
d145ae7b5e devel/root: Disable runtime_cxxmodules to avoid modulemap issues
A recent change in LLVM/Clang modulemap handling has caused ROOT (which builds
its own patched version of LLVM/Clang for JIT C/C++ compilation, e.g. from the
ROOT terminal) in the upstream source code to hack modulemap definitions on a
case-by-case OS release-dependent basis on macOS, which also compiles ROOT with
a LLVM/Clang compiler.
Once a more robust solution has been found in the upstream code, we can revert
to enabling 'runtime_cxxmodules' in the port.
For now, my attempts at continually patching ROOT for FreeBSD 13.3+, 14.0+ and
15.0 have proven too error-prone, and a package built on 14.0, for example, and
distributed to both 14.0 and 14.1 would otherwise only work on 14.0 in the best
of cases.

PR:		282756

(cherry picked from commit 867e49b82a)
2024-11-19 21:22:34 +00:00
Christoph Moench-Tegeder
00370ad4cc mail/thunderbird: update to 128.4.4
Release Notes:
  https://www.thunderbird.net/en-US/thunderbird/128.4.4esr/releasenotes/

(cherry picked from commit d55785a812)
2024-11-19 19:40:07 +01:00
Robert Nagy
20ffbe9600 www/chromium: update to 131.0.6778.69
Security:	https://vuxml.freebsd.org/freebsd/8fe4f296-a3ec-11ef-8c1c-a8a1599412c6.html
PR:		278413
(cherry picked from commit 1e5e2f4077)
2024-11-19 14:10:40 +01:00
Robert Nagy
89c4ae92ff www/ungoogled-chromium: update to 131.0.6778.69
Security:	https://vuxml.freebsd.org/freebsd/8fe4f296-a3ec-11ef-8c1c-a8a1599412c6.html
(cherry picked from commit 01b71207ce)
2024-11-19 14:10:06 +01:00
Nuno Teixeira
8868624186 sysutils/duplicity: Update to 3.0.3
ChangeLog: https://duplicity.gitlab.io/stable/CHANGELOG.html

(cherry picked from commit edab7e119c)
2024-11-19 12:25:59 +00:00
Erik Jensen
75b54e539d science/geant4: Fix build error
Apply patch to fix typo in code builded in some systems that leads to
build errors.
This patch unbreaks build on main amd64, i386 and armv7.
See also:  https://portsfallout.com/port/33546/

PR:		282761
MFH:		2024Q4

(cherry picked from commit 3f947d3a1d)
2024-11-19 09:51:21 +00:00
Matthias Fechner
70d805e6fa security/trivy: update to 0.57.1
Changes:	https://github.com/aquasecurity/trivy/releases/tag/v0.57.1
(cherry picked from commit bfb28fd072)
2024-11-19 08:26:04 +02:00
Jan Beich
9f03f5e5bf net/waypipe: update to 0.9.2
Changes:	https://gitlab.freedesktop.org/mstoeckl/waypipe/-/releases/v0.9.2
Reported by:	GitLab (notify releases)

(cherry picked from commit f5f2e6412f)
2024-11-19 01:58:09 +01:00
Christoph Moench-Tegeder
1a68a4cfce www/firefox: update to 133.0 (rc1)
Release Notes (soon):
  https://www.mozilla.org/en-US/firefox/133.0/releasenotes/

(cherry picked from commit e5025b5100)
2024-11-18 23:56:50 +01:00
Christoph Moench-Tegeder
61ff87b02a www/firefox-esr: update to 128.5.0 (rc1)
Release Notes (soon):
  https://www.mozilla.org/en-US/firefox/128.5.0/releasenotes/

(cherry picked from commit e3d4a0db5f)
2024-11-18 23:56:31 +01:00
Dimitry Andric
2216ea39e9 math/libdivide: fix build with clang 19
Clang 19 has become more strict about errors in member functions, which
results in errors building math/libdivide:

  /wrkdirs/usr/ports/math/libdivide/work/libdivide-5.0/libdivide.h:3020:41: error: no member named 'denom' in 'divider<T, ALGO>'
   3020 |         return div.denom.magic == other.denom.magic && div.denom.more == other.denom.more;
        |                                   ~~~~~ ^
  /wrkdirs/usr/ports/math/libdivide/work/libdivide-5.0/libdivide.h:3020:80: error: no member named 'denom' in 'divider<T, ALGO>'
   3020 |         return div.denom.magic == other.denom.magic && div.denom.more == other.denom.more;
        |                                                                          ~~~~~ ^

The member function `operator==()` should refer to `other.div.denom`
instead. Upstream fixed this in
https://github.com/ridiculousfish/libdivide/commit/fa020f3, so import it
as a patch.

PR:		282827
Approved by:	thierry (maintainer)
MFH:		2024Q4

(cherry picked from commit 822b0e7aeb)
2024-11-18 23:52:33 +01:00
Jason E. Hale
cf3044662b audio/cantata: Fix linking with MUSICBRAINZ option
https://github.com/nullobsi/cantata/pull/46

MFH:		2024Q4
(cherry picked from commit c32214ba71)
2024-11-18 01:51:18 -05:00
Colin Percival
5ba79ae4e2 misc/freebsd-release-manifests: Add 14.2-BETA3 MANIFEST files
Approved by:	re (implicit)
Sponsored by:	Amazon

(cherry picked from commit b389de7976)
2024-11-17 14:55:21 -08:00
Dimitry Andric
738f9cd35f devel/smfl: mark broken on FreeBSD 15
PR:		281540
Approved by:	amdmi3 (maintainer)
MFH:		2024Q4

(cherry picked from commit 38e12e980a)
2024-11-17 19:50:34 +01:00
Dimitry Andric
e821fb4570 cad/kicad-devel: 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 cad/kicad-devel to fail to compile with clang 19 and libc++
19, resulting in errors similar to:

  /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-6ebd8f46fe24533214b9ed43f1f7e5a4b80dcc71/thirdparty/nanodbc/nanodbc/nanodbc.cpp:261:25: error: implicit instantiation of undefined template 'std::char_traits<unsigned short>'
    261 |     auto const n = std::char_traits<NANODBC_SQLCHAR>::length(array);
        |                         ^
  /usr/include/c++/v1/__string/char_traits.h:45:8: note: template is declared here
     45 | struct char_traits;
        |        ^
  /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-6ebd8f46fe24533214b9ed43f1f7e5a4b80dcc71/thirdparty/nanodbc/nanodbc/nanodbc.cpp:3576:52: error: implicit instantiation of undefined template 'std::char_traits<unsigned short>'
   3576 |             dsn.name = string(&name[0], &name[std::char_traits<NANODBC_SQLCHAR>::length(name)]);
        |                                                    ^
  /usr/include/c++/v1/__string/char_traits.h:45:8: note: template is declared here
     45 | struct char_traits;
        |        ^
  /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-6ebd8f46fe24533214b9ed43f1f7e5a4b80dcc71/thirdparty/nanodbc/nanodbc/nanodbc.cpp:3578:49: error: implicit instantiation of undefined template 'std::char_traits<unsigned short>'
   3578 |                 string(&driver[0], &driver[std::char_traits<NANODBC_SQLCHAR>::length(driver)]);
        |                                                 ^
  /usr/include/c++/v1/__string/char_traits.h:45:8: note: template is declared here
     45 | struct char_traits;
        |        ^
  /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-6ebd8f46fe24533214b9ed43f1f7e5a4b80dcc71/thirdparty/nanodbc/nanodbc/nanodbc.cpp:3629:54: error: implicit instantiation of undefined template 'std::char_traits<unsigned short>'
   3629 |             drv.name = string(&descr[0], &descr[std::char_traits<NANODBC_SQLCHAR>::length(descr)]);
        |                                                      ^
  /usr/include/c++/v1/__string/char_traits.h:45:8: note: template is declared here
     45 | struct char_traits;
        |        ^

and:

  /usr/include/c++/v1/string:820:42: error: implicit instantiation of undefined template 'std::char_traits<unsigned short>'
    820 |   static_assert(is_same<_CharT, typename traits_type::char_type>::value,
        |                                          ^
  /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-6ebd8f46fe24533214b9ed43f1f7e5a4b80dcc71/thirdparty/compoundfilereader/compoundfilereader.h:226:21: note: in instantiation of template class 'std::basic_string<unsigned short>' requested here
    226 |         utf16string dir;
        |                     ^
  /usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
     23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
        |                             ^

and:

  /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-6ebd8f46fe24533214b9ed43f1f7e5a4b80dcc71/thirdparty/nlohmann_json/nlohmann/json.hpp:3604:22: error: implicit instantiation of undefined template 'std::char_traits<wxUniChar>'
   3604 | struct char_traits : std::char_traits<T>
        |                      ^
  /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-6ebd8f46fe24533214b9ed43f1f7e5a4b80dcc71/thirdparty/nlohmann_json/nlohmann/json.hpp:6289:14: note: in instantiation of template class 'nlohmann::detail::char_traits<wxUniChar>' requested here
   6289 |     typename char_traits<char_type>::int_type get_character()
        |              ^
  /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-6ebd8f46fe24533214b9ed43f1f7e5a4b80dcc71/thirdparty/nlohmann_json/nlohmann/json.hpp:6465:22: note: in instantiation of template class 'nlohmann::detail::iterator_input_adapter<wxString::const_iterator>' requested here
   6465 |     BaseInputAdapter base_adapter;
        |                      ^
  /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-6ebd8f46fe24533214b9ed43f1f7e5a4b80dcc71/thirdparty/nlohmann_json/nlohmann/json.hpp:23323:16: note: in instantiation of template class 'nlohmann::detail::wide_string_input_adapter<nlohmann::detail::iterator_input_adapter<wxString::const_iterator>, wxUniChar>' requested here
   23323 |         parser(detail::input_adapter(std::forward<InputType>(i)), cb, allow_exceptions, ignore_comments).parse(true, result);
         |                ^
  /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-6ebd8f46fe24533214b9ed43f1f7e5a4b80dcc71/eeschema/sch_io/easyedapro/sch_io_easyedapro.cpp:209:53: note: in instantiation of function template specialization 'nlohmann::basic_json<>::parse<wxString>' requested here
    209 |                 nlohmann::json js = nlohmann::json::parse( txt.ReadLine() );
        |                                                     ^
  /usr/include/c++/v1/__string/char_traits.h:45:8: note: template is declared here
     45 | struct char_traits;
        |        ^

The first batch of errors can be fixed by providing a simple `length()`
function for the `NANODBC_SQLCHAR const*` type. The second batch can be
fixed by using `std::basic_string<char16_t>` for `utf16string`, and
adjusting the call to `std::basic_string<char16_t>::append`. The third
batch can be fixed by adding a `char_traits` definition specifically for
the `wxUniChar` type.

[1] https://libcxx.llvm.org/ReleaseNotes/19.html#deprecations-and-removals

PR:		282512
Approved by:	maintainer timeout (2 weeks)
MFH:		2024Q4

(cherry picked from commit 1b22fed46c)
2024-11-17 19:46:11 +01:00
Dimitry Andric
033e20bf95 audio/sfizz: fix build with clang 19
Clang 19 now implements CWG 96 [1], which requires a template argument
list after a 'template' keyword, resulting in errors similar to:

  /wrkdirs/usr/ports/audio/sfizz/work/sfizz-1.2.3/external/atomic_queue/include/atomic_queue/atomic_queue.h:394:31: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
    394 |         return Base::template do_pop_any(states_[index], elements_[index]);
        |                               ^
  /wrkdirs/usr/ports/audio/sfizz/work/sfizz-1.2.3/external/atomic_queue/include/atomic_queue/atomic_queue.h:400:24: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
    400 |         Base::template do_push_any(std::forward<U>(element), states_[index], elements_[index]);
        |                        ^
  /wrkdirs/usr/ports/audio/sfizz/work/sfizz-1.2.3/external/atomic_queue/include/atomic_queue/atomic_queue.h:522:31: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
    522 |         return Base::template do_pop_any(states_[index], elements_[index]);
        |                               ^
  /wrkdirs/usr/ports/audio/sfizz/work/sfizz-1.2.3/external/atomic_queue/include/atomic_queue/atomic_queue.h:528:24: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
    528 |         Base::template do_push_any(std::forward<U>(element), states_[index], elements_[index]);
        |                        ^

In all these cases, appending "<>" is enough to satisfy the constraint.
This can be done with a REINPLACE_CMD in the post-patch phase.

[1] https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#96

PR:		282796
Approved by:	yuri (maintainer)
MFH:		2024Q4

(cherry picked from commit 96997562fb)
2024-11-17 19:42:09 +01:00