Skip to content

Conversation

@oech3
Copy link
Contributor

@oech3 oech3 commented Oct 5, 2025

Reduce binary size by:

  1. Enabling multicall hardkink
  2. Dropping stub binaries

note: We can manually export some RUSTFLAGS from release-fast profile.

@ognevny
Copy link
Collaborator

ognevny commented Oct 5, 2025

better use patch for backporting specific change, so your commit is https://patch-diff.githubusercontent.com/raw/uutils/coreutils/pull/8810.patch and you don't have to deal with SELinux related things

@ognevny
Copy link
Collaborator

ognevny commented Oct 5, 2025

note: We can manually export some RUSTFLAGS from release-fast profile.

do we actually need it? Cargo mixes our RUSTFLAGS with profile flags

@oech3
Copy link
Contributor Author

oech3 commented Oct 5, 2025

Some flags e.g. -C panic=abort are not default (and should not default for all project).

@ognevny
Copy link
Collaborator

ognevny commented Oct 5, 2025

you may add one more profile with a name release-dist or something

@oech3
Copy link
Contributor Author

oech3 commented Oct 5, 2025

make PROFILE= cannot use profile from Cargo.toml yet and PR to fix is pending. (And backporting this is not important. MULTICALL=y already for saves 100 MB to <10 MB).

@oech3
Copy link
Contributor Author

oech3 commented Oct 5, 2025

better use patch for backporting specific change,

Is bumping commit for non -git not preferred? It is used at https://archlinux.org/packages/core/x86_64/glibc/

@ognevny
Copy link
Collaborator

ognevny commented Oct 5, 2025

better use patch for backporting specific change,

Is bumping commit for non -git not preferred? It is used at https://archlinux.org/packages/core/x86_64/glibc/

glibc is a core package so Arch maintainers can easily put the fixes when they approach. Arch also already did backports for uutils-coreutils, but not git bump.

of course we prefer backporting, as this doesn't make huge update when we bump pkgrel

@oech3
Copy link
Contributor Author

oech3 commented Oct 5, 2025

we prefer backporting,

OK

@oech3 oech3 closed this Oct 5, 2025
@ognevny
Copy link
Collaborator

ognevny commented Oct 5, 2025

we prefer backporting,

OK

I can do this, if you wish

@oech3
Copy link
Contributor Author

oech3 commented Oct 5, 2025 via email

@ognevny
Copy link
Collaborator

ognevny commented Oct 5, 2025

But I wait upstreaming of an another patch for binary size.

what is this patch?

@oech3 oech3 deleted the uu-ln branch October 6, 2025 06:56
@oech3
Copy link
Contributor Author

oech3 commented Oct 6, 2025

uutils/coreutils#8730
I'm not willing to apply non-upstreamed patch.

(This is unnecessary for cargo only install, but has another issue about installing locales which is not fixed yet.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants