From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by sourceware.org (Postfix) with ESMTPS id EC1FE385842B for ; Sun, 26 Mar 2023 20:00:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EC1FE385842B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-x329.google.com with SMTP id u1so3855317wmn.5 for ; Sun, 26 Mar 2023 13:00:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679860840; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eVKP5Ip4naklry3vuStuqUCXQdBjDo0fELPG3JTTzSg=; b=QDmsuMpOrOpjxobndxBWMF4CMC57rtrGKtt1ZIbMBLZdHEsTyjkx/qzQg45I7Shw6b r3tN0brrMqmTKFikQDiyeRS2GLgqfD75sEO+faapak9LtBxAIlpXR+tfW7MVMGIH1upp uQYp/pOB12cO+nlo9SGKJIu5ibCWOhoWRdbTM6gWhLj2lrTbRewPTIkFz1pNQ+kqdKBY lpIsP0TVrMoZBIJ5yR4qq2ByouiGE2x+EQDSrxx2EBm1VqMwwB0JlZCqXRQm04mmNtxW MkGFdxgSG0eP+NLU+5ka77d63eHPQ2hXuZ30DQvs/tACC1n3VbI8kIQiq048rDKjJOze kXmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679860840; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eVKP5Ip4naklry3vuStuqUCXQdBjDo0fELPG3JTTzSg=; b=MKESngNxlDNCLLKCgF7lU6y/pxrDhcy+zv80t60ixvwTQKzQ8ZoM6RoO4DWszBtZhV ayF85UkC4t7qZ/gHMaLGCjJioM/axZmbJwn0XfYVf7KTfsH37+QPBbuufZsicVylGmAK LEfQAEGN8Rx3Xd8em/2jZVKu3czgd7Yhcioi3/g/N9g6WDQ7wymrcrQavO3yJg/NAE/b x195/WCdPCl5lHuM9UOqZ9+28GZvD7glvvLNsxh57+jkJu071AxgjRiULEzMlG0bx91X 8WCSQum5uwL733YAXfI+hnXnqurRMQTbKTlJ9W2p7v6GjtXVsqJp1NZlwf8jFGfgekHu UcmQ== X-Gm-Message-State: AO0yUKVXfc52rW3FjJyl5SkjN78+OZsDd3aopuLB6Dqqi8CgZz8t8++j ZA6MmQRWsx6PCchhjtHf3ZCXZBNoNVjw1A== X-Google-Smtp-Source: AK7set9XK/B3Qmw3cegfq3nm9yaexSSWMdhUdPe2RN+VLDdtoyUR98mrLCwxOKEcsVuSI3vU9PzSKQ== X-Received: by 2002:a05:600c:1e86:b0:3ed:ebcb:e2c6 with SMTP id be6-20020a05600c1e8600b003edebcbe2c6mr7838753wmb.3.1679860840544; Sun, 26 Mar 2023 13:00:40 -0700 (PDT) Received: from localhost ([82.66.26.140]) by smtp.gmail.com with ESMTPSA id l1-20020a1c7901000000b003eae73f0fc1sm11352133wme.18.2023.03.26.13.00.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Mar 2023 13:00:40 -0700 (PDT) From: Romain Geissler X-Google-Original-From: Romain Geissler To: libc-alpha@sourceware.org Cc: romain.geissler@amadeus.com Subject: [PATCH 1/3] support: introduce support_sysconfdir_prefix Date: Sun, 26 Mar 2023 20:00:14 +0000 Message-Id: <20230326200016.219-2-romain.geissler@amadeus.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230326200016.219-1-romain.geissler@amadeus.com> References: <20230326200016.219-1-romain.geissler@amadeus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --- support/Makefile | 3 ++- support/support.h | 2 ++ support/support_paths.c | 7 +++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/support/Makefile b/support/Makefile index 05b31159ea5..71d51485132 100644 --- a/support/Makefile +++ b/support/Makefile @@ -231,7 +231,8 @@ CFLAGS-support_paths.c = \ -DSBINDIR_PATH=\"$(sbindir)\" \ -DSLIBDIR_PATH=\"$(slibdir)\" \ -DROOTSBINDIR_PATH=\"$(rootsbindir)\" \ - -DCOMPLOCALEDIR_PATH=\"$(complocaledir)\" + -DCOMPLOCALEDIR_PATH=\"$(complocaledir)\" \ + -DSYSCONFDIR_PATH=\"$(sysconfdir)\" # In support_timespec_check_in_range we may be passed a very tight # range for which we should produce a correct result for expected diff --git a/support/support.h b/support/support.h index 525ff1ebcec..b7f76bf0809 100644 --- a/support/support.h +++ b/support/support.h @@ -144,6 +144,8 @@ extern const char support_slibdir_prefix[]; extern const char support_install_rootsbindir[]; /* Corresponds to the install's compiled locale directory. */ extern const char support_complocaledir_prefix[]; +/* Corresponds to the install's etc/ directory. */ +extern const char support_sysconfdir_prefix[]; /* Copies the file at the path FROM to TO. If TO does not exist, it is created. If TO is a regular file, it is truncated before diff --git a/support/support_paths.c b/support/support_paths.c index f9d75998cf2..0710bcd4122 100644 --- a/support/support_paths.c +++ b/support/support_paths.c @@ -92,3 +92,10 @@ const char support_complocaledir_prefix[] = COMPLOCALEDIR_PATH; #else # error please -DCOMPLOCALEDIR_PATH=something in the Makefile #endif + +#ifdef SYSCONFDIR_PATH +/* Corresponds to the install's etc/ directory. */ +const char support_sysconfdir_prefix[] = SYSCONFDIR_PATH; +#else +# error please -DSYSCONFDIR_PATH=something in the Makefile +#endif -- 2.31.1