Commit graph

636301 commits

Author SHA1 Message Date
Dimitry Andric
1b71aafbb8 science/trilinos: add missing <iostream> include
This fixes "hidden symbol
_ZNSt3__1rsB7v160006IcNS_11char_traitsIcEENS_9allocatorIcEEEERNS_13basic_istreamIT_T0_EES9_RNS_12basic_stringIS6_S7_T1_EE
isn't defined" errors on recent -CURRENT.

PR:		273339
Approved by:	maintainer timeout (2 weeks)
MFH:		2023Q4
2023-10-06 20:09:12 +02:00
Dimitry Andric
e0a6f0f303 devel/gcc-arm-embedded: fix build with libc++ 17
When building relatively recent gcc ports (with C++ in them) against
libc++ 17, you get errors similar to:

  In file included from /wrkdirs/usr/ports/lang/gcc12/work/gcc-12.2.0/gcc/cp/module.cc:208:
  In file included from /wrkdirs/usr/ports/lang/gcc12/work/gcc-12.2.0/gcc/system.h:239:
  In file included from /usr/include/c++/v1/vector:321:
  In file included from /usr/include/c++/v1/__format/formatter_bool.h:20:
  In file included from /usr/include/c++/v1/__format/formatter_integral.h:32:
  In file included from /usr/include/c++/v1/locale:202:
  /usr/include/c++/v1/__locale:546:5: error: '__abi_tag__' attribute only applies to structs, variables, functions, and namespaces
    546 |     _LIBCPP_INLINE_VISIBILITY
        |     ^
  /usr/include/c++/v1/__config:813:37: note: expanded from macro '_LIBCPP_INLINE_VISIBILITY'
    813 | #  define _LIBCPP_INLINE_VISIBILITY _LIBCPP_HIDE_FROM_ABI
        |                                     ^
  /usr/include/c++/v1/__config:792:26: note: expanded from macro '_LIBCPP_HIDE_FROM_ABI'
    792 |           __attribute__((__abi_tag__(_LIBCPP_TOSTRING(_LIBCPP_VERSIONED_IDENTIFIER))))
        |                          ^
  In file included from /wrkdirs/usr/ports/lang/gcc12/work/gcc-12.2.0/gcc/cp/module.cc:208:
  In file included from /wrkdirs/usr/ports/lang/gcc12/work/gcc-12.2.0/gcc/system.h:239:
  In file included from /usr/include/c++/v1/vector:321:
  In file included from /usr/include/c++/v1/__format/formatter_bool.h:20:
  In file included from /usr/include/c++/v1/__format/formatter_integral.h:32:
  In file included from /usr/include/c++/v1/locale:202:
  /usr/include/c++/v1/__locale:547:37: error: expected ';' at end of declaration list
    547 |     char_type toupper(char_type __c) const
        |                                     ^
  /usr/include/c++/v1/__locale:553:48: error: too many arguments provided to function-like macro invocation
    553 |     const char_type* toupper(char_type* __low, const char_type* __high) const
        |                                                ^
  /wrkdirs/usr/ports/lang/gcc12/work/gcc-12.2.0/gcc/../include/safe-ctype.h:146:9: note: macro 'toupper' defined here
    146 | #define toupper(c) do_not_use_toupper_with_safe_ctype
        |         ^

This is because gcc/system.h includes safe-ctype.h which redefines ctype
macros such as toupper, tolower, etc to "poison" them.

However, it should only include the safe-ctype.h header *after* any C++
headers, such as <list>, <map>, <string>, etc, otherwise these might
transitively include internal ctype headers (such as with libc++ 17),
causing the above conflicts.

Fix it by moving the safe-ctype.h inclusion to later in gcc/system.h,
which solves this issue, and makes it possible to build against libc++
17.

See also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111632

PR:		274039
Approved by:	maintainer timeout (2 weeks)
MFH:		2023Q4
2023-10-06 19:52:52 +02:00
Dimitry Andric
f12174df0d sysutils/pftop: pet portlint
No functional change intended.

