From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: libgit2, libgit2-glib: pkg-config file: dependencies on other libraries: how to represent them in Guix? Date: Sat, 18 Jun 2016 11:10:37 +0200 Message-ID: <20160618111037.2ae345d0@scratchpost.org> References: <20160617195657.38541268@scratchpost.org> <8760t77xbs.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bECHB-0001bv-T4 for guix-devel@gnu.org; Sat, 18 Jun 2016 05:10:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bECH5-0001mn-No for guix-devel@gnu.org; Sat, 18 Jun 2016 05:10:48 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:55710) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bECH5-0001mP-GM for guix-devel@gnu.org; Sat, 18 Jun 2016 05:10:43 -0400 In-Reply-To: <8760t77xbs.fsf@elephly.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ricardo Wurmus Cc: guix-devel@gnu.org On Sat, 18 Jun 2016 09:47:19 +0200 Ricardo Wurmus wrote: > This depends on the pkg-config file that the library installs. If this > file contains a section that lists other libraries as private, then > propagation is probably the correct approach. See Name: libgit2 Description: The git library, take 2 Version: @LIBGIT2_VERSION_STRING@ Libs: -L"${libdir}" -lgit2 Libs.private: @LIBGIT2_PC_LIBS@ Requires.private: @LIBGIT2_PC_REQUIRES@ Cflags: -I${includedir} And in the CMakeLists.txt : IF (CMAKE_SYSTEM_NAME MATCHES "FreeBSD") LIST(APPEND LIBGIT2_PC_LIBS "-lssl") ELSE() SET(LIBGIT2_PC_REQUIRES "${LIBGIT2_PC_REQUIRES} openssl") ENDIF () So I take it that it should have been a propagated-input in libgit2 itself already, right?