Skip to content

tini: fix build with musl libc 1.2.5 - #481713

Merged
edef1c merged 1 commit into
NixOS:masterfrom
edef1c:push-wuyvsylzulkn
Jan 19, 2026
Merged

edef1c merged 1 commit into
NixOS:masterfrom
edef1c:push-wuyvsylzulkn

Conversation

@edef1c

@edef1c edef1c commented Jan 19, 2026

Copy link
Copy Markdown
Member

Adds upstream patch to fix build with musl libc 1.2.5, which removed basename() from <string.h>.
The patch includes <libgen.h> for the POSIX-compliant basename().

Upstream commit: krallin/tini@924c4bd

Fixes pkgsStatic.tini build failure:

error: implicit declaration of function 'basename' [-Wimplicit-function-declaration]

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
    • [NixOS tests] in [nixos/tests].
    • [Package tests] at passthru.tests.
    • Tests in [lib/tests] or [pkgs/test] for functions and "core" functionality.
  • Ran nixpkgs-review on this PR. See [nixpkgs-review usage].
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits [CONTRIBUTING.md], [pkgs/README.md], [maintainers/README.md] and other READMEs.

Include libgen.h for POSIX basename(), which musl 1.2.5 removed from
string.h.
@edef1c
edef1c requested review from alyssais and rorosen January 19, 2026 17:42
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Jan 19, 2026

@alyssais alyssais left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth asking upstream for a release? There hasn't been one in five years.

@alyssais

Copy link
Copy Markdown
Member

@ofborg build tini pkgsStatic.tini

@edef1c
edef1c added this pull request to the merge queue Jan 19, 2026
@edef1c
edef1c removed this pull request from the merge queue due to a manual request Jan 19, 2026
@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jan 19, 2026
@edef1c
edef1c added this pull request to the merge queue Jan 19, 2026
Merged via the queue into NixOS:master with commit 978a8c0 Jan 19, 2026
4 of 8 checks passed
@edef1c
edef1c deleted the push-wuyvsylzulkn branch January 19, 2026 20:51
@nixpkgs-ci

nixpkgs-ci Bot commented Jan 19, 2026

Copy link
Copy Markdown
Contributor

Successfully created backport PR for release-25.11:

@github-actions github-actions Bot added the 8.has: port to stable This PR already has a backport to the stable release. label Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: port to stable This PR already has a backport to the stable release. 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. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants