Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2225596/?format=api
{ "id": 2225596, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2225596/?format=api", "web_url": "http://patchwork.ozlabs.org/project/glibc/patch/20260421090020.59726-3-l.stelmach@samsung.com/", "project": { "id": 41, "url": "http://patchwork.ozlabs.org/api/1.1/projects/41/?format=api", "name": "GNU C Library", "link_name": "glibc", "list_id": "libc-alpha.sourceware.org", "list_email": "libc-alpha@sourceware.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20260421090020.59726-3-l.stelmach@samsung.com>", "date": "2026-04-21T09:00:19", "name": "[RFC,2/3] ldconfig: Add an option to ignore standard path during ld.so.cache generation", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "71bf1d8fd8e9c458382417a05109e855dcf408e2", "submitter": { "id": 65337, "url": "http://patchwork.ozlabs.org/api/1.1/people/65337/?format=api", "name": "Łukasz Stelmach", "email": "l.stelmach@samsung.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/glibc/patch/20260421090020.59726-3-l.stelmach@samsung.com/mbox/", "series": [ { "id": 500763, "url": "http://patchwork.ozlabs.org/api/1.1/series/500763/?format=api", "web_url": "http://patchwork.ozlabs.org/project/glibc/list/?series=500763", "date": "2026-04-21T09:00:19", "name": "Use multiple ld.so caches to separate execution environments", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/500763/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2225596/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2225596/checks/", "tags": {}, "headers": { "Return-Path": "<libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "libc-alpha@sourceware.org" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "libc-alpha@sourceware.org" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=samsung.com header.i=@samsung.com header.a=rsa-sha256\n header.s=mail20170921 header.b=MU4Hx2ro;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org;\n receiver=patchwork.ozlabs.org)", "sourceware.org;\n\tdkim=pass (1024-bit key,\n unprotected) header.d=samsung.com header.i=@samsung.com header.a=rsa-sha256\n header.s=mail20170921 header.b=MU4Hx2ro", "sourceware.org;\n dmarc=pass (p=none dis=none) header.from=samsung.com", "sourceware.org; spf=pass smtp.mailfrom=samsung.com", "server2.sourceware.org;\n arc=none smtp.remote-ip=210.118.77.12" ], "Received": [ "from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g0GYJ1Fyzz1yGt\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 21 Apr 2026 19:01:07 +1000 (AEST)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id D0A814B9DB54\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 21 Apr 2026 09:01:05 +0000 (GMT)", "from mailout2.w1.samsung.com (mailout2.w1.samsung.com\n [210.118.77.12])\n by sourceware.org (Postfix) with ESMTPS id 0ACD04BA23D9\n for <libc-alpha@sourceware.org>; Tue, 21 Apr 2026 09:00:43 +0000 (GMT)", "from eucas1p2.samsung.com (unknown [182.198.249.207])\n by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id\n 20260421090042euoutp028c9a457d354dbe90cdaa00ae126b97b7~oU6nzjpt63042630426euoutp02c\n for <libc-alpha@sourceware.org>; Tue, 21 Apr 2026 09:00:42 +0000 (GMT)", "from eusmtip2.samsung.com (unknown [203.254.199.222]) by\n eucas1p1.samsung.com (KnoxPortal) with ESMTPA id\n 20260421090041eucas1p165ef40e3d03f80d2efbf10bbb05b1a9c~oU6nRVcmj2862128621eucas1p1h;\n Tue, 21 Apr 2026 09:00:41 +0000 (GMT)", "from localhost (unknown [106.120.51.111]) by eusmtip2.samsung.com\n (KnoxPortal) with ESMTPA id\n 20260421090041eusmtip258d76c5b3d8a984c8500f37db59ec25d~oU6nM95Cb1714417144eusmtip2h;\n Tue, 21 Apr 2026 09:00:41 +0000 (GMT)" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org D0A814B9DB54", "OpenDKIM Filter v2.11.0 sourceware.org 0ACD04BA23D9", "OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com\n 20260421090042euoutp028c9a457d354dbe90cdaa00ae126b97b7~oU6nzjpt63042630426euoutp02c" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 0ACD04BA23D9", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 0ACD04BA23D9", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776762044; cv=none;\n b=W2BTWgI4fM1djajkfkjGZe6ftFTsSvRnCIWkslq+gwDnPxDiMcZCXeNbO/AwtJtXI0YYZXMQIzZyMjxhlLWVGfdGB8v95Q5OLHxZAgZviRgF9QH1h3OnD/Uepc51T4QJf7/PTrQwkca+2sadgKAZYsuv4z66TYUJEWALEIPadyY=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776762044; c=relaxed/simple;\n bh=xze3e2azsX4DT3BkaaRB3CQlefwiCpHuyFsl8vvGwTM=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=aQfpgLdCmh4CxnbWsNhHuJBfQLL3bpwQXu+yudaMSzCHloZyPEIhdfJ+PsRIEFAQzc4EkjI7WcCnC54kJyDcgvE8D7ihqcBwH3BTMTzpwKsDdw9Ib4IdI3nMVZeEOoT7TDE5MpgfjPdCtOiPw+YvMJASGMF7DvsMHPq5CbwHFXM=", "ARC-Authentication-Results": "i=1; server2.sourceware.org", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com;\n s=mail20170921; t=1776762042;\n bh=B3pSE+wanztl7pgR6fdYwaWUYKSMDZTGKX+W4yQWMUQ=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=MU4Hx2rof9pYNtXWpS7jRAeYxTdKpA25P/todNyqFz1S+DWZY0udroioGvuBgjGI1\n gu07ADc4fC70w3eUjcCBG2NUMlsHi2Pq9F5Pmz3VBDzNhKr0vjbxftTlouzawoqiQW\n phhFdIrY9JFtgyEZvHhmZ+7zuUFTrEFxKfO80lbo=", "From": "=?utf-8?q?=C5=81ukasz_Stelmach?= <l.stelmach@samsung.com>", "To": "libc-alpha@sourceware.org", "Cc": "j.kryszyn@samsung.com, m.szyprowski@samsung.com, k.lewandowsk@samsung.com,\n cw00.choi@samsung.com, dongkyun.s@samsung.com, sungguk.na@samsung.com,\n Mateusz Moscicki <m.moscicki2@samsung.com>,\n =?utf-8?q?=C5=81ukasz_Stelmach?= <l.stelmach@samsung.com>", "Subject": "[RFC 2/3] ldconfig: Add an option to ignore standard path during\n ld.so.cache generation", "Date": "Tue, 21 Apr 2026 11:00:19 +0200", "Message-ID": "<20260421090020.59726-3-l.stelmach@samsung.com>", "X-Mailer": "git-send-email 2.47.3", "In-Reply-To": "<20260421090020.59726-1-l.stelmach@samsung.com>", "MIME-Version": "1.0", "Organization": "Samsung R&D Institute Poland", "Content-Transfer-Encoding": "8bit", "X-CMS-MailID": "20260421090041eucas1p165ef40e3d03f80d2efbf10bbb05b1a9c", "X-Msg-Generator": "CA", "Content-Type": "text/plain; charset=\"utf-8\"", "X-RootMTR": "20260421090041eucas1p165ef40e3d03f80d2efbf10bbb05b1a9c", "X-EPHeader": "CA", "X-CMS-RootMailID": "20260421090041eucas1p165ef40e3d03f80d2efbf10bbb05b1a9c", "References": "<20260421090020.59726-1-l.stelmach@samsung.com>\n <CGME20260421090041eucas1p165ef40e3d03f80d2efbf10bbb05b1a9c@eucas1p1.samsung.com>", "X-BeenThere": "libc-alpha@sourceware.org", "X-Mailman-Version": "2.1.30", "Precedence": "list", "List-Id": "Libc-alpha mailing list <libc-alpha.sourceware.org>", "List-Unsubscribe": "<https://sourceware.org/mailman/options/libc-alpha>,\n <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe>", "List-Archive": "<https://sourceware.org/pipermail/libc-alpha/>", "List-Post": "<mailto:libc-alpha@sourceware.org>", "List-Help": "<mailto:libc-alpha-request@sourceware.org?subject=help>", "List-Subscribe": "<https://sourceware.org/mailman/listinfo/libc-alpha>,\n <mailto:libc-alpha-request@sourceware.org?subject=subscribe>", "Errors-To": "libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org" }, "content": "From: Mateusz Moscicki <m.moscicki2@samsung.com>\n\nAdd -I/--ignore-standard-dirs option to ignore standard library paths.\n\nWith this change, it is possible to generate an ld.so.cache file that\ncontains only libraries from the directories included in the specified\nconfig, without adding libraries from standard paths such as /lib,\n/usr/lib, etc.\n\nUsage:\n\n cat <<EOF > ldconf.txt\n /opt/lib\n /opt/lib-special\n EOF\n\n ldconfig -C ld.so.cache.custom -f ldconf.txt -I\n\nSigned-off-by: Mateusz Mościcki <m.moscicki2@samsung.com>\nSigned-off-by: Łukasz Stelmach <l.stelmach@samsung.com>\n---\n elf/ldconfig.c | 21 ++++++++++++++++++++-\n 1 file changed, 20 insertions(+), 1 deletion(-)", "diff": "diff --git a/elf/ldconfig.c b/elf/ldconfig.c\nindex 0f3ef707dd..2ca763313a 100644\n--- a/elf/ldconfig.c\n+++ b/elf/ldconfig.c\n@@ -111,6 +111,11 @@ static char *cache_file;\n /* Configuration file. */\n static const char *config_file;\n \n+#ifdef DLCONF\n+/* Don't add the standard system paths */\n+static int opt_ignore_standard;\n+#endif /* DLCONF */\n+\n /* Name and version of program. */\n static void print_version (FILE *stream, struct argp_state *state);\n void (*argp_program_version_hook) (FILE *, struct argp_state *)\n@@ -133,6 +138,9 @@ static const struct argp_option options[] =\n { NULL, 'l', NULL, 0, N_(\"Manually link individual libraries.\"), 0},\n { \"format\", 'c', N_(\"FORMAT\"), 0, N_(\"Format to use: new (default), old, or compat\"), 0},\n { \"ignore-aux-cache\", 'i', NULL, 0, N_(\"Ignore auxiliary cache file\"), 0},\n+#ifdef DLCONF\n+ { \"ignore-standard-dirs\", 'I', NULL, 0, N_(\"Ignore standard directories\"), 0},\n+#endif /* DLCONF */\n { NULL, 0, NULL, 0, NULL, 0 }\n };\n \n@@ -198,6 +206,11 @@ parse_opt (int key, char *arg, struct argp_state *state)\n else if (strcmp (arg, \"new\") == 0)\n \topt_format = opt_format_new;\n break;\n+#ifdef DLCONF\n+ case 'I':\n+ opt_ignore_standard = 1;\n+ break;\n+#endif /* DLCONF */\n default:\n return ARGP_ERR_UNKNOWN;\n }\n@@ -1287,11 +1300,17 @@ main (int argc, char **argv)\n if (!opt_only_cline)\n {\n parse_conf (config_file, true);\n-\n+#ifdef DLCONF\n+ if (!opt_ignore_standard)\n+ {\n+#endif /* DLCONF */\n /* Always add the standard search paths. */\n add_system_dir (SLIBDIR);\n if (strcmp (SLIBDIR, LIBDIR))\n \tadd_system_dir (LIBDIR);\n+#ifdef DLCONF\n+ }\n+#endif /* DLCONF */\n }\n \n const char *aux_cache_file = _PATH_LDCONFIG_AUX_CACHE;\n", "prefixes": [ "RFC", "2/3" ] }