From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by sourceware.org (Postfix) with ESMTPS id 4856E3861C6A for ; Wed, 30 Jun 2021 17:49:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4856E3861C6A Received: by mail-wm1-x32d.google.com with SMTP id g8-20020a1c9d080000b02901f13dd1672aso2934368wme.0 for ; Wed, 30 Jun 2021 10:49:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=FfT3BnQxuXQp6q/fm2HY5E/gsm4Qb1zKWCGM1F71rOc=; b=XGThTKANEAVuBKIWsOamY9Ks4GcUNqiGpvgvcCcpW9RSOmb6/+y3L1rJISTC5gvKUn KSjYb0pB2drlwbU4mrtt2uaxgjBHofJeJ4IaotjVjyDj9c+JSGMI2cmkCq39HtW3slys X1o3fYrXs8Ua9xcaqwyWhwttqySu9Iw/yv2rtri4QH0AN000rSGPOgdEu5g7YSwSdTlo rc2znzL0AVHx5XjneTJcPfD6y1jjehYV5nnBwUTlTBEgbdj0uR68EiV0RSvj3LAheUqf DqgAfip594GV7Q3jv27mK7wkJZqX8KVWjNnnu3ouKIqI53n+HBWn0U81fIQn+WWBP8qa eH9A== X-Gm-Message-State: AOAM5311N7mU6dTH4ChDeUKe4bJuYwgieDe8TbgCkCgObQbzmm6nC7QI ukxHOxao2i0e6vQDLV/Fxv0D/1XNuq0nPybCxfYZlCMlUdbnqw== X-Google-Smtp-Source: ABdhPJz0oewMWmbQljfI2DTlATnXtrz+/87Tkjkt4i/TbwEy7SaRM2V2BIzTcXajLHCcnepyDT2wslT7kw6BcJ+CofY= X-Received: by 2002:a05:600c:35c1:: with SMTP id r1mr5928655wmq.181.1625075353944; Wed, 30 Jun 2021 10:49:13 -0700 (PDT) MIME-Version: 1.0 From: Farid Zakaria Date: Wed, 30 Jun 2021 10:49:01 -0700 Message-ID: Subject: assistance patching glibc for getprotobyname To: libc-help@sourceware.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2021 17:49:16 -0000 Hello, I'm trying to investigate a patch to glibc for the purpose of http://nixos.org/ similar to what they have already accomplished for the locales [1] The goal is to patch glibc for _getprotobyname_ so that if an environment variable is set, it will treat the environment variable path as the database file. The goal here for nixpkgs, is to have packages which are hermetic and sealed -- depend on no external dependency. The issue at the moment is that /etc/protocols must exist on the system which breaks the closure. I've been trying to dig into the nss/ folder & codebase, but it's heavy use of macros makes it difficult for me to determine some of the scalpel cuts I need to perform. I was hoping someone could point me at some breadcrumbs to start my edits. [1] https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/glibc/nix-locale-archive.patch Thank you. Farid Zakaria