From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WC4VN+E0z2CVHgAAgWs5BA (envelope-from ) for ; Sun, 20 Jun 2021 14:30:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id WGx8MuE0z2CffwAAbx9fmQ (envelope-from ) for ; Sun, 20 Jun 2021 12:30:25 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 28374D4F0 for ; Sun, 20 Jun 2021 14:30:25 +0200 (CEST) Received: from localhost ([::1]:42192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1luwam-0007H2-39 for larch@yhetil.org; Sun, 20 Jun 2021 08:30:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lulGo-00073H-OF for bug-guix@gnu.org; Sat, 19 Jun 2021 20:25:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49443) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lulGo-0005Km-FT for bug-guix@gnu.org; Sat, 19 Jun 2021 20:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lulGo-0003Cw-B0 for bug-guix@gnu.org; Sat, 19 Jun 2021 20:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#49122: gobject-introspection and not finding cairo Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 20 Jun 2021 00:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49122 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 49122@debbugs.gnu.org X-Debbugs-Original-To: "bug-guix@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.162414866212269 (code B ref -1); Sun, 20 Jun 2021 00:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Jun 2021 00:24:22 +0000 Received: from localhost ([127.0.0.1]:60987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lulG9-0003Bm-6q for submit@debbugs.gnu.org; Sat, 19 Jun 2021 20:24:22 -0400 Received: from lists.gnu.org ([209.51.188.17]:37624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lufj1-0004X1-K4 for submit@debbugs.gnu.org; Sat, 19 Jun 2021 14:29:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37312) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lufj1-00006N-6c for bug-guix@gnu.org; Sat, 19 Jun 2021 14:29:47 -0400 Received: from mail-0201.mail-europe.com ([51.77.79.158]:39813) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lufix-0002Rj-HJ for bug-guix@gnu.org; Sat, 19 Jun 2021 14:29:46 -0400 Date: Sat, 19 Jun 2021 18:29:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1624127347; bh=cn2Wj7TvJeY7r8y0wa11mRtvrTjOGhTGF92uPYZF1oc=; h=Date:To:From:Reply-To:Subject:From; b=emQTpIJWGTKwzyVrTkmyAFj5UWU32AoogWqSC33iNwqcK0krTFXTxf+64qPybFRsr JsKoNXAI1cKfcC5W32jkmP5G3Lp3+QGKY0AsGk22nTNli0JMtwv/QZfivWXan23c3Z /DYFl1Pi9Ju0EiFsMuVxQcXXjKNG3YR8zeZkg9x8= Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=51.77.79.158; envelope-from=john.kehayias@protonmail.com; helo=mail-0201.mail-europe.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 19 Jun 2021 20:24:20 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sun, 20 Jun 2021 08:29:45 -0400 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: John Kehayias X-ACL-Warn: , John Kehayias From: John Kehayias via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624192225; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=cn2Wj7TvJeY7r8y0wa11mRtvrTjOGhTGF92uPYZF1oc=; b=C6nx4yGXQ4uJWPfjEOkBinnjaA+S8bf1IbJv4mvdNcw2lQsx+jzwLwCqSDtFrWJsN45kll bmUm9bnlJgphUUCfZCtYq6ynFliL294zyaqALanP8eSsuixyy2XDe3KLUyAWZPwWs8aERu kHGxrNl4zakD2fwsWpDcDCi1HlfZydFRAGueHcqZBMatRnIAhCgwjB4AINJ4U5Pkegc0Gn CLgEBOtcU6JeOkAVDtq/Hcz4aFYdIbBw6jpRi2FfdQPidW69gbMaWsjtI5CVakdE5Dt4zK yoBgcDOiZL5Nhz73pHOujCU8ckX26S93APN5J8p8bwq0iVKcejZv16FC9QP5qw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624192225; a=rsa-sha256; cv=none; b=FFE3t4gt1U/AtZsxpfiPwn9aaJHLB3kN+j97XwM16fKq2zBKGW5n/ZurcPL6COIyzla2yG sBUcuICyVCsuSHNzIA5GLC+q+z6UVZjX6156pzt/5Ib5UIzyZ0uhOvbiwACUtXD/KO0Gkr 5kane2NL10tYMHnBLa4eEyKi3+OC7VvB2nnFLAyyx/8twp0i7olpM17t4yLnH/NWBZZszR IRvwFWK6v1UvWoFgty5PsRe3YQ4WmlPvsFIirjWpoX7xtO+9DfijY4m5hy5r3RK42/BBlV WP0Q8czpbIQAjOHzqkHx3bYJvznxgGNwz2nBukFJ+OiBLROEUsvRULBwOo3s8g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=emQTpIJW; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.93 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=emQTpIJW; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 28374D4F0 X-Spam-Score: -2.93 X-Migadu-Scanner: scn1.migadu.com X-TUID: jFWeTErliqc/ Hello, I'm trying to build some new packages, one of which is ghc-gi-cairo (from g= hc-haskell-gi: https://github.com/haskell-gi/haskell-gi). These depend on g= object-introspection and finding library information from gir. However, it = appears the typelib for cairo does not include the absolute path for cairo = (though gobject-introspection right now does not depend on cairo, so that m= akes sense?) and the library cannot be found from this info. Perhaps the name exposed in the typelib should be something else? I know th= ere are patches for paths in gobject-introspection, and this issue of libra= ry path from gobject-introspection is not just in guix (e.g. https://github= .com/Cimbali/pympress/issues/58). In building I do see LIBRARY_PATH include= s the correct gobject-introspection (it does find the girepository in confi= gure) and cairo, but as far as I can tell the path to cairo must be found v= ia the typelib when using gobject-introspection? I've tried building gobject-introspection with cairo enabled in meson, whic= h didn't help. I also tried patching the cairo.gir file (as in https://gith= ub.com/Cimbali/pympress/issues/58#issuecomment-503174954), but haven't figu= red out what needs to go in there to make it work. Probably gobject-introsp= ection needs to be build with cairo as an input and correctly get the full = path to the library in generating the typelib? But what goes in the gir/cai= ro-1.0.gir.in file exactly? >From the gobject-introspection package running: strings /gnu/store/irmw6agiw3adqphw8c3m19g31fw1yf34-gobject-introspection-1= .62.0/lib/girepository-1.0/cairo-1.0.typelib | grep lib has output: libcairo-gobject.so.2 xlib End of building ghc-gi-cairo has the following message: starting phase `configure' running "runhaskell Setup.hs" with command "configure" and parameters ("--p= refix=3D/gnu/store/w95yciqs7i7aqm6v7qa6fiy6m6f25czb-ghc-gi-cairo-1.0.25" "-= -libdir=3D/gnu/store/w95yciqs7i7aqm6v7qa6fiy6m6f25czb-ghc-gi-cairo-1.0.25/l= ib" "--docdir=3D/gnu/store/w95yciqs7i7aqm6v7qa6fiy6m6f25czb-ghc-gi-cairo-1.= 0.25/share/doc/ghc-gi-cairo-1.0.25" "--libsubdir=3D$compiler/$pkg-$version"= "--package-db=3D/tmp/guix-build-ghc-gi-cairo-1.0.25.drv-0/package.conf.d" = "--global" "--enable-tests" "--enable-shared" "--enable-executable-dynamic"= "--ghc-option=3D-fPIC" "--ghc-option=3D-optl=3D-Wl,-rpath=3D/gnu/store/w95= yciqs7i7aqm6v7qa6fiy6m6f25czb-ghc-gi-cairo-1.0.25/lib/$compiler/$pkg-$versi= on") ** (process:19): WARNING **: 17:28:36.142: Failed to load shared library 'l= ibcairo-gobject.so.2' referenced by the typelib: libcairo-gobject.so.2: can= not open shared object file: No such file or directory Could not resolve symbol "cairo_gobject_context_get_type" in namespace "cai= ro-1.0" Appreciate any tips, help, or things to try! John