Skip to content

thttpd: fix build with GCC >= 14#370071

Merged
FliegendeWurst merged 1 commit intoNixOS:masterfrom
sternenseemann:thttpd-gcc-14
Mar 9, 2025
Merged

thttpd: fix build with GCC >= 14#370071
FliegendeWurst merged 1 commit intoNixOS:masterfrom
sternenseemann:thttpd-gcc-14

Conversation

@sternenseemann
Copy link
Member

@sternenseemann sternenseemann commented Jan 1, 2025

Unfortunately there is no way in the configure script to persist CFLAGS from configure to the final build (CFLAGS is respected by configure, but by configure only). This roughly matches what alpine is doing now: They pass -fpermissive to configure via CFLAGS to avoid -Wimplicit-int, the -Wimplicit-function-declaration in the actual build seemingly never happens on Alpine, probably due to musl.

ref. #356812

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

Unfortunately there is no way in the configure script to persist CFLAGS
from configure to the final build (CFLAGS is respected by configure, but
by configure only). This roughly matches what alpine is doing now: They
pass -fpermissive to configure via CFLAGS to avoid -Wimplicit-int, the
-Wimplicit-function-declaration in the actual build seemingly never
happens on Alpine, probably due to musl.
@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Jan 1, 2025
@lucasew
Copy link
Contributor

lucasew commented Jan 2, 2025

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 370071


x86_64-linux

✅ 1 package built:
  • thttpd

@FliegendeWurst FliegendeWurst merged commit 20aa242 into NixOS:master Mar 9, 2025
29 checks passed
@sternenseemann sternenseemann deleted the thttpd-gcc-14 branch March 10, 2025 20:29
tvlbot pushed a commit to tvlfyi/kit that referenced this pull request Apr 20, 2025
- //3p/overlays/tvl:

  - Drop upstreamed thttpd override.
    NixOS/nixpkgs#370071

  - Update telega.el and pin tdlib to compatible version.

- Some packages were affected by the change from fetchCargoTarball to
  fetchCargoVendor which invalidates all cargoSha256 hashes without
  explaining this to the user in any way. See
  <NixOS/nixpkgs#394012>.

  - //users/emery/pkgs/syndicate-server: can be removed anyways
  - //third_party/nixpkgs:grpc-health-check: override is unnecessary now
  - //third_party/nixpkgs:harmonia: updated cargoSha256

- //tvix: address some new clippy lints

- //tvix/cli: Reflect combined graphical iso change.
  http://github.com/nixos/nixpkgs/commit/a2636dae467e16b48

- //tvix/*-go: rerun protoc on protobuf definitions

- //users/aspen/system/yeren:
  Use default kernel version from nixpkgs as 6.11 is EOL.
  This means DIGImend is no longer supported. Hopefully whatever tablet
  aspen is using is supported by upstream now. See also
  - https://spbnick.github.io/2024/11/03/Letting-go-of-DIGImend.html
  - NixOS/nixpkgs#363873
  - NixOS/nixpkgs#396730
  - NixOS/nixpkgs#378830

Change-Id: If8be8b336fc6d8652ecab087decc6fbbc0509647
Reviewed-on: https://cl.tvl.fyi/c/depot/+/13276
Autosubmit: sterni <[email protected]>
Reviewed-by: emery <[email protected]>
Reviewed-by: tazjin <[email protected]>
Reviewed-by: aspen <[email protected]>
Tested-by: BuildkiteCI
tvlbot pushed a commit to tvlfyi/tvix that referenced this pull request Apr 20, 2025
- //3p/overlays/tvl:

  - Drop upstreamed thttpd override.
    NixOS/nixpkgs#370071

  - Update telega.el and pin tdlib to compatible version.

- Some packages were affected by the change from fetchCargoTarball to
  fetchCargoVendor which invalidates all cargoSha256 hashes without
  explaining this to the user in any way. See
  <NixOS/nixpkgs#394012>.

  - //users/emery/pkgs/syndicate-server: can be removed anyways
  - //third_party/nixpkgs:grpc-health-check: override is unnecessary now
  - //third_party/nixpkgs:harmonia: updated cargoSha256

- //tvix: address some new clippy lints

- //tvix/cli: Reflect combined graphical iso change.
  http://github.com/nixos/nixpkgs/commit/a2636dae467e16b48

- //tvix/*-go: rerun protoc on protobuf definitions

- //users/aspen/system/yeren:
  Use default kernel version from nixpkgs as 6.11 is EOL.
  This means DIGImend is no longer supported. Hopefully whatever tablet
  aspen is using is supported by upstream now. See also
  - https://spbnick.github.io/2024/11/03/Letting-go-of-DIGImend.html
  - NixOS/nixpkgs#363873
  - NixOS/nixpkgs#396730
  - NixOS/nixpkgs#378830

Change-Id: If8be8b336fc6d8652ecab087decc6fbbc0509647
Reviewed-on: https://cl.tvl.fyi/c/depot/+/13276
Autosubmit: sterni <[email protected]>
Reviewed-by: emery <[email protected]>
Reviewed-by: tazjin <[email protected]>
Reviewed-by: aspen <[email protected]>
Tested-by: BuildkiteCI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants