devel/freebsd-gcc*: Update kernel printf format checking for %b
- Permit the l and ll size modifiers to be used with '%b' for GCC 12/13
(GCC 14/15 already permitted these).
- Permit the '#' modifier to be used with %b. This isn't documented but
the RISC-V kernel uses this.
Reviewed by: mhorne, lwhsu
Differential Revision: https://reviews.freebsd.org/D55016
devel/freebsd-gcc*: Fix error in printf0 format checker patch
Fix a mismerge of the printf0 format checking patch from GCC 9 to GCC
12/13. GCC 11 and later don't warn for NULL format strings (instead a
separate nonnull attribute is used). The printf0 format specifier is
left for now to support builds of existing FreeBSD releases but will
be removed in the future.
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D45941
*/*: Sunset 12.4-RELEASE/12-STABLE from ports tree
- Remove all references to defunct ARCH arm
- Remove all references to defunct ARCH sparc64
- Remove x11-drivers/xf86-video-sunffb which requires defunct sparc64
ARCH
- Remove sysutils/afbinit requires defunct sparc64 ARCH
- Remove all references to bktr driver
- Remove all references to defunct FreeBSD_12
- Remove all references to OSVERSION/OSREL corresponding to 12
- Remove conditionals in Mk/Uses/cabal.mk
- Remove sparc reference from Mk/Uses/qt-dist.mk
- Remove BROKEN_sparc64/NOT_FOR_ARCH=sparc64
- Remove BROKEN_FreeBSD_12* from:
- Remove OpenSSL patches from:
- Remove conditional flags for OSVERSION >= 1300000 to fixed flags.
Also move conditional flags for non sparc64/arm ARCH to fixed flags.
Reviewed by: brooks, jbeich, rene, salvadore
Differential Revision: https://reviews.freebsd.org/D42068
devel/freebsd-gcc{9,12}: Various cleanups, no functional change
- Use DISTVERSION instead of PORTVERISON
- Don't silence post-install commands to remove various files from the
staging area
- Simplify logic to handle arch-specific packing lists
- Clarify package comment and description
- Clarify FreeBSD 12 ignore rule for gcc12
Reviewed by: fuz
Differential Revision: https://reviews.freebsd.org/D42590
devel/freebsd-gcc12: 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'
(Only the first 15 lines of the commit message are shown above )
devel/freebsd-gcc12: Use -stdlib=libc++ to use libc++.
Instead of overriding the path and library name of libstdc++, set the
path for libc++ and change the default of -stdlib= from libstdc++ to
libc++.
devel/freebsd-gcc*: Drop stale workaround for arm targets.
This workaround to force -fbracket-depth=512 was removed from lang/gcc
during the upgrade from gcc 4.8 to gcc 5.
devel/freebsd-gcc12: Fix support for FreeBSD kernel printf.
Remove -fformat-extensions and instead follow clang and add a new
format type: __freebsd_kprintf__. This permits removing unsupported
width specifies such as 'D' which conflict with the local %D specifier
used in the kernel which the old -fformat-extensions did not handle.
devel/freebsd-gcc12: Ignore on FreeBSD 12.
The powerpc flavor fails to build on FreeBSD 12.x as GCC does not
install the secureplt.h header for that version (GCC assumes secureplt
is only used on 13.0 and later). In addition, the fixes needed to
build FreeBSD with GCC 12.x are not going to be backported to
stable/12, so just skip this port on FreeBSD 12.
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
compiler: use CHOSEN_COMPILER_TYPE instead of COMPILER_TYPE
CHOSEN_COMPILER_TYPE is the only safe variable to let a port know which
typer of compiler has been elected to be used by the framework
PR: 199098
devel/freebsd-gcc12: External FreeBSD toolchain based on GCC 12.
This port provides external GCC toolchains for GCC 12.1.0 for the
aarch64, amd64, armv6, armv7, i386, powerpc, powerpc64, and riscv64
platforms.
Reviewed by: lwhsu
Differential Revision: https://reviews.freebsd.org/D35685