MFH:		2023Q4
2023-10-06 19:52:02 +02:00
Dimitry Andric
dca37f39f4 sysutils/libcdio: fix build with lld 17
Building sysutils/libcdio with lld 17 results in the following link
errors:

  libtool: link: cc -shared  -fPIC -DPIC  .libs/_cdio_generic.o .libs/_cdio_stdio.o .libs/_cdio_stream.o .libs/abs_path.o .libs/aix.o .libs/audio.o .libs/cd_types.o .libs/cdio.o .libs/cdtext.o .libs/device.o .libs/disc.o .libs/ds.o FreeBSD/.libs/freebsd.o FreeBSD/.libs/freebsd_cam.o FreeBSD/.libs/freebsd_ioctl.o .libs/gnu_linux.o image/.libs/bincue.o image/.libs/cdrdao.o .libs/image_common.o image/.libs/nrg.o .libs/logging.o .libs/memory.o mmc/.libs/mmc.o mmc/.libs/mmc_hl_cmds.o mmc/.libs/mmc_ll_cmds.o mmc/.libs/mmc_util.o MSWindows/.libs/aspi32.o MSWindows/.libs/win32_ioctl.o MSWindows/.libs/win32.o .libs/netbsd.o .libs/osx.o .libs/read.o .libs/realpath.o .libs/sector.o .libs/solaris.o .libs/track.o .libs/utf8.o .libs/util.o   -L/usr/local/lib -lm -lcam  -O2 -fstack-protector-strong -Wl,--version-script=libcdio.la.ver -fstack-protector-strong   -Wl,-soname -Wl,libcdio.so.19 -o .libs/libcdio.so.19.0.0
  ld: error: version script assignment of 'CDIO_19' to symbol 'cdio_get_default_device_bsdi' failed: symbol not defined
  ld: error: version script assignment of 'CDIO_19' to symbol 'cdio_get_devices_bsdi' failed: symbol not defined
  ld: error: version script assignment of 'CDIO_19' to symbol 'cdio_have_bsdi' failed: symbol not defined
  ld: error: version script assignment of 'CDIO_19' to symbol 'cdio_open_am_bsdi' failed: symbol not defined
  ld: error: version script assignment of 'CDIO_19' to symbol 'cdio_open_bsdi' failed: symbol not defined
  ld: error: version script assignment of 'CDIO_19' to symbol 'cdio_set_drive_speed' failed: symbol not defined
  ld: error: version script assignment of 'CDIO_19' to symbol 'mmc_get_last_lsn' failed: symbol not defined
  ld: error: version script assignment of 'CDIO_19' to symbol 'mmc_isrc_track_read_subchannel' failed: symbol not defined
  cc: error: linker command failed with exit code 1 (use -v to see invocation)

There are a number of symbols in libcdio's linker version scripts which
are no longer defined, so remove them.

PR:		274196
Approved by:	jhale (maintainer)
MFH:		2023Q4
2023-10-06 19:48:55 +02:00
Dimitry Andric
86f04dd9a2 audio/pulseaudio: fix build with lld 17
Building audio/pulseaudio with lld 17 results in the following link
errors:

  cc  -o src/pulse/libpulse.so.0.24.2 src/pulse/libpulse.so.0.24.2.p/channelmap.c.o src/pulse/libpulse.so.0.24.2.p/context.c.o src/pulse/libpulse.so.0.24.2.p/direction.c.o src/pulse/libpulse.so.0.24.2.p/error.c.o src/pulse/libpulse.so.0.24.2.p/ext-device-manager.c.o src/pulse/libpulse.so.0.24.2.p/ext-device-restore.c.o src/pulse/libpulse.so.0.24.2.p/ext-stream-restore.c.o src/pulse/libpulse.so.0.24.2.p/format.c.o src/pulse/libpulse.so.0.24.2.p/introspect.c.o src/pulse/libpulse.so.0.24.2.p/mainloop-api.c.o src/pulse/libpulse.so.0.24.2.p/mainloop-signal.c.o src/pulse/libpulse.so.0.24.2.p/mainloop.c.o src/pulse/libpulse.so.0.24.2.p/operation.c.o src/pulse/libpulse.so.0.24.2.p/proplist.c.o src/pulse/libpulse.so.0.24.2.p/rtclock.c.o src/pulse/libpulse.so.0.24.2.p/sample.c.o src/pulse/libpulse.so.0.24.2.p/scache.c.o src/pulse/libpulse.so.0.24.2.p/stream.c.o src/pulse/libpulse.so.0.24.2.p/subscribe.c.o src/pulse/libpulse.so.0.24.2.p/thread-mainloop.c.o src/pulse/libpulse.so.0.24.2.p/timeval.c.o src/pulse/libpulse.so.0.24.2.p/utf8.c.o src/pulse/libpulse.so.0.24.2.p/util.c.o src/pulse/libpulse.so.0.24.2.p/volume.c.o src/pulse/libpulse.so.0.24.2.p/xmalloc.c.o -L/usr/local/lib -Wl,--as-needed -Wl,--allow-shlib-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libpulse.so.0 -fstack-protector-strong -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -DLIBICONV_PLUG -isystem /usr/local/include '-Wl,-rpath,$ORIGIN/..:/usr/local/lib' -Wl,-rpath-link,/wrkdirs/share/dim/ports/audio/pulseaudio/work/pulseaudio-16.1/_build/src -Wl,-rpath-link,/usr/local/lib src/libpulsecommon-16.1.so -Wl,-z,nodelete -Wl,-version-script=/wrkdirs/share/dim/ports/audio/pulseaudio/work/pulseaudio-16.1/src/pulse/map-file -lm -pthread /usr/local/lib/libdbus-1.so -ldl -lintl -Wl,--end-group
  ld: error: version script assignment of 'PULSE_0' to symbol 'pa_glib_mainloop_free' failed: symbol not defined
  ld: error: version script assignment of 'PULSE_0' to symbol 'pa_glib_mainloop_get_api' failed: symbol not defined
  ld: error: version script assignment of 'PULSE_0' to symbol 'pa_glib_mainloop_new' failed: symbol not defined
  ld: error: version script assignment of 'PULSE_0' to symbol 'pa_simple_drain' failed: symbol not defined
  ld: error: version script assignment of 'PULSE_0' to symbol 'pa_simple_flush' failed: symbol not defined
  ld: error: version script assignment of 'PULSE_0' to symbol 'pa_simple_free' failed: symbol not defined
  ld: error: version script assignment of 'PULSE_0' to symbol 'pa_simple_get_latency' failed: symbol not defined
  ld: error: version script assignment of 'PULSE_0' to symbol 'pa_simple_new' failed: symbol not defined
  ld: error: version script assignment of 'PULSE_0' to symbol 'pa_simple_read' failed: symbol not defined
  ld: error: version script assignment of 'PULSE_0' to symbol 'pa_simple_write' failed: symbol not defined
  cc: error: linker command failed with exit code 1 (use -v to see invocation)

This is because lld 17 defaults to errors when undefined symbols are
referenced in linker version scripts. Since pulseaudio uses the same
linker version script for both the regular libpulse.so, and the other
variants, libpulse-mainloop-glib.so and libpulse-simple.so, some of the
symbols are expected to be undefined, so suppress the errors by adding
-Wl,--undefined-version to LDFLAGS.

PR:		274111
Approved by:	blanket (for desktop and kde)
MFH:		2023Q4
2023-10-06 19:48:54 +02:00
Dimitry Andric
2bd641cc19 java/openjdk17: fix build with lld 17
Building java/openjdk17 with lld 17 results in the following link errors:

  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol '_ZTVZ21WB_HandshakeWalkStackE16TraceSelfClosure' failed: symbol not defined
  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol '_ZTVZ26WB_AsyncHandshakeWalkStackE16TraceSelfClosure' failed: symbol not defined
  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol '_ZTVZN12JvmtiEnvBase27check_for_periodic_clean_upEvE28ThreadInsideIterationClosure' failed: symbol not defined
  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol '_ZTVZN15G1RemSetSummary6updateEvE11CollectData' failed: symbol not defined
  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol '_ZTVZN16SATBMarkQueueSet22set_active_all_threadsEbbE22SetThreadActiveClosure' failed: symbol not defined
  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol '_ZTVZN16SATBMarkQueueSet23abandon_partial_markingEvE25AbandonThreadQueueClosure' failed: symbol not defined
  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol '_ZTVZN18G1ConcurrentRefine30get_and_reset_refinement_statsEvE12CollectStats' failed: symbol not defined
  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol '_ZTVZN19G1DirtyCardQueueSet12abandon_logsEvE23AbandonThreadLogClosure' failed: symbol not defined
  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol '_ZTVZN19G1DirtyCardQueueSet16concatenate_logsEvE27ConcatenateThreadLogClosure' failed: symbol not defined
  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol '_ZTVZN19G1DirtyCardQueueSet30get_and_reset_refinement_statsEvE12CollectStats' failed: symbol not defined
  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol '_ZTVZN7Threads25change_thread_claim_tokenEvE11ResetClaims' failed: symbol not defined
  c++: error: linker command failed with exit code 1 (use -v to see invocation)

This is because lld 17 defaults to errors when undefined symbols are
referenced in linker version scripts. The problem is due to the Makefile
JvmMapfile.gmk, which generates a linker version script. It uses "nm
--defined-only" to dump symbols in object files, but this also includes
local (hidden) symbols. Add "--extern-only" to make it only dump global
symbols.

PR:		274109
Approved by:	maintainer timeout (10 days)
MFH:		2023Q4
2023-10-06 19:48:54 +02:00
Dimitry Andric
623262a13e devel/libnotify: fix build with lld 17
Building devel/libnotify with lld 17 results in the following link
error:

  cc  -o libnotify/libnotify.so.4.0.0 libnotify/libnotify.so.4.0.0.p/meson-generated_.._notify-enum-types.c.o libnotify/libnotify.so.4.0.0.p/meson-generated_.._notify-marshal.c.o libnotify/libnotify.so.4.0.0.p/notify.c.o libnotify/libnotify.so.4.0.0.p/notification.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libnotify.so.4 -fstack-protector-strong -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wl,-rpath,/usr/local/lib -Wl,-rpath-link,/usr/local/lib -Wl,--version-script,/wrkdirs/share/dim/ports/devel/libnotify/work/libnotify-0.8.2/libnotify/libnotify.map /usr/local/lib/libgdk_pixbuf-2.0.so /usr/local/lib/libgobject-2.0.so /usr/local/lib/libglib-2.0.so /usr/local/lib/libintl.so /usr/local/lib/libgio-2.0.so -Wl,--end-group
  ld: error: version script assignment of 'global' to symbol '__progname' failed: symbol not defined
  ld: error: version script assignment of 'global' to symbol 'environ' failed: symbol not defined
  cc: error: linker command failed with exit code 1 (use -v to see invocation)

This is because lld 17 defaults to errors when undefined symbols are
referenced in linker version scripts.

Apparently the __progname and environ symbols (which usually come from
libc, not libnotify.so) were explicitly added in:

commit 0b0b10cff8
Author: Baptiste Daroussin <bapt@FreeBSD.org>
Date:   2019-12-16T19:40:37+01:00

    Fix build with old binutils.

    Somehow linker scripts should not hide __progname and environ from symbols.

    Reported by:    kib

but it is unclear what the original error was, or how old "old" is, and
there is no reference to a PR.

In any case, I think the patch-libnotify_libnotify.map file can simply
be deleted now.

PR:		274108
Approved by:    maintainer timeout (10 days)
MFH:		2023Q4
2023-10-06 19:48:54 +02:00
Dimitry Andric
a2f61c3e68 java/openjdk8: fix build with lld 17
Building java/openjdk8 with lld 17 results in the following link error:

  Making SA debugger back-end...
  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol 'ps_getpid' failed: symbol not defined
  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol 'ps_lcontinue' failed: symbol not defined
  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol 'ps_lgetxmmregs' failed: symbol not defined
  ld: error: version script assignment of 'SUNWprivate_1.1' to symbol 'ps_lsetxmmregs' failed: symbol not defined
  cc: error: linker command failed with exit code 1 (use -v to see invocation)

This is because lld 17 defaults to errors when undefined symbols are
referenced in linker version scripts. Since there are many of these in
openjdk 8, suppress the errors by adding -Wl,--undefined-version to the
--with-extra-ldflags configure option.

PR:		274106
Approved by:	maintainer timeout (10 days)
MFH:		2023Q4
2023-10-06 19:48:54 +02:00
Dimitry Andric
9b934eb81a devel/gamin: fix build with lld 17
Building devel/gamin with lld 17 results in the following link error:

  cc -shared  .libs/gam_api.o .libs/gam_data.o .libs/gam_fork.o .libs/gam_error.o .libs/gam_event.o  -lpthread -L/usr/local/lib  -fstack-protector-strong -Wl,--version-script=./gamin_sym.version -fstack-protector-strong -Wl,-soname -Wl,libfam.so.0 -o .libs/libfam.so.0.0.0
  ld: error: version script assignment of 'global' to symbol 'FAMDebugLevel' failed: symbol not defined
  ld: error: version script assignment of 'global' to symbol 'FAMDebug' failed: symbol not defined
  cc: error: linker command failed with exit code 1 (use -v to see invocation)

This is because the FAMDebugLevel and FAMDebug symbols are only defined
when gamin is configured with --enable-debug, which we have no option
for in the port.

So fix it by removing the undefined symbols from the linker version
script.

PR:		274089
MFH:		2023Q4
2023-10-06 19:48:53 +02:00
Dimitry Andric
e5019ec343 lang/gcc8 lang/gcc9: fix build with libc++ 17
When building relatively recent gcc ports (with C++ in them) against
libc++ 17, you get errors similar to:

  In file included from /wrkdirs/usr/ports/lang/gcc12/work/gcc-12.2.0/gcc/cp/module.cc:208:
  In file included from /wrkdirs/usr/ports/lang/gcc12/work/gcc-12.2.0/gcc/system.h:239:
  In file included from /usr/include/c++/v1/vector:321:
  In file included from /usr/include/c++/v1/__format/formatter_bool.h:20:
  In file included from /usr/include/c++/v1/__format/formatter_integral.h:32:
  In file included from /usr/include/c++/v1/locale:202:
  /usr/include/c++/v1/__locale:546:5: error: '__abi_tag__' attribute only applies to structs, variables, functions, and namespaces
    546 |     _LIBCPP_INLINE_VISIBILITY
        |     ^
  /usr/include/c++/v1/__config:813:37: note: expanded from macro '_LIBCPP_INLINE_VISIBILITY'
    813 | #  define _LIBCPP_INLINE_VISIBILITY _LIBCPP_HIDE_FROM_ABI
        |                                     ^
  /usr/include/c++/v1/__config:792:26: note: expanded from macro '_LIBCPP_HIDE_FROM_ABI'
    792 |           __attribute__((__abi_tag__(_LIBCPP_TOSTRING(_LIBCPP_VERSIONED_IDENTIFIER))))
        |                          ^
  In file included from /wrkdirs/usr/ports/lang/gcc12/work/gcc-12.2.0/gcc/cp/module.cc:208:
  In file included from /wrkdirs/usr/ports/lang/gcc12/work/gcc-12.2.0/gcc/system.h:239:
  In file included from /usr/include/c++/v1/vector:321:
  In file included from /usr/include/c++/v1/__format/formatter_bool.h:20:
  In file included from /usr/include/c++/v1/__format/formatter_integral.h:32:
  In file included from /usr/include/c++/v1/locale:202:
  /usr/include/c++/v1/__locale:547:37: error: expected ';' at end of declaration list
    547 |     char_type toupper(char_type __c) const
        |                                     ^
  /usr/include/c++/v1/__locale:553:48: error: too many arguments provided to function-like macro invocation
    553 |     const char_type* toupper(char_type* __low, const char_type* __high) const
        |                                                ^
  /wrkdirs/usr/ports/lang/gcc12/work/gcc-12.2.0/gcc/../include/safe-ctype.h:146:9: note: macro 'toupper' defined here
    146 | #define toupper(c) do_not_use_toupper_with_safe_ctype
        |         ^

This is because gcc/system.h includes safe-ctype.h which redefines ctype
macros such as toupper, tolower, etc to "poison" them.

However, it should only include the safe-ctype.h header *after* any C++
headers, such as <list>, <map>, <string>, etc, otherwise these might
transitively include internal ctype headers (such as with libc++ 17),
causing the above conflicts.

Fix it by moving the safe-ctype.h inclusion to later in gcc/system.h,
which solves this issue, and makes it possible to build against libc++
17.

See also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111632

PR:		274042
Approved by:	salvadore (maintainer)
MFH:		2023Q4
2023-10-06 19:48:53 +02:00
Dimitry Andric
b7833e78f7 lang/gcc10 lang/gcc11 lang/gcc11-devel lang/gcc12 lang/gcc12-devel lang/gcc13 lang/gcc13-devel lang/gcc14-devel: fix build with libc++ 17
When building relatively recent gcc ports (with C++ in them) against
libc++ 17, you get errors similar to:

  In file included from /wrkdirs/usr/ports/lang/gcc12/work/gcc-12.2.0/gcc/cp/module.cc:208:
  In file included from /wrkdirs/usr/ports/lang/gcc12/work/gcc-12.2.0/gcc/system.h:239:
  In file included from /usr/include/c++/v1/vector:321:
  In file included from /usr/include/c++/v1/__format/formatter_bool.h:20:
  In file included from /usr/include/c++/v1/__format/formatter_integral.h:32:
  In file included from /usr/include/c++/v1/locale:202:
  /usr/include/c++/v1/__locale:546:5: error: '__abi_tag__' attribute only applies to structs, variables, functions, and namespaces
    546 |     _LIBCPP_INLINE_VISIBILITY
        |     ^
  /usr/include/c++/v1/__config:813:37: note: expanded from macro '_LIBCPP_INLINE_VISIBILITY'
    813 | #  define _LIBCPP_INLINE_VISIBILITY _LIBCPP_HIDE_FROM_ABI
        |                                     ^
  /usr/include/c++/v1/__config:792:26: note: expanded from macro '_LIBCPP_HIDE_FROM_ABI'
    792 |           __attribute__((__abi_tag__(_LIBCPP_TOSTRING(_LIBCPP_VERSIONED_IDENTIFIER))))
        |                          ^
  In file included from /wrkdirs/usr/ports/lang/gcc12/work/gcc-12.2.0/gcc/cp/module.cc:208:
  In file included from /wrkdirs/usr/ports/lang/gcc12/work/gcc-12.2.0/gcc/system.h:239:
  In file included from /usr/include/c++/v1/vector:321:
  In file included from /usr/include/c++/v1/__format/formatter_bool.h:20:
  In file included from /usr/include/c++/v1/__format/formatter_integral.h:32:
  In file included from /usr/include/c++/v1/locale:202:
  /usr/include/c++/v1/__locale:547:37: error: expected ';' at end of declaration list
    547 |     char_type toupper(char_type __c) const
        |                                     ^
  /usr/include/c++/v1/__locale:553:48: error: too many arguments provided to function-like macro invocation
    553 |     const char_type* toupper(char_type* __low, const char_type* __high) const
        |                                                ^
  /wrkdirs/usr/ports/lang/gcc12/work/gcc-12.2.0/gcc/../include/safe-ctype.h:146:9: note: macro 'toupper' defined here
    146 | #define toupper(c) do_not_use_toupper_with_safe_ctype
        |         ^

This is because gcc/system.h includes safe-ctype.h which redefines ctype
macros such as toupper, tolower, etc to "poison" them.

However, it should only include the safe-ctype.h header *after* any C++
headers, such as <list>, <map>, <string>, etc, otherwise these might
transitively include internal ctype headers (such as with libc++ 17),
causing the above conflicts.

Fix it by moving the safe-ctype.h inclusion to later in gcc/system.h,
which solves this issue, and makes it possible to build against libc++
17.

See also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111632

PR:		274041
Approved by:	salvadore (maintainer)
MFH:		2023Q4
2023-10-06 19:48:53 +02:00
Dimitry Andric
641e12af41 devel/talloc: fix build with lld 17
Building devel/talloc with lld 17 results in the following link error:

  08:58:52 runner ['cc', '-Wl,--version-script=/wrkdirs/usr/ports/devel/talloc/work/talloc-2.3.4/bin/default/talloc.vscript', '-shared', '-Wl,-h,libtalloc.so.2', 'talloc.c.6.o', 'lib/replace/replace.c.2.o', 'lib/replace/strptime.c.2.o', 'lib/replace/xattr.c.2.o', '-o/wrkdirs/usr/ports/devel/talloc/work/talloc-2.3.4/bin/default/libtalloc.so', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-fstack-protector-strong', '-Wl,-no-undefined']
  ld: error: version script assignment of 'local' to symbol '_end' failed: symbol not defined
  ld: error: version script assignment of 'local' to symbol '__bss_start' failed: symbol not defined
  ld: error: version script assignment of 'local' to symbol '_edata' failed: symbol not defined
  cc: error: linker command failed with exit code 1 (use -v to see invocation)
  script file to fix the error.

Since the linker version scripts are generated dynamically, suppress
errors with lld >= 17 due to these undefined symbols.

PR:		274000
Approved by:	maintainer timeout (2 weeks)
MFH:		2023Q4
2023-10-06 19:48:52 +02:00
Dimitry Andric
1a59d78ef3 devel/elfutils: fix build with lld 17
Building devel/elfutils with lld 17 results in the following link error:

  cc -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes    -Wnull-dereference -Wimplicit-fallthrough -Werror -Wunused -Wextra     -D_FORTIFY_SOURCE=3 -O2 -pipe  -I/usr/local/include -I/usr/local/share/gnulib/lib -Wno-error -Wno-format-nonliteral -Wno-null-dereference -Wno-unused-value -DFREEBSD_HAS_MEMPCPY -fstack-protector-strong -fno-strict-aliasing   /usr/local/lib/libargp.so  /usr/local/lib/libintl.so -fstack-protector-strong  -Wl,--build-id -o libelf.so -shared -Wl,-z,defs -Wl,-z,relro -o libelf.so \
          -Wl,--soname,libelf.so.1 \
          -Wl,--version-script,libelf.map,--no-undefined \
          -Wl,--whole-archive libelf_pic.a -Wl,--no-whole-archive \
          ../lib/libeu.a -lz
  ld: error: version script assignment of 'ELFUTILS_1.0' to symbol 'elf_scncnt' failed: symbol not defined
  cc: error: linker command failed with exit code 1 (use -v to see invocation)

Upstream removed the symbol which apparently was never implemented in:
<https://sourceware.org/git/?p=elfutils.git;a=commit;h=09e61a65953ed814d9e970f7f9ffb9c2d8cda477>.

I tried adding this via PATCH_SITES and PATCHFILES, but it looks like
the ports framework chokes on URLs with ? in them, so I'm adding a
regular patch file in devel/elfutils/files/patch-libelf_libelf.map file
instead.

PR:		273998
Approved by:	maintainer timeout (2 weeks)
MFH:		2023Q4
2023-10-06 19:48:52 +02:00
Dimitry Andric
3e5360df35 qt-dist.mk: suppress linker version script errors with lld >= 17
Qt uses generated linker version scripts which always have a
qt_version_tag symbol, but that symbol is only defined in the main Qt
shared library. For other Qt components, this leads to lld >= 17
erroring out due to the symbol being undefined. Suppress these errors
from qt-dist.mk, so we don't have to patch each individual port.

This affects at least:
* devel/qt5-dbus
* net/qt5-network
* databases/qt5-sql

which were the first ones to fall over with a clang+lld 17 poudriere
bulk run.

For reference, the error you would see looks like:

  ...
  c++ -Wl,--as-needed -fstack-protector-strong -Wl,--no-undefined -Wl,--version-script,QtDBus.version -pthread -Wl,-rpath,/usr/local/lib/qt5 -shared -Wl,-Bsymbolic-functions -Wl,-soname,libQt5DBus.so.5 -o libQt5DBus.so.5.15.8 .obj/qdbusconnection.o  .obj/qdbusconnectioninterface.o  .obj/qdbuserror.o  .obj/qdbusintegrator.o  .obj/qdbusmessage.o  .obj/qdbusserver.o  .obj/qdbusabstractinterface.o  .obj/qdbusinterface.o  .obj/qdbusxmlparser.o  .obj/qdbusutil.o  .obj/qdbusintrospection.o  .obj/qdbusabstractadaptor.o  .obj/qdbusinternalfilters.o  .obj/qdbusmetaobject.o  .obj/qdbusxmlgenerator.o  .obj/qdbusmisc.o  .obj/qdbusargument.o  .obj/qdbusreply.o  .obj/qdbusmetatype.o  .obj/qdbusextratypes.o  .obj/qdbuscontext.o  .obj/qdbuspendingcall.o  .obj/qdbuspendingreply.o  .obj/qdbus_symbols.o  .obj/qdbusservicewatcher.o  .obj/qdbusunixfiledescriptor.o  .obj/qdbusvirtualobject.o  .obj/moc_qdbusconnectioninterface.o  .obj/moc_qdbuserror.o  .obj/moc_qdbusconnection.o  .obj/moc_qdbusabstractadaptor.o  .obj/moc_qdbusvirtualobject.o  .obj/moc_qdbusconnection_p.o  .obj/moc_qdbusconnectionmanager_p.o  .obj/moc_qdbuspendingcall_p.o  -L/wrkdirs/usr/ports/devel/qt5-dbus/work/kde-qtbase-5.15.8p157/lib /usr/local/lib/qt5/libQt5Core.so -L/usr/local/lib -ldbus-1
  ld: error: version script assignment of 'Qt_5.15' to symbol 'qt_version_tag' failed: symbol not defined
  c++: error: linker command failed with exit code 1 (use -v to see invocation)

PR:		273992
Approved by:	maintainer timeout (2 weeks)
MFH:		2023Q4
2023-10-06 19:48:52 +02:00
Dimitry Andric
98f5e51bd3 sysutils/fusefs-libs: fix build with lld 17
Some symbols in libfuse.so's linker version script are undefined when
compiling for FreeBSD, which results in errors with lld >= 17. Comment
out the unused symbols to work around these errors.

PR:		273794
Approved by:	maintainer timeout (2 weeks)
MFH:		2023Q4
2023-10-06 19:48:52 +02:00
Piotr Kubaj
d7c8a86177 www/node18: update patch for powerpc64* 2023-10-06 19:28:23 +02:00
Oleksandr Ignatyev
5365579e4d sysutils/govmomi: Update to 0.32.0
Changelog: https://github.com/vmware/govmomi/releases/tag/v0.32.0

PR:			274296
Approved by:		zirias (mentor)
Differential Revision:	https://reviews.freebsd.org/D42104
2023-10-06 18:45:57 +02:00
Piotr Kubaj
248f95da59 graphics/tesseract: update to 5.3.3
Changelog:	https://github.com/tesseract-ocr/tesseract/releases/tag/5.3.3
2023-10-06 18:39:13 +02:00
Piotr Kubaj
9df38c9ba1 misc/far2l: fix build on big-endian
/wrkdirs/usr/ports/misc/far2l/work/far2l-v_2.5.2/far2l/src/datetime.cpp:534:10: error: non-constant-expression cannot be narrowed from type 'DWORD' (aka 'unsigned int') to 'LONG' (aka 'int') in initializer list [-Wc++11-narrowing]
                                                                {a->dwLowDateTime, (LONG)a->dwHighDateTime}
                                                                 ^~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/far2l/work/far2l-v_2.5.2/far2l/src/datetime.cpp:534:10: note: insert an explicit cast to silence this issue
                                                                {a->dwLowDateTime, (LONG)a->dwHighDateTime}
                                                                 ^~~~~~~~~~~~~~~~
                                                                 static_cast<LONG>( )
/wrkdirs/usr/ports/misc/far2l/work/far2l-v_2.5.2/far2l/src/datetime.cpp:534:28: error: non-constant-expression cannot be narrowed from type 'LONG' (aka 'int') to 'DWORD' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]
                                                                {a->dwLowDateTime, (LONG)a->dwHighDateTime}
                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/far2l/work/far2l-v_2.5.2/far2l/src/datetime.cpp:534:28: note: insert an explicit cast to silence this issue
                                                                {a->dwLowDateTime, (LONG)a->dwHighDateTime}
                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~
                                                                                   static_cast<DWORD>(    )
/wrkdirs/usr/ports/misc/far2l/work/far2l-v_2.5.2/far2l/src/datetime.cpp:536:11: error: non-constant-expression cannot be narrowed from type 'DWORD' (aka 'unsigned int') to 'LONG' (aka 'int') in initializer list [-Wc++11-narrowing]
                                B = {{b->dwLowDateTime, (LONG)b->dwHighDateTime}};
                                      ^~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/far2l/work/far2l-v_2.5.2/far2l/src/datetime.cpp:536:11: note: insert an explicit cast to silence this issue
                                B = {{b->dwLowDateTime, (LONG)b->dwHighDateTime}};
                                      ^~~~~~~~~~~~~~~~
                                      static_cast<LONG>( )
/wrkdirs/usr/ports/misc/far2l/work/far2l-v_2.5.2/far2l/src/datetime.cpp:536:29: error: non-constant-expression cannot be narrowed from type 'LONG' (aka 'int') to 'DWORD' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]
                                B = {{b->dwLowDateTime, (LONG)b->dwHighDateTime}};
                                                        ^~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/far2l/work/far2l-v_2.5.2/far2l/src/datetime.cpp:536:29: note: insert an explicit cast to silence this issue
                                B = {{b->dwLowDateTime, (LONG)b->dwHighDateTime}};
                                                        ^~~~~~~~~~~~~~~~~~~~~~~
                                                        static_cast<DWORD>(    )
4 errors generated.
2023-10-06 18:39:11 +02:00
Piotr Kubaj
0f1e3385b8 graphics/osgearth: remove unnecessary CXXFLAGS on powerpc64 2023-10-06 18:39:10 +02:00
Piotr Kubaj
c57e0dd3f7 emulators/qemu-devel: fix build on powerpc64*
Same patch as for emulators/qemu.
2023-10-06 18:39:08 +02:00
Lorenzo Salvadore
5afb96248d
lang/gcc11-devel: Update to 11.4.1.s20231005 2023-10-06 18:00:00 +02:00
Dag-Erling Smørgrav
483e74f44b security/ca_root_nss: Use certctl instead of a symlink.
MFH:		2023Q4
Reviewed by:	fluffy, sunpoet
Differential Revision:	https://reviews.freebsd.org/D42045
2023-10-06 17:48:57 +02:00
Dan Langille
e77844cbb7 security/acme.sh: Update to 3.0.7
re: https://github.com/acmesh-official/acme.sh/releases/tag/3.0.7

Thanks to Ken for telling me about this update.
2023-10-06 15:43:33 +00:00
Matthias Andree
9a529daeee graphics/openexr: update to v3.2.1
ChangeLog: https://github.com/AcademySoftwareFoundation/openexr/blob/v3.2.1/CHANGES.md#version-321-september-27-2023

with one additional patch to change deflate_LIBRARIES to
deflate_LINK_LIBRARIES in the cmake stuff in order to unbreak
the build.

Reported upstream: https://github.com/AcademySoftwareFoundation/openexr/issues/1571

