From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by sourceware.org (Postfix) with ESMTPS id 91215385AE5A for ; Thu, 9 Jun 2022 05:52:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 91215385AE5A Received: by mail-il1-x130.google.com with SMTP id f12so18115166ilj.1 for ; Wed, 08 Jun 2022 22:52:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=Qf0eFMO1zCZjlmtk5+8v/sSqqIYaa+KIbK5JQ3tkvws=; b=mroK5BeF1buV25COM3O13s083v9mKgvQRNDm8yT8y2XMJ/jo0ml1jisA4FamWFHi8u sY+2WmJ7KHUj5BbHUlz58c659i1yZGFRHKGDHa4Uvng2G8evaEKRTGG7Or7Pj+jSX3yD UYyjMSc8fYNOKfJcLOYHH3s88MKuhXfOKUj5642OwJ0d1OWFQvge3jMPg9U/bErAmW5F 8v5ZbMR0QYkdSK51ciEjVwZqWkcC9V9pDtV0XYcMiDVzMqBgQTPQESQRQjXTNuqs7rCe cZVQrZySk+keUVgeIFyMuhVWi8jUU9hdrfdcUGsAcPLaWaZcXHMpK1s64g3q/DWdWsMC nu3A== X-Gm-Message-State: AOAM530ktuoc53/TlsadvF7NJaxpaYeFPDTBh4PKz61pu8aTtWdr9rRJ Ht1/JuT9maogCoI9zrESxZL76FoZbcZ+aw== X-Google-Smtp-Source: ABdhPJzS0j09dR8nSvi2WO/oJ3L9kyDzsKclnwonIA3ROiBVXP9GzicJg94+2w1GM0rhSb6tDjUoOQ== X-Received: by 2002:a92:d10c:0:b0:2d1:73fa:9619 with SMTP id a12-20020a92d10c000000b002d173fa9619mr20782338ilb.266.1654753944464; Wed, 08 Jun 2022 22:52:24 -0700 (PDT) Received: from ?IPV6:2600:1700:57f0:ca20:763a:c795:fcf6:91ea? ([2600:1700:57f0:ca20:763a:c795:fcf6:91ea]) by smtp.gmail.com with ESMTPSA id o15-20020a92dacf000000b002d101029626sm9836512ilq.62.2022.06.08.22.52.23 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Jun 2022 22:52:23 -0700 (PDT) Message-ID: <8e1407b5-481c-1e43-a073-c9a1d55aaf5d@gmail.com> Date: Thu, 9 Jun 2022 01:52:21 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH bzip2 6/6] install a pkg-config file with instructions for linking to libbz2 Content-Language: en-US-large To: bzip2-devel@sourceware.org References: <165475384722.17277.18269615533597437835-5@git.sr.ht> From: Eli Schwartz X-Clacks-Overhead: GNU Terry Pratchett In-Reply-To: <165475384722.17277.18269615533597437835-5@git.sr.ht> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, KAM_NUMSUBJECT, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: bzip2-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bzip2-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2022 05:52:27 -0000 On 6/3/22 1:09 AM, ~eschwartz wrote: > From: Eli Schwartz > > A pkg-config file is necessary in order to robustly communicate across > build systems that bz2 is installed, *where* it is installed, and the > correct CFLAGS / LDFLAGS to use in order to compile and link against it. Some distros already provide one of these, so it's currently a bit inconsistent how to look for the library. As a result, there is software in the wild that probes for the library name, and fails if the library is installed to a custom prefix, and other software that checks for pkg-config, and fails on distros that don't provide their own bzip2.pc In general it's good to have. And particularly, it makes it much easier to detect bzip2 as "a dependency" instead of "manual linker flags" from the Meson build system, which can then toggle between multiple "dependency" providers via e.g. https://mesonbuild.com/Wrap-dependency-system-manual.html#provide-section -- Eli Schwartz