!9IQChSjwSHXPPWTa:lix.systems

Lix

1108 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms296 Servers

Load older messages


SenderMessageTime
13 Oct 2025
@marie:marie.cologneMarie
nix-build --expr 'let pkgs = import ./nixpkgs.nix; in derivation { name = "resolvconf"; builder = pkgs.lib.getExe pkgs.bash; args = [ "-c" "${pkgs.coreutils}/bin/cat /etc/resolv.conf > $out" ]; system = "powerpc-linux"; outputHashAlgo = "sha256"; outputHashMode = "flat"; outputHash = "sha256-699WAnKnc1cZXDnpg0C3fhjIqM4gJe6VDp4MewFGerg="; }'
I think this should be correct?
results in
19:04:23
@marie:marie.cologneMarie
nameserver 127.0.0.53
options edns0 trust-ad
search .
19:04:36
@marie:marie.cologneMarieand the usual resolved comment19:04:49
@aloisw:julia0815.dealoisw
In reply to @raitobezarius:matrix.org
this should be a release blocker because everyone is running into it
Release blocker for what? 2.93.3 already has pasta.
19:07:24
@raitobezarius:matrix.orgraitobezariusfor 2.94.019:07:34
@raitobezarius:matrix.orgraitobezarius2.93.3 doesn't enable pasta outside of unstable, no?19:07:44
@raitobezarius:matrix.orgraitobezarius(ideally, we should fix it for 2.93.4 as well)19:07:51
@aloisw:julia0815.dealoisw
In reply to @raitobezarius:matrix.org
2.93.3 doesn't enable pasta outside of unstable, no?
No, the in-tree packaging always enables pasta on Linux.
19:09:56
@raitobezarius:matrix.orgraitobezariusincluding on 25.05?19:10:07
@raitobezarius:matrix.orgraitobezariusspicy, if so19:10:21
@aloisw:julia0815.dealoiswIt ships its own pasta.19:10:32
@raitobezarius:matrix.orgraitobezariusdoesn't change much to what we should do anyway19:10:32
@raitobezarius:matrix.orgraitobezariusi have it on my list to squash the final usability bugs of pasta19:10:52
@marie:marie.cologneMarieanything else i could show to debug this?19:11:05
@raitobezarius:matrix.orgraitobezariusthe FOD result19:11:28
@raitobezarius:matrix.orgraitobezariusif you can construct it somehow in another way, great19:11:36
@marie:marie.cologneMariei did19:11:41
@raitobezarius:matrix.orgraitobezariusi'm so dumb19:11:47
@raitobezarius:matrix.orgraitobezariusit'swrong19:11:55
@raitobezarius:matrix.orgraitobezariusok cool19:12:02
@raitobezarius:matrix.orgraitobezariusit should be an easy fix19:12:05
@raitobezarius:matrix.orgraitobezariussomething very going is happening with regexes19:12:10
@raitobezarius:matrix.orgraitobezarius
std::string LinuxLocalDerivationGoal::rewriteResolvConf(std::string fromHost)
{
    if (!runPasta) {
        return fromHost;
    }

    static constexpr auto flags = std::regex::ECMAScript | std::regex::multiline;
    static auto lineRegex = regex::parse("^nameserver\\s.*$", flags);
    static auto v4Regex = regex::parse("^nameserver\\s+\\d{1,3}\\.", flags);
    static auto v6Regex = regex::parse("^nameserver.*:", flags);
    std::string nsInSandbox = "\n";
    if (std::regex_search(fromHost, v4Regex)) {
        nsInSandbox += fmt("nameserver %s\n", PASTA_HOST_IPV4);
    }
    if (std::regex_search(fromHost, v6Regex)) {
        nsInSandbox += fmt("nameserver %s\n", PASTA_HOST_IPV6);
    }
    return std::regex_replace(fromHost, lineRegex, "") + nsInSandbox;
}

19:12:22
@raitobezarius:matrix.orgraitobezariusthis is how the rewrites should take place19:12:26
@raitobezarius:matrix.orgraitobezariusif anyfew has some time to stare at this and find the bug, it'd be greatly appreciated19:12:45
@raitobezarius:matrix.orgraitobezarius(as I'm wrangling with profiling stuff rn)19:12:49
@marie:marie.cologneMarieI'll have a look19:15:03
@hexa:lossy.networkhexauhh, I don't know pasta, but how does it map from PASTA_HOST_IPV4 to the host resolver or wherever?19:28:57
@hexa:lossy.networkhexaespecially if the host resolver points to loopback19:29:09
@hexa:lossy.networkhexathis only substitutes nameservers from the host resolv.conf from what I see19:35:43

Show newer messages


Back to Room ListRoom Version: 10