Upstream intended to release v3.2.2 on short notice, but the efforts
appear to have stalled, so ship 3.2.1 with our local fix.
2023-10-06 16:14:27 +02:00
Emanuel Haupt
d7bfd72caf security/git-credential-oauth: Update to 0.11.0 2023-10-06 15:15:53 +02:00
Wen Heping
02490dcc2a devel/py-tables: Update to 3.9.0 2023-10-06 13:05:47 +00:00
Olivier Cochard
c343d9ea76 x11-fonts/juliamono: update to 0.051
PR:		274305
Reported by:	Trenton Schulz <trueos@norwegianrockcat.com>
Event:		Oslo Hackathon at Modirum
2023-10-06 14:47:13 +02:00
Bernard Spil
738a584258 mail/nextcloud-mail: Update to 3.4.1 2023-10-06 13:53:28 +02:00
Bernard Spil
700614ecca www/nextcloud-calendar: Update to 4.5.2 2023-10-06 13:53:09 +02:00
Bernard Spil
e74f1a6d0e www/nextcloud: Update to 27.1.2 2023-10-06 13:52:57 +02:00
Goran Mekić
479c7249c6 databases/py-pony: Update to 0.7.17
Changelog: https://github.com/ponyorm/pony/releases/tag/v0.7.17

PR: 			274302
Approved by:		zirias (mentor)
Differential Revision:	https://reviews.freebsd.org/D42103
2023-10-06 13:47:31 +02:00
Tobias Kortkamp
469251e0ea
Revert "default-versions: add rust-bootstrap to RUST section"
This reverts commit 9204fb371c.

lang/rust-bootstrap doesn't install a toolchain and can never be
a "possible value" for RUST_DEFAULT.
2023-10-06 13:30:39 +02:00
Joel Bodenmann
a0079d1f19 devel/gpds: Update to 1.7.0
Changelog: https://github.com/simulton/gpds/releases/tag/1.7.0

Approved by:		zirias (mentor)
Sponsored by: 		Simulton GmbH
Differential Revision:	https://reviews.freebsd.org/D42090
2023-10-06 13:13:03 +02:00
Ganael LAPLANCHE
1f30727c4c emulators/dolphin-emu: Update to 5.0.19870
Also:
- Fix xxhash detection
- Enable noaslr (now needed)
- Switch to Qt6
- Update pkg-descr
2023-10-06 12:44:54 +02:00
Alexander Leidinger
6bb5175266 devel/sonarqube-community: update plugins 2023-10-06 12:25:11 +02:00
Yuri Victorovich
9f5992ad4c cad/yosys: update 0.33 → 0.34
Reported by:	portscout
2023-10-06 03:09:09 -07:00
Yuri Victorovich
b96b2a6a1d databases/diesel: update 2.1.1 → 2.1.3
Reported by:	portscout
2023-10-06 03:09:08 -07:00
Yuri Victorovich
45df85715f biology/py-pysam: update 0.21.0 → 0.22.0
Reported by:	portscout
2023-10-06 03:09:08 -07:00
Olivier Cochard
73d06a8003 net/jotta-cli: Update to 0.15.93226
PR:		274301
Reported by:	Trenton Schulz <trueos@norwegianrockcat.com>
Event:		Oslo Hackathon at Modirum
2023-10-06 11:57:38 +02:00
Tijl Coosemans
9c57b79ab7 print/hplip(-plugin): Update to 3.23.8 2023-10-06 11:52:38 +02:00
Tijl Coosemans
8e0e193f00 security/mbedtls: Update to 2.28.5 2023-10-06 11:52:38 +02:00
Tijl Coosemans
ad37eb3ab5 security/gnutls: Update to 3.7.10 2023-10-06 11:52:37 +02:00
Dag-Erling Smørgrav
bde578cbfc mail/opensmtpd: Remove unneeded CA_BUNDLE option.
MFH:		2023Q4
Approved by:	fluffy
Differential Revision:	https://reviews.freebsd.org/D42073
2023-10-06 11:46:37 +02:00
Dag-Erling Smørgrav
0bbc60316a dns/libasr-devel: Remove unneeded CA_BUNDLE option.
MFH:		2023Q4
Approved by:	fluffy
Differential Revision:	https://reviews.freebsd.org/D42073
2023-10-06 11:46:32 +02:00
Dag-Erling Smørgrav
b6c274c6a7 www/aria2: Drop ca_root_nss dependency.
MFH:		2023Q4
Reviewed by:	sunpoet
Differential Revision:	https://reviews.freebsd.org/D42060
2023-10-06 11:35:48 +02:00
Dries Michiels
c8fadc31a0 net/dhcpcd: update to 10.0.3
Changes:	https://github.com/NetworkConfiguration/dhcpcd/releases/tag/v10.0.3
2023-10-06 11:30:14 +02:00
Hiroki Tagato
9ad5184453 devel/electron26: add port: Build cross-platform desktop apps with JavaScript, HTML, and CSS
Build cross platform desktop apps with JavaScript, HTML, and CSS.

It's easier than you think.

If you can build a website, you can build a desktop app. Electron is a
framework for creating native applications with web technologies like
JavaScript, HTML, and CSS. It takes care of the hard parts so you can
focus on the core of your application.

WWW: https://electronjs.org/
2023-10-06 18:26:35 +09:00
Dag-Erling Smørgrav
6e968aff79 mail/fetchmail: Remove unneeded CA_BUNDLE option.
MFH:		2023Q4
Approved by:	maintainer
Differential Revision:	https://reviews.freebsd.org/D42073
2023-10-06 11:07:23 +02:00
Dag-Erling Smørgrav
175afd7503 devel/mercurial: Remove unneeded CA_BUNDLE option.
MFH:		2023Q4
Reviewed by:	sunpoet
Differential Revision:	https://reviews.freebsd.org/D42073
2023-10-06 11:07:16 +02:00