Commit Graph

13 Commits

Author SHA1 Message Date
Ben Siraphob
869d641281 treewide: replace stdenv.is* with stdenv.hostPlatform.is* 2026-05-10 10:06:35 -07:00
ghpzin
f964859cf9 sdcc: fix build with gcc15
- 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();
      |                         ^~~
```
2025-12-17 23:23:49 +03:00
Luna Nova
e7fbed853b treewide: remove usages of obsolete pie hardening flag 2025-10-09 10:13:03 -07:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Dhruv Gramopadhye
c03708e5ff sdcc: disable broken-on-darwin man pages output
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.
2025-06-05 17:31:55 +02:00
Rhys-T
2e33d35e74 sdcc: add reminder to remove .PHONY patch with next release 2025-05-05 07:04:48 +02:00
Rhys-T
a9a6b98f05 sdcc: fix build 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.
2025-05-05 07:04:48 +02:00
FliegendeWurst
6b93024f59 sdcc: disable PIE hardening per upstream 2025-04-11 07:18:11 +02:00
R. Ryantm
e1dd5d5b1f sdcc: 4.4.0 -> 4.5.0 2025-01-29 07:56:05 +01:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
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
2024-12-10 20:26:33 +01:00
Adrian Pistol
62aca06db2 sdcc: 4.2.0 -> 4.4.0 2024-02-13 12:47:11 +01:00
Anderson Torres
10b64a28c4 sdcc: refactor
- remove null'ities
- assert validity of excludedPorts list
- use finalAttrs design pattern
- split outputs
- add meta.mainProgram,
2023-11-11 16:48:40 -03:00
Anderson Torres
2423baa7f1 sdcc: migrate to by-name 2023-11-11 16:48:40 -03:00