!9IQChSjwSHXPPWTa:lix.systems

Lix

1105 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-rooms295 Servers

Load older messages


SenderMessageTime
13 Oct 2025
@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
@hexa:lossy.networkhexaso as long as it maps the PASTA_HOSTA_IPXX addresses it should be fine?19:36:04
@raitobezarius:matrix.orgraitobezariuspasta connects things together19:37:04
@kfears:matrix.orgKFears (burnt out)Same thought... Resolution should be independent from connectivity19:37:05
@raitobezarius:matrix.orgraitobezariusso the PASTA_HOST_IPV4 is exactly 127.0.0.1 in the other world19:37:12

Show newer messages


Back to Room ListRoom Version: 10