- add patch from fedora changing signature from `elf()` to `elf(int)`
in `aslink.h`:
4a7c2a7e32/f/sdcc-4.4.0-aslink.patch
Upstream issue:
https://sourceforge.net/p/sdcc/bugs/3846/
Fixes build failure with gcc15:
```
lklex.c: In function 'skip':
lkelf.c:857:1: error: conflicting types for 'elf'; have 'void(int)'
857 | elf (int i)
| ^~~
In file included from lkelf.c:25:
aslink.h:1315:25: note: previous declaration of 'elf' with type 'void(void)'
1315 | extern VOID elf();
| ^~~
lkout.c:115:17: error: too many arguments to function 'elf'; expected 0, have 1
115 | elf(i);
| ^~~ ~
In file included from lkout.c:30:
aslink.h:1315:25: note: declared here
1315 | extern VOID elf();
| ^~~
```
This change is necessary to mitigate the man-page output for sdcc failing on systems with case-insensitive file systems.
This is caused by a regression in sdcc's own build scripts. Once the fix in sdcc is released, versions of sdcc with the fix can be built with man pages on darwin.
sdcc 4.5.0 massively rewrote sim/ucsim/Makefile.in, and lost the `.PHONY`
rule in the process. As a result, on macOS (which uses a case-insensitive
filesystem), the INSTALL file keeps the `install` target in the ucsim
directory from running. Nothing else creates the `man` output, causing
the entire build to fail.
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
nix-build a08b3a4d19.tar.gz \
--argstr baseRev b32a094368
result/bin/apply-formatting $NIXPKGS_PATH