Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14138

Re: readline-8.0-alpha: Makefile.in: don't forget to create pkgconfigdir

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Eric Blake <eblake@redhat.com>
Newsgroups gnu.bash.bug
Subject Re: readline-8.0-alpha: Makefile.in: don't forget to create pkgconfigdir
Date Thu, 24 May 2018 13:35:18 -0500
Organization Red Hat, Inc.
Lines 36
Approved bug-bash@gnu.org
Message-ID <mailman.411.1527186924.1292.bug-bash@gnu.org> (permalink)
References <16564.1527176471@dschgrazlin2.units.it> <7c5911be-9375-a8ea-7ece-a2886e17e168@case.edu> <c12abdd4-d10c-88dd-e6fe-73cfa943ee07@redhat.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding quoted-printable
X-Trace usenet.stanford.edu 1527186925 1481 208.118.235.17 (24 May 2018 18:35:25 GMT)
X-Complaints-To action@cs.stanford.edu
To chet.ramey@case.edu, gabriele balducci <balducci@dschgrazlin2.units.it>, bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
In-Reply-To <c12abdd4-d10c-88dd-e6fe-73cfa943ee07@redhat.com>
Content-Language en-US
X-Scanned-By MIMEDefang 2.78 on 10.11.54.4
X-Greylist Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Thu, 24 May 2018 18:35:18 +0000 (UTC)
X-Greylist inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Thu, 24 May 2018 18:35:18 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'eblake@redhat.com' RCPT:''
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy]
X-Received-From 66.187.233.73
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.21
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash/>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:14138

Show key headers only | View raw


On 05/24/2018 01:29 PM, Eric Blake wrote:
> On 05/24/2018 01:18 PM, Chet Ramey wrote:
>> On 5/24/18 11:40 AM, gabriele balducci wrote:
>>> hi
>>>
>>> just tried to build/install readline-8.0-alpha and found the following
>>> glitch:
>>
>> Thanks for the report. I think a better fix is to not to attempt to
>> install readline.pc if $(pkgconfigdir) is missing.
> 
> Why not? If you are doing an install into DESTDIR for the purpose of 
> bundling a pre-built binary for a distro, then $(pkgconfigdir) will be 
> missing, because the ONLY things living in DESTDIR are what the package 
> itself installs.  When DESTDIR is empty, you're right that either 
> $(pkgconfigdir) is likely to already exist, or that the user is not 
> using pkg-config; but even that's a risky assumption (when bootstrapping 
> a system, readline might be installed prior to pkg-config, and we 
> shouldn't require the user to run 'make install' a second time just to 
> install the pieces that weren't installed the first time).

Or, if you DO want to make it configurable as to whether to install the 
.pc file, then make it a './configure --enable-pkg-config' or some such 
flag at configure time, so the user can explicitly decide up front (with 
a sane default if they don't mention anything) whether 'make install' 
should attempt to install the .pc file, rather than making a magic 
decision based on whether a $(pkgconfigdir) directory already exists.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: readline-8.0-alpha: Makefile.in: don't forget to create pkgconfigdir Eric Blake <eblake@redhat.com> - 2018-05-24 13:35 -0500

csiph-web