lang/nim: use github submodules
This commit changes the way that the repositories that are needed will be
downloaded. Before this commit, every repository was manually set using their
git tag and then downloaded and extracted manually. This is a lot work,
especially if repositories have other dependencies, e.g. submodules depend on
other submodules. While some of them are not defined in a .gitmodules but
rather in koch.nim, it basically does the same. Pull a specific tag of a repo
into a given location, so why not just use submodules for everything?
This especially helps because, for example, "nimble" packaged the submodules
together for stable releases (e.g. 0.26.2), however there is a patch that
(should) allow nimble and thus nim to build on illumos and netbsd. When trying
to fetch this patch, the submodules are not included and about 8 submodules
would need to be manually fetched.
Firewall: replace legacy schedule pages
Remove the legacy pages and route the Schedules menu and firewall rule
links to the MVC page. Update schedule ACLs and package entries.
Firewall: add schedule model and compatibility fixture
Preserve the legacy schedule XML structure through model field types.
Compare model output with the existing-data fixture, and allow referenced
schedules without time ranges in the runtime status check.
Firewall: add schedule master detail view
Add schedule and time range grids, annual date and time inputs, and an
explicit Apply button. Render grid values as text-only DOM elements.
Firewall: add schedule controllers and forms
Expose schedule and time range CRUD through the model and add an explicit
reconfigure action. Define the page controller and dialog forms.
[CIR] Upstream AssignmentMemcpyizer (#236803)
This adds a special class to to replace member initializers with memcpy
when emitting assignment operator body. This is not entirely a
cherry-pick but rather a port from the incubator because the current
state of that class in the incubator is not buildable with LLVM main
branch. This PR also ports relevant test cases from the incubator that
were in clang/test/CIR/CodeGen/assign-operator.cpp in incubator's tree.
However current LLVM main branch also has a test file with the same name
but different test cases that are unaffected by AssignmentMemcpyizer, so
I added ported cases to the new file assign-operator-memcpy.cpp . An
additional test case `HasPadding` that originally motivated this work
and that doesn't come from the incubator has been added to the new test
file as well. There is no functional changes to the class, so a few
TODOs are still present.
The relevant (non-refactoring) commits from the incubator that implement
the class are:
[8 lines not shown]
[flang][OpenMP] Reject coindexed objects (#243125)
OpenMP variable list items exclude coindexed objects, including when
used in extended and locator lists.
Continguity checks have to be skipped as well to avoid an assertion for
strided reduction sections.
The extra -fopenmp-version=61 run in depend03.f90 is because the clause
is processed with a different path in OpenMP 6.1.
Assisted-by: AI
pkg-serve: stat the opened descriptor instead of the path
Open first and fstat() that fd, so the file checked is the one served.
O_NONBLOCK avoids blocking on a FIFO.
pkg-serve: stat the opened descriptor instead of the path
Open first and fstat() that fd, so the file checked is the one served.
O_NONBLOCK avoids blocking on a FIFO.
pkg-serve: do not leak whether a path exists
Report "ko: file not found" for non-regular files as well, so a
client cannot tell an existing path from a missing one.
pkg-serve: do not leak whether a path exists
Report "ko: file not found" for non-regular files as well, so a
client cannot tell an existing path from a missing one.
pkg-serve: bound the command line length
getline(3) grows its buffer without limit, so a client could make the
process consume unbounded memory. Read commands with a bounded
reader, drain and reject lines longer than MAXLINE with
"ko: command too long", and document the limit.
pkg-serve: bound the command line length
getline(3) grows its buffer without limit, so a client could make the
process consume unbounded memory. Read commands with a bounded
reader, drain and reject lines longer than MAXLINE with
"ko: command too long", and document the limit.
libfetch: Fix buffer overruns in FTP code
* When parsing the reply to a CWD, PWD, or CDUP command, if we ran out
of space in the destination buffer, we would correctly terminate the
loop, but then incorrectly see the remaining length as non-zero,
causing us to write a terminating NUL one past the end of the buffer
and report success instead of a protocol error. Additionally, the
code would fail to notice an improperly terminated pathname, and was
hard to follow, so rewrite the entire loop.
* When comparing the current working directory to the intended working
directory to calculate the minimal operation to get from one to the
other, if the current working directory was an empty string, we would
improperly read one byte below the start of the intended working
directory.
MFC after: 1 week
Reported by: Laam Alif at Ibteda Digital Library
Differential Revision: https://reviews.freebsd.org/D61502
libfetch: Fix buffer overruns in FTP code
* When parsing the reply to a CWD, PWD, or CDUP command, if we ran out
of space in the destination buffer, we would correctly terminate the
loop, but then incorrectly see the remaining length as non-zero,
causing us to write a terminating NUL one past the end of the buffer
and report success instead of a protocol error. Additionally, the
code would fail to notice an improperly terminated pathname, and was
hard to follow, so rewrite the entire loop.
* When comparing the current working directory to the intended working
directory to calculate the minimal operation to get from one to the
other, if the current working directory was an empty string, we would
improperly read one byte below the start of the intended working
directory.
MFC after: 1 week
Reported by: Laam Alif at Ibteda Digital Library
Differential Revision: https://reviews.freebsd.org/D61502
Revert "AMDGPU: Fold inline immediates in peephole-opt (#242952)" (#243421)
This reverts commit 66cb135fa288982a143ff88eb06b602a7e1e37e5.
It breaks folding of packed bf16 and packed f32 operands.