CVE and update status of the FreeBSD ports tree4,526 unaddressed CVEs in 616 portsAll times are CET

Port details

devel/llvm1313.0.1_11

LLVM and Clang

Maintainer
brooks@FreeBSD.org
Packages
llvm13 13.0.1_11
Upstream
up to date
CPE
llvm:llvm from the port
WWW
https://llvm.org/
Links
cgit · VuXML

Unaddressed (0) · The CVE record lists this version as affected, no VuXML entry names the CVE

None. There is no CVE without a VuXML entry for this version.

VuXML only (0) · listed, port not fixed yet

None. pkg audit reports nothing for this version.

Fixed (0)

No VuXML entries for this package.

Commits (66)

Brooks Davis (brooks) · 13.0.1_11
devel/llvm*: minor rework [NFC]

Consolidate all the _PATTERN variables in one location and define them
unconditionally.
e85cd16f10
Brooks Davis (brooks) · 13.0.1_11
devel/llvm13: remove FLANG and MLIR from the default build

It would be surprising if anyone was using these ancient versions so
stop wasting build time for most people.
339f7b4021
Brooks Davis (brooks) · 13.0.1_11
devel/llvm13: remove GOLD support

binutils will remove gold in upcoming releases so drop support preemptively.
daff097350
Brooks Davis (brooks) · 13.0.1_10
devel/llvm13: Remove the LLDB option and fix plist with DOCS

LLDB's Python script interpreter fails to build with Python 3.13
(PyEval_ThreadsInitialized was removed), which blocks switching the
default Python version to 3.13.  Rather than patching an old debugger,
remove the LLDB option as discussed in PR 292105: LLDB remains available
from devel/llvm18 and later and from the base system.

This also drops the swig build dependency and the lua53 and libedit
library dependencies.

While here, fix the plist with DOCS enabled: the openmp and flang
HTML documentation leaves an empty _sources directory behind, and
check-plist fails with orphaned directories.  Remove them;
devel/llvm12 does the same for openmp (a4f732450dd3).

PR:		299421
e957aac7d7
Tijl Coosemans (tijl) · 13.0.1_9
devel/llvm??: Bump PORTREVISION for 4fc6c5e1c9a4

PR:		295111
b2fbc8d0f1
Brooks Davis (brooks) · 13.0.1_8
devel/llvm??: Add Mips back to standard backends

I'd forgotten that STANDARD_BACKENDS is includes _FREEBSD_BACKENDS so
Mips dropped out of the list when it was removed from _FREEBSD_BACKENDS.

PR:		295111
Fixes:		2a7c0561200c ("all: drop support for FreeBSD 13, mips and risc64sf")
4fc6c5e1c9
Rene Ladan (rene) · 13.0.1_8
all: drop support for FreeBSD 13, mips and risc64sf

Reviewed by:            many (*)
Differential Revision:  https://reviews.freebsd.org/D55624
Differential Revision:  https://reviews.freebsd.org/D55642 (merged in from bofh)

many (*)
  acm arrowd brooks cmt dch decke dinoex eduardo fluffy fuz gahr garga
  jbeich joerg jrm kai kenrap martymac matthew mfechner michaelo mizhka
  nobutaka pkubaj se tagattie thj

  Anton Saietskii
  GenericRikka
  Gert Doering
  Jan Bramkamp
  Oleh Hushchenkov
  Oleksandr Kryvulia
  Ralf van der Enden
  Yamagi

  desktop kde python tcltk office
2a7c056120
Dimitry Andric (dim) · 13.0.1_8
devel/llvm13: fix build with clang 21

