Skip to content

discord: fetch distros at build time - #507728

Merged
Scrumplex merged 1 commit into
NixOS:masterfrom
4evy:flameflag/push-lqmwnutukpsn
Apr 24, 2026
Merged

Scrumplex merged 1 commit into
NixOS:masterfrom
4evy:flameflag/push-lqmwnutukpsn

Conversation

@4evy

@4evy 4evy commented Apr 7, 2026

Copy link
Copy Markdown
Member

discord-development linux tarball changed layout in 0.0.235

Instead of bundling DiscordDevelopment directly, it now ships only
a small updater_bootstrap ELF that downloads the real channel into
$XDG_CONFIG_HOME/discorddevelopment/app-<version>/ on first run

The old install phase blindly chmod'd the channel binary and broke as
soon as 0.0.235 hit

(First seen downstream in https://github.com/FlameFlag/nixcord/actions/runs/24025186671/job/70062037830#step:8:689 the previous runs earlier still built 0.0.234 normally)

Darwin not affected (yet?)

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • 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.

@4evy

This comment has been minimized.

@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: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. labels Apr 7, 2026
@4evy

4evy commented Apr 10, 2026

Copy link
Copy Markdown
Member Author

As talked about here: #507728 (comment)

I couldn't figure out a way to make the proprietary rust cli discord ships to download a specific version of discord, so I think best approach might be to just bootstrap it ourselves

If anyone else could figure out how to bend the CLI to behave feel free to let me know, but from what I saw it isn't really possible

I'm leaving 0e6d04f as separate commit for easier review (previous commit f4c3856) - but if we can't find better solution, I'll squash this one

@4evy

This comment has been minimized.

@4evy

4evy commented Apr 12, 2026

Copy link
Copy Markdown
Member Author

did some reverse engineering on the updater_bootstrap binary to confirm there really isn't a way to make it download a specific version, figured I'd document it properly in case anyone else goes down this rabbit hole

tl;dr

there is no way to make the updater_bootstrap CLI download a specific version. the binary always hits /manifests/latest which always returns the newest version. no CLI flags, no env vars, no config files, no sqlite pre-seeding - nothing. pinned_update in the db schema is just internal state tracking for resuming interrupted installs

bootstrapping ourselves (fetching directly from the CDN) is the only viable path here

reverse engineering methodology

grabbed the tarball, extracted the binary, ran it through ghidra headless (ghidra auto-applied rust-common data types which helped a lot), then cross-referenced the decompiled output with raw string analysis

setup (reproducible with nix-shell)

# download the tarball
mkdir -p ~/discord-re && cd ~/discord-re
curl -sL -o discord-dev.tar.gz \
  "https://development.dl2.discordapp.net/apps/linux/0.0.239/discord-development-0.0.239.tar.gz"
tar xzf discord-dev.tar.gz

# verify we have the right thing
file DiscordDevelopment/updater_bootstrap
# ELF 64-bit LSB pie executable, x86-64, stripped

# quick string analysis
nix-shell -p binutils --run \
  'strings DiscordDevelopment/updater_bootstrap | grep -iE "(manifest|version|update|channel|pinned|install|query)" | sort -u'

ghidra headless analysis

mkdir -p ~/discord-re/ghidra_project ~/discord-re/ghidra_scripts

# step 1: import + auto-analysis (ghidra applies rust-common types automatically)
nix-shell -p ghidra --run \
  "ghidra-analyzeHeadless ~/discord-re/ghidra_project discord_updater \
   -import ~/discord-re/DiscordDevelopment/updater_bootstrap -overwrite"

# step 2: run analysis scripts (see below)
nix-shell -p ghidra --run \
  "ghidra-analyzeHeadless ~/discord-re/ghidra_project discord_updater \
   -process updater_bootstrap -noanalysis \
   -scriptPath ~/discord-re/ghidra_scripts \
   -postScript AnalyzeUpdater.java"
AnalyzeUpdater.java (ghidra script - finds key string xrefs and decompiles referencing functions)
// Analyze Discord updater_bootstrap - find key string xrefs and decompile
// @category Analysis

import ghidra.app.script.GhidraScript;
import ghidra.program.model.listing.*;
import ghidra.program.model.symbol.*;
import ghidra.program.model.address.*;
import ghidra.program.model.mem.*;
import ghidra.app.decompiler.*;
import java.io.*;
import java.util.*;

public class AnalyzeUpdater extends GhidraScript {

    PrintWriter out;
    DecompInterface decomp;

    @Override
    public void run() throws Exception {
        out = new PrintWriter(new FileWriter(System.getProperty("user.home") + "/discord-re/analysis_output.txt"));

        Program program = currentProgram;
        Listing listing = program.getListing();
        FunctionManager funcMgr = program.getFunctionManager();
        ReferenceManager refMgr = program.getReferenceManager();

        decomp = new DecompInterface();
        decomp.openProgram(program);
        decomp.setOptions(new DecompileOptions());

        w("Total functions: " + funcMgr.getFunctionCount());

        // search memory for critical strings and trace back to functions
        Memory mem = program.getMemory();
        String[] patterns = {
            "/manifests/latest", "update_to_latest", "installer.db",
            "updater-client-worker", "failed to spawn updater thread",
            "invalid updater configuration", "Discord-Updater/1",
            "release_channel", "query_update_plan", "query_current_version",
            "pinned_update", "host_updates", "required_update",
            "distributions/", "set_manifests", "collect_garbage",
            "Blocked: Transition flag", "Mismatch between last update",
            "delta_manifest.json"
        };

        Set<String> funcAddrs = new LinkedHashSet<>();
        for (String pattern : patterns) {
            byte[] bytes = pattern.getBytes("UTF-8");
            Address found = mem.findBytes(mem.getMinAddress(), bytes, null, true, monitor);
            while (found != null) {
                ReferenceIterator refs = refMgr.getReferencesTo(found);
                while (refs.hasNext()) {
                    Reference ref = refs.next();
                    Function func = funcMgr.getFunctionContaining(ref.getFromAddress());
                    if (func != null) {
                        String addr = func.getEntryPoint().toString();
                        w("'" + pattern + "' @ " + found + " -> " + func.getName() + " @ " + addr);
                        funcAddrs.add(addr);
                    }
                }
                found = mem.findBytes(found.add(1), bytes, null, true, monitor);
            }
        }

        // decompile all discovered functions + their callers
        Set<String> decompiled = new HashSet<>();
        for (String addr : funcAddrs) {
            decompFunc(funcMgr, addr, decompiled);
        }
        for (String addr : new ArrayList<>(funcAddrs)) {
            try {
                Function func = funcMgr.getFunctionAt(
                    currentProgram.getAddressFactory().getAddress(addr));
                if (func != null) {
                    for (Function caller : func.getCallingFunctions(monitor)) {
                        decompFunc(funcMgr, caller.getEntryPoint().toString(), decompiled);
                    }
                }
            } catch (Exception e) {}
        }

        out.flush();
        out.close();
        decomp.dispose();
    }

    private void decompFunc(FunctionManager funcMgr, String addrStr, Set<String> done) {
        if (done.contains(addrStr)) return;
        done.add(addrStr);
        try {
            Address addr = currentProgram.getAddressFactory().getAddress(addrStr);
            Function func = funcMgr.getFunctionAt(addr);
            if (func == null) func = funcMgr.getFunctionContaining(addr);
            if (func != null) {
                DecompileResults r = decomp.decompileFunction(func, 120, monitor);
                if (r != null && r.decompileCompleted() && r.getDecompiledFunction() != null) {
                    String code = r.getDecompiledFunction().getC();
                    if (code != null) {
                        w("\n--- " + func.getName() + " @ " + func.getEntryPoint() + " ---");
                        w(code.length() > 15000 ? code.substring(0, 15000) + "\n[truncated]" : code);
                    }
                }
            }
        } catch (Exception e) {
            w("[error decompiling " + addrStr + ": " + e.getMessage() + "]");
        }
    }

    private void w(String s) { out.println(s); println(s); }
}

what the binary actually is

it's a stripped Rust ELF (4.13 MB) built from Discord's internal discord_updater/updater_client crate. from the debug paths left in the binary:

/ci/build/discord/discord/discord_updater/updater_client/src/api.rs
/ci/build/discord/discord/discord_updater/updater_client/src/db.rs
/ci/build/discord/discord/discord_updater/updater_client/src/install.rs
/ci/build/discord/discord/discord_updater/updater_client/src/lib.rs
/ci/build/discord/discord/discord_updater/updater_client/src/query.rs
/ci/build/discord/discord/discord_updater/updater_client/src/repair.rs
/ci/build/discord/discord/discord_common/rust/delta_update/src/{lib,verify,apply}.rs
/ci/build/discord/discord/discord_common/rust/endsley_bsdiff/src/lib.rs
/ci/build/discord/discord/discord_common/rust/fs_utils/src/lib.rs

dependencies (from crate paths in the binary): reqwest 0.12.24, hyper 1.8.1, tokio 1.48.0, rusqlite 0.30.0, h2 0.4.12, rustls 0.23.35, serde_json 1.0.145, url 2.5.7, plus brotli decompression and bsdiff/zucchini for delta patching

how it works

the shell wrapper (discord-development) calls it like:

$BOOTSTRAP $CONFIG_HOME/$DIR $DOWNLOAD $CHANNEL $CONFIG_HOME/$DIR
# e.g.: updater_bootstrap ~/.config/discorddevelopment https://updates.discord.com/ development ~/.config/discorddevelopment

there's no argument parsing library (no clap, structopt, getopts), it's just raw positional args

internally it spawns a updater-client-worker tokio thread, opens or creates installer.db with PRAGMA locking_mode = EXCLUSIVE (simple KV store, CREATE TABLE key_values (key, value) with JSON blobs), checks what's currently installed via query_current_version, then constructs the manifest URL as <update_url>/distributions/app/manifests/latest?channel=<channel>&platform=linux&arch=x64 and sends a GET with User-Agent: Discord-Updater/1. after that it parses the manifest, runs query_update_plan, downloads the full.distro (brotli tar) or delta patches (bsdiff/zucchini), installs everything to app-<version>/, and writes state back to sqlite

why pinned_update doesn't help us

I initially got excited when I saw pinned_update in the db state, dug into it pretty thoroughly. it gets serialized alongside current_host, current_modules, running_update, etc as a JSON blob in the key_values sqlite table. looking at the decompilation and the update flow though, it's part of the updater's internal state machine for resuming interrupted installs, like "we were in the middle of installing version X, pick it back up on restart"

the binary also creates the db fresh anyway (SELECT count(*) FROM sqlite_master WHERE type='table' and creates the table if missing) so there's no way to pre-seed it reliably. and even if you could, the manifest fetch still always hits /manifests/latest so pinned_update wouldn't influence what version gets fetched

here is what I tested against the API

# the manifest API only supports "latest"
curl -s -H "User-Agent: Discord-Updater/1" \
  "https://updates.discord.com/distributions/app/manifests/latest?channel=development&platform=linux&arch=x64" \
  | jq '.full.host_version'
# [0, 0, 239]

# replacing "latest" with a version: 404
curl -s -o /dev/null -w "%{http_code}" -H "User-Agent: Discord-Updater/1" \
  "https://updates.discord.com/distributions/app/manifests/0.0.235?channel=development&platform=linux&arch=x64"
# 404

# adding version params: ignored, still returns latest
curl -s -H "User-Agent: Discord-Updater/1" \
  "https://updates.discord.com/distributions/app/manifests/latest?channel=development&platform=linux&arch=x64&host_version=0.0.235" \
  | jq '.full.host_version'
# [0, 0, 239]

# BUT: the CDN URLs are predictable and work for any version! yaaay!!
curl -s -o /dev/null -w "%{http_code}" \
  "https://development.dl2.discordapp.net/distro/app/development/linux/x64/0.0.235/full.distro"
# 200 (166MB)

curl -s -o /dev/null -w "%{http_code}" \
  "https://development.dl2.discordapp.net/distro/app/development/linux/x64/0.0.238/full.distro"
# 200 (166MB)

so the manifest API is "latest only" but the CDN happily serves any version you ask for if you know the URL pattern:

https://<branch>.dl2.discordapp.net/distro/app/<branch>/linux/x64/<version>/full.distro
https://<branch>.dl2.discordapp.net/distro/app/<branch>/linux/x64/<version>/<module>/<mod_ver>/full.distro

only endpoints in the binary

from exhaustive string search, the binary only has two URL path fragments:

distributions/
/manifests/latest

concatenated at runtime as <base_url>/distributions/app/manifests/latest. no alternative endpoints, no /manifests/<version>, nothing sigh

so basically...

the updater_bootstrap is intentionally a "fetch latest, always" tool, discord provides no version pinning mechanism whatsoever

@Scrumplex

Copy link
Copy Markdown
Member

Great work!

In that case our only option is probably FHSenv or (!)an wrapper that has a bunch of libraries in LD_LIBRARY_PATH.

@4evy

4evy commented Apr 13, 2026 •

Copy link
Copy Markdown
Member Author

In that case our only option is probably FHSenv or (!)an wrapper

@Scrumplex What about 0e6d04f ? We can just boostrap ourselves, Discord has only just just moved away what we need to a different end point and added annoying cli in the way that we can entirely bypass, if in the future they improve their CLI to be able to do versioning then we can switch back to it

@winterqt winterqt 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.

Tiny nits that you may or may not care about

@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Apr 17, 2026
@4evy
4evy force-pushed the flameflag/push-lqmwnutukpsn branch from 0e6d04f to d3d5ced Compare April 18, 2026 12:07
@4evy

4evy commented Apr 18, 2026

Copy link
Copy Markdown
Member Author

@winterqt Thanks a lot for the review


Some updates on what has happened since:

Canary moved to the distro layout too, since I opened this PR, canary jumped from 0.0.946 straight to 1.0.927 and is now on the same distro format as development

Added canary to DISTRO_VARIANTS in update.py so both channels go through the same code path, stable and ptb are still on the old plain-tarball layout, untouched

Dropped the hardcoded module list new manifest ships 12 modules on both canary and development (adds discord_cloudsync, discord_dispatch, discord_game_utils, discord_krisp, discord_modules, discord_rpc, discord_zstd), so REQUIRED_MODULES was outdated, update.py just iterates over whatever the manifest advertises now

New runtime deps for canary/dev native modules, the bundled .node files want:

libssl.so.1.1 / libcrypto.so.1.1 -> openssl_1_1
libpulse.so.0 -> libpulseaudio

Added both to buildInputs gated on isDistro so stable/ptb are unaffected

One annoying thing: openssl_1_1 is obv marked as insecure, so canary/dev will need NIXPKGS_ALLOW_INSECURE=1 or add openssl-1.1.1w to permittedInsecurePackages

This is upstream Discord shipping native modules linked against openssl 1.1, not something I can really fix here, open to ideas if anyone has a cleaner approach

@4evy 4evy changed the title discord: handle updater_bootstrap tarball, bump all channels discord: fetch distros at build time Apr 18, 2026
@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Apr 18, 2026
@fxzzi

fxzzi commented Apr 20, 2026

Copy link
Copy Markdown
Member

not sure if related but openasar recently added some stuff relating to 2 options USE_RUST_BSPATCH and USE_NEW_UPDATER, are those helpful in any way? GooseMod/OpenAsar@7809a0d

We already modify discord settings.json by default to block updates. If these are useful we can extend it further to also mess with those.

@4evy

4evy commented Apr 20, 2026

Copy link
Copy Markdown
Member Author

Not really related and out of the scope of this PR imo

@Scrumplex Scrumplex 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.

Excellent work and investigation. I think this is a good way to go for now. Most of my comments are closer to nits than actual issues, but I do think that most of them will make this more maintainable in the future.

@4evy
4evy force-pushed the flameflag/push-lqmwnutukpsn branch 2 times, most recently from 1e2617e to ad39f92 Compare April 20, 2026 17:17
@4evy

4evy commented Apr 20, 2026 •

Copy link
Copy Markdown
Member Author

@Scrumplex Thanks a lot for your kinds words and the review

You can more easily see the diff here: https://github.com/NixOS/nixpkgs/compare/d3d5ced49bf0bbe57aadee2bebb7237ea002e6e5..1e2617e1a9530bfbe29228c4e1c6e1e8cfd8a6af

The only remaining concern is:

One annoying thing: openssl_1_1 is obv marked as insecure, so canary/dev will need NIXPKGS_ALLOW_INSECURE=1 or add openssl-1.1.1w to permittedInsecurePackages

This is upstream Discord shipping native modules linked against openssl 1.1, not something I can really fix here, open to ideas if anyone has a cleaner approach

From: #507728 (comment)

If anyone has any ideas on a better approach please let me know

Other than that, I think everything else is done

@4evy
4evy force-pushed the flameflag/push-lqmwnutukpsn branch from ad39f92 to fa784b1 Compare April 20, 2026 17:27

@Scrumplex Scrumplex 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.

discord-development and discord-canary work fine.

Vencord override also works fine. OpenASAR is broken though. Even with #511424

We might have to meta.broken = isDistro && withOpenASAR;

LGTM overall though

@Infinidoge Infinidoge left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why must Discord be such frustrating software...

Need to bypass the package itself to pin version, need to use OpenSSL, what nonsense will they throw next.

Great work with your analysis and thank you for figuring this out!

Code looks good, packages build (grumble at needing to compile OpenSSL) and run on our machine.

I will relish the day we can leave this Titan-forsaken platform.

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 3+ This PR was reviewed and approved by three or more persons. and removed 12.approvals: 2 This PR was reviewed and approved by two persons. labels Apr 21, 2026
@dtomvan dtomvan mentioned this pull request Apr 22, 2026
3 tasks done
@dtomvan

dtomvan commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

I wonder if SKIP_HOST_UPDATE will keep working after the new updater reforms...

@4evy
4evy force-pushed the flameflag/push-lqmwnutukpsn branch 2 times, most recently from 2ce831f to 2a1c2ef Compare April 23, 2026 19:41
@4evy

4evy commented Apr 23, 2026

Copy link
Copy Markdown
Member Author

It has already trickled down to PTB, so I think we should try to get this PR over the line sooner rather than later

Once this reaches stable, nixpkgs will lag behind Discord’s current Linux packaging format, and that will prob cause breakage for Vencord, Equicord, and other 3rd party mods

I think a reasonable short-term compromise is to let the affected Discord variants (soon stable probably) become "insecure packages", that is technically true now, since the shipped native modules depend on OpenSSL 1.1, and it keeps the warning visible

This would buy us more time to decide whether that is acceptable long-term. My preference is still not to keep it that way forever, even if it is technically accurate


I wonder if SKIP_HOST_UPDATE will keep working after the new updater reforms...

@dtomvan It should still work in the future

resources/app.asar still has:

const SKIP_HOST_UPDATE = 'SKIP_HOST_UPDATE';
skipHostUpdate = settings?.get(SKIP_HOST_UPDATE) || !hostUpdatable;

On the the "distro" variants

`discord-development` linux tarball changed layout in 0.0.235,
`discord-canary` followed in 1.0.927, and `discord-ptb` followed in
1.0.188

Instead of bundling the channel binary directly, these channels now ship
only a small `updater_bootstrap` ELF that downloads the real app into
`$XDG_CONFIG_HOME/<channel>/app-<version>/` on first run

That bootstrap always hits `/manifests/latest` with no way to pin a
version, which would make the build impure and the nix version a lie

Reverse engineering the Rust ELF confirmed there is no CLI flag, env
var, or config to override this

First seen downstream in FlameFlag/nixcord workflow run 24025186671

Fetch the brotli-compressed `.distro` tars directly from the
distributions API at build time instead

`update.py` resolves the latest version via
`updates.discord.com/distributions/app/manifests/latest?channel=<ch>`
and pins the host + all module URLs with SHA256s into `sources.json`

`installPhase` detects the distro layout via `isDistro`, brotli-decodes
the host tar into `$out/opt/<binaryName>`, and extracts each module
under `$out/opt/<binaryName>/modules/<name>/`. `autoPatchelfHook`
handles the binary and native `.node` modules as usual

Discord's JS `moduleUpdater` looks for modules under
`<host_dir>/<version>/modules/<name>/`

A `stageModules` wrapper symlinks them from the nix store on first
launch and pre-writes `installed.json` so the updater treats them as
already installed, otherwise the first launch crashes with `Cannot find
module 'discord_desktop_core'`

The bundled native modules link against openssl 1.1 and libpulseaudio,
added both to `buildInputs` gated on `isDistro` so the legacy stable
package is unaffected
@4evy
4evy force-pushed the flameflag/push-lqmwnutukpsn branch from 2a1c2ef to c153f6b Compare April 23, 2026 19:52
@4evy

4evy commented Apr 23, 2026

Copy link
Copy Markdown
Member Author

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 507728
Commit: c153f6b738fe45d2850db8575c4205537cf4c958 (subsequent changes)
Merge: bb3422222643ee105d2cfbf4da4f32a1538d036e

Logs: https://github.com/FlameFlag/nixpkgs-review-gha/actions/runs/24856231167


x86_64-linux

⏩ 3 packages marked as broken and skipped:
  • discord-canary
  • discord-development
  • discord-ptb
✅ 1 package built:
  • discord

aarch64-linux

✅ No rebuilds


x86_64-darwin (sandbox = relaxed)

✅ 4 packages built:
  • discord
  • discord-canary
  • discord-development
  • discord-ptb

aarch64-darwin (sandbox = relaxed)

✅ 4 packages built:
  • discord
  • discord-canary
  • discord-development
  • discord-ptb

@Scrumplex
Scrumplex added this pull request to the merge queue Apr 24, 2026
Merged via the queue into NixOS:master with commit ce752ee Apr 24, 2026
26 of 29 checks passed
@nixpkgs-ci

nixpkgs-ci Bot commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Backport failed for release-25.11, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin release-25.11
git worktree add -d .worktree/backport-507728-to-release-25.11 origin/release-25.11
cd .worktree/backport-507728-to-release-25.11
git switch --create backport-507728-to-release-25.11
git cherry-pick -x c153f6b738fe45d2850db8575c4205537cf4c958

@4evy
4evy deleted the flameflag/push-lqmwnutukpsn branch April 24, 2026 06:52
krishnans2006 added a commit to krishnans2006/nixos-config that referenced this pull request Apr 28, 2026
The package depends on OpenSSL 1.1 now, which causes issues. See NixOS/nixpkgs#507728 (comment).
@coral-discord

coral-discord commented Apr 30, 2026 •

Copy link
Copy Markdown

Hey everyone, coral from discord here.

Yes, we are moving to a bootstrap updater flow as the #1 feature request we got from users on Linux has been " PLEASE MAKE UPDATING AUTOMATIC ". I realize this breaks some of the NixOS flows but we are going to keep respecting the SKIP_HOST_UPDATE flag after we've deployed the updater.

Our goal is to align with how Steam ships updates, as our JS code often depends on new native code. That didn't use to be a problem as we frankly haven't done much on Linux over the past years but that's changing as we've spent effort on improving the Linux client lately.

You can run the updater_bootstrap with --help btw, it should tell you what it does.

One thing I take away from this thread is that you all want to be able to give updater_bootstrap a pinned version, we'll take this feature request and add to our list.

It's hard for us to keep an eye on all the distros but if you ever find something that seems odd/malicious just email me at [email protected] .

@Infinidoge

Copy link
Copy Markdown
Contributor

Heya coral, thank you for taking that into account and for letting us know! Hopefully the pinned version comes around as that would theoretically make this work well.

For anyone who comes across this PR with regards to the OpenSSL 1.1 issue, coral responded to this in #513122. TLDR, old module unused on Linux that should be removed soon, so we should be able to drop OpenSSL 1.1 when that happens

@nixpkgs-ci

nixpkgs-ci Bot commented May 13, 2026

Copy link
Copy Markdown
Contributor

Backport failed for release-25.11, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin release-25.11
git worktree add -d .worktree/backport-507728-to-release-25.11 origin/release-25.11
cd .worktree/backport-507728-to-release-25.11
git switch --create backport-507728-to-release-25.11
git cherry-pick -x c153f6b738fe45d2850db8575c4205537cf4c958

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

Labels

8.has: failed backport 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approvals: 3+ This PR was reviewed and approved by three or more persons. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants