GNU bug report logs - #11465
libtool --mode=install: please add an option to install DSO to /lib and development library to /usr/lib

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: libtool; Severity: wishlist; Reported by: Jonathan Nieder <jrnieder@HIDDEN>; dated Sun, 13 May 2012 22:12:02 UTC; Maintainer for libtool is bug-libtool@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 May 2012 22:11:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 13 18:11:54 2012
Received: from localhost ([127.0.0.1]:51827 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1STh17-0001IS-Ny
	for submit <at> debbugs.gnu.org; Sun, 13 May 2012 18:11:53 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42285)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <jrnieder@HIDDEN>) id 1STh0n-0001Hv-VK
	for submit <at> debbugs.gnu.org; Sun, 13 May 2012 18:11:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jrnieder@HIDDEN>) id 1STh0P-0005zd-23
	for submit <at> debbugs.gnu.org; Sun, 13 May 2012 18:11:10 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:60211)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jrnieder@HIDDEN>) id 1STh0O-0005zX-Sb
	for submit <at> debbugs.gnu.org; Sun, 13 May 2012 18:11:08 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44673)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jrnieder@HIDDEN>) id 1STh0N-0001ds-9I
	for bug-libtool@HIDDEN; Sun, 13 May 2012 18:11:08 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jrnieder@HIDDEN>) id 1STh0L-0005zJ-CS
	for bug-libtool@HIDDEN; Sun, 13 May 2012 18:11:06 -0400
Received: from mail-ob0-f169.google.com ([209.85.214.169]:48704)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jrnieder@HIDDEN>) id 1STh0L-0005zF-1X
	for bug-libtool@HIDDEN; Sun, 13 May 2012 18:11:05 -0400
Received: by obbwd18 with SMTP id wd18so8105234obb.0
	for <bug-libtool@HIDDEN>; Sun, 13 May 2012 15:11:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=date:from:to:subject:message-id:mime-version:content-type
	:content-disposition:user-agent;
	bh=suTepBGLm8n7VZIhOSfTKVn5Ztv5Q+LG3tWod9NQasg=;
	b=H8bgnMPa4Adkl0I+WtxwGWNrRanL/UfQPL896FBPj2nIDAd96bXQfwiG0nNAMnYVnq
	vlLtC7rLl5CFL2dlWe8LY8TNYwLeRR1HAUhlK7rqk3o8vf04rzGq/fkIkizH1LqLsoMo
	BkCRuPzsU+ceiql1iVOcSSiv+WbOfmj1012s3LVgoA13qsF5W9XWOjYaO6dbKr9izLNU
	02zP2YvfiTCjolRs/ilMPkppiQq56tFMVE2Hv5if0+DPiktfwNZ58fU/gQ7PdzkzaI50
	WCKsWAJt7UIYuy1MSmxXvKkXTB88h8JDGwGvyZTnQ0NELDxil2XSwVgVg1tWdxDS8P8D
	reLg==
Received: by 10.50.149.226 with SMTP id ud2mr3358422igb.74.1336947062423;
	Sun, 13 May 2012 15:11:02 -0700 (PDT)
Received: from burratino (c-24-1-56-9.hsd1.il.comcast.net. [24.1.56.9])
	by mx.google.com with ESMTPS id gb4sm8976555igc.1.2012.05.13.15.11.01
	(version=SSLv3 cipher=OTHER); Sun, 13 May 2012 15:11:01 -0700 (PDT)
Date: Sun, 13 May 2012 17:10:45 -0500
From: Jonathan Nieder <jrnieder@HIDDEN>
To: bug-libtool@HIDDEN
Subject: libtool --mode=install: please add an option to install DSO to /lib
	and development library to /usr/lib
Message-ID: <20120513221045.GA32244@burratino>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 208.118.235.17
X-Spam-Score: -6.1 (------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.1 (------)

Severity: wishlist

Hi,

On Linux-based systems sometimes one wants to install basic DSOs that
need to be available before /usr is mounted to /lib.  Static libraries
and the development symlink stay in /usr/lib.  The usual method for
doing so is to stage an install to $(DESTDIR)/usr/lib and then move
selected files up one level:

	install_using_libtool_as_usual
	mv $(DESTDIR)/usr/lib/libfoo.so.* $(DESTDIR)/lib/
	rm $(DESTDIR)/usr/lib/libfoo.so $(DESTDIR)/usr/lib/libfoo.la
	ln -s /lib/libfoo.so.0 $(DESTDIR)/usr/lib/libfoo.so

It would be nicer if this after-the-fact tweaking could be taken
care of automatically.  That is, I am imagining being able to do

	libtool --destdir=$(DESTDIR) --dsodir=/lib \
		--mode=install install libfoo.la $(DESTDIR)/usr/lib

Semantics:

 - static library goes to /usr/lib
 - shared library goes to /lib
 - libtool library goes to /lib, I guess
 - development symlink goes to /usr/lib

Alternatively, the syntax could be

	libtool --destdir=$(DESTDIR) --develdir=/usr/lib \
		--mode=install install libfoo.la $(DESTDIR)/lib

What do you think?  Would this be sensible?

Thanks,
Jonathan




Acknowledgement sent to Jonathan Nieder <jrnieder@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-libtool@HIDDEN. Full text available.
Report forwarded to bug-libtool@HIDDEN:
bug#11465; Package libtool. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.