Recent versions of clang complain about explicit copy constructors,
leading to errors similar to:

    In file included from /wrkdirs/usr/ports/devel/llvm13/work/llvm-project-13.0.1.src/llvm/tools/sancov/sancov.cpp:16:
    In file included from /wrkdirs/usr/ports/devel/llvm13/work/llvm-project-13.0.1.src/llvm/include/llvm/MC/MCContext.h:12:
    /wrkdirs/usr/ports/devel/llvm13/work/llvm-project-13.0.1.src/llvm/include/llvm/ADT/DenseMap.h:128:16: warning: variable 'NumEntries' set but not used [-Wunused-but-set-variable]
      128 |       unsigned NumEntries = getNumEntries();
          |                ^
    /wrkdirs/usr/ports/devel/llvm13/work/llvm-project-13.0.1.src/llvm/tools/sancov/sancov.cpp:512:42: error: chosen constructor is explicit in copy-initialization
      512 |     return SpecialCaseList::createOrDie({{ClBlacklist}},
          |                                          ^~~~~~~~~~~~~
    /usr/include/c++/v1/string:1153:64: note: explicit constructor declared here
     1153 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 explicit basic_string(const _Tp& __t) {
          |                                                                ^
    /usr/include/c++/v1/__vector/vector.h:276:91: note: passing argument to parameter '__il' here
      276 |   _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI vector(initializer_list<value_type> __il) {
          |                                                                                           ^

In this case, `ClBlacklist` is an instance of `cl::opt`, not a
`std::string` as expected. Use `getValue()` to get the actual
`std::string` value.

PR:		292109
Approved by:	brooks (maintainer)
MFH:		2026Q1
d3097136ef
Antoine Brodin (antoine) · 13.0.1_8
devel/llvm13: fix build with python 3.12

PR:		285957
8062a5726b
Brooks Davis (brooks) · 13.0.1_8
devel/llvm13: don't build gold plugin when disabled

Disabling the GOLD option didn't actually disable building the plugin,
it just didn't install it in the package.  Actually stop traversing into
the directory when the option disabled so we don't end up needing
devel/binutils.

PR:		291247
Sponsored by:	DARPA, AFRL
78ffea3bfe
Baptiste Daroussin (bapt) · 13.0.1_8
libxml2: chase libxml soversion bump
3068854dd0
Brooks Davis (brooks) · 13.0.1_7
devel/llvm*: flip LICENSE_FILE_BSD3CLAUSE setting [NFC]

The location of this license file moved in LLVM 16.  Since I'm doing
cleanup in this area and the split of ports is about 50/50, switch to
setting the old location in the older ports so the newer ports set fewer
variables.

Sponsored by:	DARPA, AFRL
57f97b36a7
Brooks Davis (brooks) · 13.0.1_7
devel/llvm*: LICENSE_DIR simplification

WRKSRC moved to the top of the source tree with llvm12.  As a result,
LICENSE_DIR became ${WRKSRC}/llvm.  Given that llvm11 the only port that
wasn't setting LICENSE_DIR, flip the script and default to
${WRKSRC}/llvm with llvm11 overriding.

Sponsored by:	DARPA, AFRL
4f177eced7
Brooks Davis (brooks) · 13.0.1_7
devel/llvm*: don't define the ARM license [NFC]

All LLVM ports excluded it from the list as it was removed many years
ago.

Sponsored by:	DARPA, AFRL
d17143d1b7
Brooks Davis (brooks) · 13.0.1_7
devel/llvm*: Always define LLVM2 license [NFC]

All LLVM ports in the tree use the Apache License 2.0 with LLVM
Exceptions license so cerntralize the definition.

Sponsored by:	DARPA, AFRL
18840affe5
Brooks Davis (brooks) · 13.0.1_7
devel.llvm[12345678]: remove cmark conflict [NFC]

The build conflict with cmark is no longer needed.

PR:		239636, 274848
7cea690fdd
Dimitry Andric (dim) · 13.0.1_7
devel/llvm13: 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/devel/llvm13/work/llvm-project-13.0.1.src/flang/include/flang/Evaluate/integer.h:310:32: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
    310 |       auto back{FROM::template ConvertSigned(result.value)};
        |                                ^

Upstream has committed a fix to their main branch [2], but it does not
apply cleanly to 13.0.1, so add a backported patch.

[1] https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#96
[2] https://github.com/llvm/llvm-project/commit/7bc7672925f8154be3b8220365d3f269ac43621c

PR:		281486
Approved by:	brooks (maintainer)
MFH:		2024Q3
e34a77083e
Dimitry Andric (dim) · 13.0.1_7
devel/llvm13: 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 devel/llvm13 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 char>'
      820 |   static_assert(is_same<_CharT, typename traits_type::char_type>::value,
          |                                          ^
    /wrkdirs/usr/ports/devel/llvm13/work-default/llvm-project-13.0.1.src/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp:595:34: note: in instantiation of template class 'std::basic_string<unsigned char>' requested here
      638 |       std::basic_string<uint8_t> zeros(reg_info.byte_size, '\0');
          |                                  ^
    /usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
       23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
          |                             ^

Upstream llvm has fixed this in commit 68744ffbdd7d [2], so add this as
a backported patch file.

[1] https://libcxx.llvm.org/ReleaseNotes/19.html#deprecations-and-removals
[2] https://github.com/llvm/llvm-project/commit/68744ffbdd7d

PR:		280579
Approved by:	brooks (maintainer)
MFH:		2024Q3
2643a65e5d
Daniel Engberg (diizzy) · 13.0.1_7
devel/llvm*: Remove unnecessary C/CFLAGS definitions

As of 3c5189a0fd4c82addfb659024bf28c5006bf88f7
there's no need to define DNDEBUG manually

PR:		277909
Approved by:	portmgr (maintainer timeout, 2+ weeks)
1f50c8e242
Muhammad Moinur Rahman (bofh) · 13.0.1_7
devel/llvm*: Sanitize MANPREFIX

Not bumping as there is no change in PKG. This should have been done in
my previous commit.

Approved by:	portmgr (blanket)
1bf7d5ccf6
Muhammad Moinur Rahman (bofh) · 13.0.1_7
devel/llvm13: Sanitize MANPREFIX

Approved by:	brooks (private mail)
3285241c52
Piotr Kubaj (pkubaj) · 13.0.1_6
devel/llvm13: remove ELFv1 support
494e26ffd9
Muhammad Moinur Rahman (bofh) · 13.0.1_6
devel/llvm1[0123456]: Fix build

After the EOL of stable/12 sparc related codes were removed which broke
the build. This patches fixes those builds and also the consumers.

Thanks to dim@ for tha patches.

Approved by:	portmgr (blanket)
f4206bd520
Muhammad Moinur Rahman (bofh) · 13.0.1_6
*/*: 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
bbab7f59e9
Brooks Davis (brooks) · 13.0.1_6
devel/llvm1[234567]: enable qsort sanatizer wrapper

I'd disabled it in 10.0.0 when it was found to be broken.  It was then
fixed in LLVM 12, but the patch was never never removed and I propogated
it along for several year.

Reported by:	Brad Smith <brad@comstyle.com>
See also:	https://github.com/llvm/llvm-project/issues/46176
270bf9855c
Brooks Davis (brooks) · 13.0.1_5
devel/llvm13: fix build with lld 17

PR:		273959
0926585c93
Brooks Davis (brooks) · 13.0.1_5
devel/llvm13: fix openmp library depends

Use base system libelf and don't link with libffi.

Reformat long and/or multi-line OPTION_FOO variables.

PR:		273801
Co-authored-by:	Ivan Rozhuk <rozhuk.im@gmail.com>
f9f9bb0e18
Brooks Davis (brooks) · 13.0.1_4
devel/llvm1*: remove cmake 4Python3_EXECUTABLE definition

It is now defined in Mk/Uses/python.mk.

PR:		273713
7076fade2f
Piotr Kubaj (pkubaj) · 13.0.1_4
devel/llvm[0-3]: enable GOLD on all powerpc64
e43ec0c487
Brooks Davis (brooks) · 13.0.1_4
devel/llvm13: arm and aarch64 improvements

Change clang to allow -m32 on arm64.  This is a backport from upstream
and will be merged to FreeBSD head soon.  See D40943 for more info.

Remove an obsolete patch which breaks arm64. [0]

When BE_NATIVE is specified on aarch64, include the ARM (32-bit)
backend.

PR:		271616 [0]
Reported by:	jfc@mit.edu [0]
391873c7b9
Rene Ladan (rene) · 13.0.1_3
all: remove explicit versions in USES=python for "3.x+"

The logic in USES=python will automatically convert this to 3.8+ by
itself.

Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.

finance/quickfix: mark BROKEN with PYTHON

libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++ -DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable -Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi -Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings -Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x -MT _quickfix_la-QuickfixPython.lo -MD -MP -MF .deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp  -fPIC -DPIC -o .libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
          ^~~~~~~~~~
1 warning and 1 error generated.

Reviewed by:	portmgr, vishwin, yuri
Differential Revision:	<https://reviews.freebsd.org/D40568>
3d9a815d9c
Brooks Davis (brooks) · 13.0.1_3
devel/llvm*: Consistently use python:3.7+

llvm12 was inappropriately constrained to 3.6-3.9 breaking the ability
to set 3.10 as the default.  llvm11 just specified "python", but there's
no need to keep 2.7 support around.  The rest had obsolete 3.6+ entries.

No functional change: This is not expected to change the version of
python used.

PR:		270978
MFH:		2023Q2
Reported by:	michael.osipov@siemens.com
Sponsored by:	DARPA
fb323dfd2a
Po-Chuan Hsieh (sunpoet) · 13.0.1_3
devel/llvm13: Fix build with swig 4.1.1

PR:		270720
7e6d69b287
Brooks Davis (brooks) · 13.0.1_3
devel/llvm*: Fix CONFLICT on cmark

If the user has the textproc/cmark package installed, the py*-CommonMark
package will fail to install.  This in turn leads to build failures down
the line when sphinx tries to load commonmark.  The result is confusing
and potentially wastes a lot of build time so just conflict upfront.
The previous code attempted to do this, but I'd listed the conflict
incorrectly in 2019. :(

PR:		239636
Reported by:	Stephen Roznowski <sjrbulk@verizon.net>
47c2b0aec1
Brooks Davis (brooks) · 13.0.1_3
devel/llvm1[2345]: fix build with clang 15

When building llvm12 through llvm15 with clang 15 as host compiler, and
when compiler-rt is enabled, there will be errors due to float16
support, similar to:

    In file included from /wrkdirs/usr/ports/devel/llvm15/work/llvm-project-15.0.6.src/compiler-rt/lib/builtins/extendhfsf2.c:11:
    In file included from /wrkdirs/usr/ports/devel/llvm15/work/llvm-project-15.0.6.src/compiler-rt/lib/builtins/fp_extend_impl.inc:38:
    /wrkdirs/usr/ports/devel/llvm15/work/llvm-project-15.0.6.src/compiler-rt/lib/builtins/fp_extend.h:44:9: error: _Float16 is not supported on this target
    typedef _Float16 src_t;
            ^

This is because compiler-rt's CMake infrastructure detects float16
support at configure time, while targeting 'pure' x86_64, but then
builds parts of its tree also targeting i386.

To work around this, modify compiler-rt's top-level CMakeLists.txt to
move setting the -DCOMPILER_RT_HAS_FLOAT16 compilation flag to the
arch-specific for loop, so it only gets enabled for x86_64, and not for
i386.

For llvm15, also add another modification that removes the bfloat16
source files from the i386_SOURCES list, so these are not built for
i386.

PR:		268196
Submitted by:	dim
830bbdd84a
Stefan Eßer (se) · 13.0.1_3
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)
fb16dfecae
Stefan Eßer (se) · 13.0.1_3
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.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
b7f05445c0
Brooks Davis (brooks) · 13.0.1_3
devel/llvm13: fix hangs with CPUTYPE=skylake-avx512

Merge commit e8305c0b8f49 from llvm git (by Simon Pilgrim)

    [X86] combineX86ShuffleChain - don't fold to truncate(concat(V1,V2)) if it was already a PACK op

    Fixes #55050

PR:		264480
MFH:		2022Q2
Sponsored by:	DARPA, AFRL
7aba7c32a0
Brooks Davis (brooks) · 13.0.1_2
devel/llvm*: (NFC) extract MAN1SRCS list

Move the lists of manpages into Makefile.MAN1SRCS as with COMMANDS.

Sponsored by:	DARPA, AFRL
3a570865ce
Charlie Li (vishwin) · 13.0.1_2
textproc/libxml2: bump all LIB_DEPENDS consumers

This is a separate commit to facilitate easier cherry-picking for
quarterly.

PR: 262853, 262940, 262877, 263126
Approved by: fluffy (mentor)
d63665f7cd
Matthias Fechner (mfechner) · 13.0.1_1
textproc/libxml2: bump all dependencies

This should make sure that all dependent ports will pick
up the new version commited with a13ec21cd733f67a9fc0dc00ab45268bdc236246
247c7db751
Brooks Davis (brooks) · 13.0.1
devel/lvm13: fix build without LLDB

While here, correctly identify several scanbuild-related files as being
part of clang.

PR:		261374
Reported by:	pkubaj
f0a48f0f28
Brooks Davis (brooks) · 13.0.1
devel/llvm13: update to 13.0.1

Disable FLANG on armv6 and armv7. It's not 32-bit clean and many
systems lack the RAM to build it natively.

Disable LLDB on riscv64, there is no riscv64 support. [0]

PR:		261374 [0]
MFH:		2022Q1
b00578b9b2
Brooks Davis (brooks) · 13.0.0_3
devel/llvm1[23]: Add BE_WASM option

When set, always build the WebAssembly backend (now required by Firefox
via wasi).  This option effects BE_FREEBSD and BE_NATIVE.  It has no
effect on BE_STANDARD.

This option is enabled by default.
95394a8fd2
Stefan Eßer (se) · 13.0.0_2
*/*: Remove redundant '-*' from CONFLICTS definitions

The conflict checks compare the patterns first against the package
names without version (as reported by "pkg query "%n"), then - if
there was no match - agsinst the full package names including the
version (as reported by "pkg query "%n-%v").

Approved by: portmgr (blanket)
04b9da4140
Brooks Davis (brooks) · 13.0.0_2
devel/llvm13: bump PORTREVISON

The patch fixed in d326758c32dff2938c1da97c0df5926612c3efa2 broke
non-powerpc platforms so we need a bump for all platforms.

Requested by:	kib
7506e42640
Brooks Davis (brooks) · 13.0.0_1
devel/llvm13: fix install with MLIR disabled

PR:		259570 (reported here, but tangential)
Reported by:	stephen
3f4163a191
Piotr Kubaj (pkubaj) · 13.0.0_1
devel/llvm13: revert to the older powerpc64 fix

The newer one apparently causes a regression on amd64 freestanding binaries.

While here, fix some whitespace issues in Makefile.

Submitted by:	adalava
d326758c32
Brooks Davis (brooks) · 13.0.0_1
devel/llvm1[123]: Fix VIA PadLock xstore

Pull in the code gen portion of upstream LLVM's 2d8c18fbbdd1.

MFH:		2021Q4
Sponsored by:	DARPA
0cb1a5fe81
Piotr Kubaj (pkubaj) · 13.0.0
devel/llvm13: fix building software with -fstack-protector-strong

Apply https://reviews.llvm.org/D109090
Fixes immediate segfault when executing binaries built by the port's compiler with -fstack-protector-strong.

Submitted by:	adalava
531a51cc36