Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fEJA2-0000e9-Lx for pgsql-hackers@arkaria.postgresql.org; Thu, 03 May 2018 18:40:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fEJA0-00013w-TC for pgsql-hackers@arkaria.postgresql.org; Thu, 03 May 2018 18:40:56 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fEJA0-00013h-Hr; Thu, 03 May 2018 18:40:56 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fEJ9x-0000tq-Cv; Thu, 03 May 2018 18:40:55 +0000 Received: from msg.df7cb.de (unknown [IPv6:2a02:908:147b:4ae0:76e5:bff:fef3:7e00]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 40cP9F6jmvz3F4q; Thu, 3 May 2018 20:40:49 +0200 (CEST) Date: Thu, 3 May 2018 20:40:49 +0200 From: Christoph Berg To: PostgreSQL Hackers Cc: PostgreSQL in Debian Subject: Moving libpg{common,port,feutils}.a to pkglibdir? Message-ID: <20180503184049.GA1408@msg.df7cb.de> Mail-Followup-To: Christoph Berg , PostgreSQL Hackers , PostgreSQL in Debian MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.2 (2017-12-15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Debian's PostgreSQL packages allow installation of several server versions in parallel, but only one libpq and libpq-dev package is provided, i.e. libpq is always from the latest stable branch. There are separate postgresql-server-dev-NN packages for the version-specific header files. So far, postgresql-server-dev-NN does not contain any libraries. In the context of Michael Banck's pg_checksums program [*], we ran into the problem that libpqport.a is not compatible across server versions. Currently it is installed into LIBDIR (= /usr/lib/). It would need to be in PKGLIBDIR (= /usr/lib/postgresql/NN/lib) to allow co-installation of several versions. (This is actually the first time we try to package client programs that are server-version-dependant; pg-filedump works on all server versions no matter what version it is linked against.) I'm contemplating moving these static libs to PKGLIBDIR. Or should libfeutils.a better stay in LIBDIR, with only one version? Maybe they should be moved in "stock" PostgreSQL as well? Christoph [*] I haven't checked, but this likely applies to Michael Paquier's version of it as well