3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/system/netdata/skip-CONFIGURE_COMMAND.patch
Sergei Trofimovich 3773e35a21 netdata: do not persist ./configure flags to decrease closure size
Before:

    $ nix path-info -r ./result | wc -l
    76
    $ nix path-info -Sh ./result
    ...-netdata-1.34.1       366.8M

After:

    $ nix path-info -r ./result | wc -l
    30
    $ nix path-info -Sh ./result
    ...-netdata-1.34.1       205.7M
2022-06-01 10:28:06 +01:00

17 lines
606 B
Diff

Shrink closure size by avoiding paths embedded from configure call.
https://github.com/NixOS/nixpkgs/issues/175693
--- a/daemon/buildinfo.c
+++ b/daemon/buildinfo.c
@@ -248,7 +248,9 @@ void print_build_info(void) {
char *prebuilt_distro = NULL;
get_install_type(&install_type, &prebuilt_arch, &prebuilt_distro);
- printf("Configure options: %s\n", CONFIGURE_COMMAND);
+ // To minimize closure size do not persist configure options
+ // with build-time inputs.
+ printf("Configure options: REMOVED\n");
if (install_type == NULL) {
printf("Install type: unknown\n");