From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 4460A1F44D for ; Tue, 23 Apr 2024 19:59:01 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=sc3d.org header.i=@sc3d.org header.a=rsa-sha256 header.s=google header.b=bXNuxOlP; dkim-atps=neutral Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rzMI2-0000gw-7U; Tue, 23 Apr 2024 15:58:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rzMI0-0000gl-Ij for bug-gnulib@gnu.org; Tue, 23 Apr 2024 15:58:52 -0400 Received: from mail-yb1-xb31.google.com ([2607:f8b0:4864:20::b31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rzMHy-00039o-Pf for bug-gnulib@gnu.org; Tue, 23 Apr 2024 15:58:52 -0400 Received: by mail-yb1-xb31.google.com with SMTP id 3f1490d57ef6-de47485532cso5979194276.3 for ; Tue, 23 Apr 2024 12:58:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; t=1713902329; x=1714507129; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=kibMoct3jb6SLv6rI2Zm1hDKoE3SzvBowu1AINXYb/M=; b=bXNuxOlPZS7tYg5WyYm8oK/ROuwVgXSsSdIIFW5y45R19OKh/fDpGd9j7GarCUe1JY BfOWTvFeHMwa53pCPHj3ZI5qpRjvKNGSNxODal1RSeWvaO67YhURvsnSjt4ujmZI20GH IL/BOsMKIf854/kHl/av55cGtShMla3rsS98I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713902329; x=1714507129; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kibMoct3jb6SLv6rI2Zm1hDKoE3SzvBowu1AINXYb/M=; b=wMZC8E6Wa2ZEasJPf3gQANL2vnBDw4kowlxWVy2Ixgwe+qOlMP/URb2zsWv8IvqtDO MhnITyiblW9pnMNDnfNRFC7D9AYWTUXO3e0Ne79eAqmfDqlLdxwi+7X21qE813FGsrqu GeVpvSBKbVd/HUxFXZV/Z3QDohBmWA5p9uklVi/eE+GO4FBhzppICdQQMnB+Nv7mEWth LCsQjer2RwmBFV7tQofOP+nScW7vZpK6YSDptf6D+Xm9hb/JpRQ5VVZKjvrcZP0fWIs8 6CuvyRCxfj0B+gAQSJbSv0IrH1BO0tU8X3t1I3lAKXGphohdauBXx2a6skZtAkwtyRGx st/g== X-Gm-Message-State: AOJu0YxBBzpqNaLMTUoqvFbtiiEf8ZWhodZfW11wOJ6SX9yo2k8jN237 Haez4brydtE5SFSmQQFB3J69/hmiHH3gBL/Oq6pd/wE/QY01XdRaUDYOr5FUuqfF2HoN7RKKm3m aB/L2U43DRAfdWrz75hQwMPPCOftu/shxYv9XG62IlwN1A8k5AWznxQ== X-Google-Smtp-Source: AGHT+IHTlpeqYlLHoxD406dkMdOfROOtrNVd5+c/RmjAnzTa8jXX+5y4oUwDxRUAEF2h1noeZJc1yUJVKTfVAbCQx20= X-Received: by 2002:a05:6902:524:b0:de5:5d4b:1632 with SMTP id y4-20020a056902052400b00de55d4b1632mr635913ybs.60.1713902328970; Tue, 23 Apr 2024 12:58:48 -0700 (PDT) MIME-Version: 1.0 References: <346536552.tGq8MHzOUc@nimes> In-Reply-To: <346536552.tGq8MHzOUc@nimes> From: Reuben Thomas Date: Tue, 23 Apr 2024 21:58:37 +0200 Message-ID: Subject: Re: 'relocatable' project built without --enable-relocatable To: Bruno Haible Cc: bug-gnulib Content-Type: multipart/alternative; boundary="0000000000007f9e8e0616c8fb93" Received-SPF: pass client-ip=2607:f8b0:4864:20::b31; envelope-from=rrt@sc3d.org; helo=mail-yb1-xb31.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org --0000000000007f9e8e0616c8fb93 Content-Type: text/plain; charset="UTF-8" On Tue, 23 Apr 2024 at 21:46, Bruno Haible wrote: > How does or would the code you are talking about look like, with #ifs? > And would it be code for a library, or for a program? > For a library. For example, from the libpaper commit referenced below, using #ifdefs: /* Set the prefix directory for relocation. */ void papersetprefixdir(const char *new_prefix) { #ifdef ENABLE_RELOCATABLE set_relocation_prefix (INSTALLPREFIX, new_prefix); #else (void)new_prefix; #endif } I'm asking because no package I know of is using set_relocation_prefix > explicitly [1] I've been using it in Enchant since 2017[1] and in libpaper since 2021[2] [1] https://github.com/AbiWord/enchant/commit/a8e771a (this is definitely in Debian by now) [2] https://github.com/rrthomas/libpaper/commit/13bb68b87fdc0b20e08adf58146576fd120d3f3b (not yet in Debian, sadly, as they don't like me "vendoring gnulib", as FTP Master calls it, or "using gnulib as other packages like Enchant do, and as designed", as I call it). -- https://rrt.sc3d.org --0000000000007f9e8e0616c8fb93 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, 23 Apr 2024 at 21:46, Bruno Haible <bruno@clisp.org> wrote:
How does or would the code you are talking abo= ut look like, with #ifs?
And would it be code for a library, or for a program?
=
For a library. For example, from the libp= aper commit referenced below, using #ifdefs:

/* Set the prefix directory for relocation. */
vo= id papersetprefixdir(const char *new_prefix)
{
#ifdef ENABLE_RELOCATA= BLE
=C2=A0 =C2=A0 set_relocation_prefix (INSTALLPREFIX, new_prefix);
= #else
=C2=A0 =C2=A0 (void)new_prefix;
#endif
}

=
I'm asking because no package I know of is using set_relocation_prefix<= br> explicitly [1]
I've been using it in Enchant since 2017[1] and in libpaper since 2021= [2]


(this is definitely in Debian by now)


(not yet in Debian, sadly, as they d= on't like me "vendoring gnulib", as FTP Master calls it, or &= quot;using gnulib as other packages like Enchant do, and as designed",= as I call it).

--
=
--0000000000007f9e8e0616c8fb93--