From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8BedLWgYVmFhJAEAgWs5BA (envelope-from ) for ; Thu, 30 Sep 2021 22:04:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id KAdcKWgYVmH8FwAA1q6Kng (envelope-from ) for ; Thu, 30 Sep 2021 20:04:56 +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 86837342A1 for ; Thu, 30 Sep 2021 22:04:56 +0200 (CEST) Received: from localhost ([::1]:38044 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mW2IZ-0006Bt-9N for larch@yhetil.org; Thu, 30 Sep 2021 16:04:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVzJq-00060f-Vm for guix-patches@gnu.org; Thu, 30 Sep 2021 12:54:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42306) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVzJq-00047Q-Nv for guix-patches@gnu.org; Thu, 30 Sep 2021 12:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mVzJq-0008Fs-Lz for guix-patches@gnu.org; Thu, 30 Sep 2021 12:54:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50476] [PATCH v2 03/10] gnu: guile-dbi: Search for dbd libraries using native-search-paths. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 30 Sep 2021 16:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50476 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Arun Isaac Cc: 50476@debbugs.gnu.org Received: via spool by 50476-submit@debbugs.gnu.org id=B50476.163302079231634 (code B ref 50476); Thu, 30 Sep 2021 16:54:02 +0000 Received: (at 50476) by debbugs.gnu.org; 30 Sep 2021 16:53:12 +0000 Received: from localhost ([127.0.0.1]:53841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVzJ2-0008E4-DI for submit@debbugs.gnu.org; Thu, 30 Sep 2021 12:53:12 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:37722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVzIc-0008Bt-Tr for 50476@debbugs.gnu.org; Thu, 30 Sep 2021 12:52:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=kzDqgXm3TLDdFTEbJclH4q98WcaFgb1lNUqUCD32lSM=; b=KqWPZP1wY3+O2Pwtdl58IJQyJL ZD7X4F+BhfetT2qas6CsHcYiv1cEphB6ujW7IrRZnLbzsXBaomUurroGdiRLAVIMyfBwBzE5DTSKi syRzo6tkNLGvrhi47hERvRf/F3IzuZpnP3l3oYA1Yx4QLYaYbiApqH50/Eh60/XCPjQcjC4xc1TsU 6rNriy7qL/Ob/vuV2UwNa1wxpJxdahLLWKybjANWyBjYy0U2Olfar227ieW+iJ+FVzG34wKpFiZeN 2M+RdYOyk0jWSP7Ix86UAO9voZLQ9TNp8cFMFzrFPqjAu7tID6e6B+xDfbJSS546AiClcE5Dm3oQD 0K2t3vhg==; Received: from [192.168.2.1] (port=15514 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mVzIV-000mG6-Fc; Thu, 30 Sep 2021 22:22:39 +0530 From: Arun Isaac Date: Thu, 30 Sep 2021 22:22:28 +0530 Message-Id: <20210930165235.13180-4-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.33.0 In-Reply-To: <87wnn2j9fs.fsf@gnu.org> References: <87wnn2j9fs.fsf@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Thu, 30 Sep 2021 16:04:16 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633032296; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=kzDqgXm3TLDdFTEbJclH4q98WcaFgb1lNUqUCD32lSM=; b=HkT8iIDCZBQd2a54rZ3VK0B3w5iZfb6LnqcQafx3M03epR0QoUMaaAJ3HyEKSaTi9mF3rc oLSkie3eXpbHi61lZAhfDmDhhAhr5H/5nKJPS4Q9MjZ7rIesx/ECV5ObNmWR45LNmHOcgn gqqXwWYRPYDfCaQOv8wk1/gNnAUhgrDNBKxOgzcEoJMBBZ6f3FEviKgSxS/D8GlrBqzt2r 8g/iBYanHTi3gAxhQhLClL6KUrbNtsLmTTxFukHvx8yP5WKbYqfqSl26oc057K2PZ4GKVA yRziFwNMnqZIIrLyoj5q+D47PMVNbnIGGeyHG3l1JllimPZVNy+VUBzqwOa32g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633032296; a=rsa-sha256; cv=none; b=FbzY+dbt6XDIoLMsfTAPt3Nk+xphGZNXHPzxYT1TdqXgZmD+DcupVrrY2u2j2uvBIgGTeq jSnDRyW6jFJkjSDkgN8q6A1gBxQInwlzov8qsvFJfPwgrlbwknD/DS9phMsJ1WcUMe3Pw4 /hXok+ab2XE5oJKe3MLsri258qOrpq5fqmUBqSGu4jh3caf/41g7Nx9pr/2tQ7xr2wDTt1 G9s1YhlP84WAcSx9aPWZnKuBnerEP8LF68d3V17X4en10ZQb8UsiXXd8fyPgo+pl/HaygX F6J3JofF5PB+AMJemhOfReI4GlaAPQdMkknFubntD3R8NCFtpvI+z0gDehqBEA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=KqWPZP1w; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=KqWPZP1w; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 86837342A1 X-Spam-Score: 3.30 X-Migadu-Scanner: scn1.migadu.com X-TUID: lbXbY2KNic+r * gnu/packages/guile-xyz.scm (guile-dbi)[arguments]: Do not set LDFLAGS and RPATH in #:make-flags. [inputs]: Remove guile-dbd-sqlite3 and guile-dbd-postgresql. [native-search-paths]: Add GUILE_DBD_PATH. --- gnu/packages/guile-xyz.scm | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index bc7bf63dc5..098988bc1a 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -1512,11 +1512,6 @@ library}.") (list (string-append "--with-guile-site-dir=" %output "/share/guile/site/" (target-guile-effective-version (assoc-ref %build-inputs "guile")))) - #:make-flags - (list (string-append - "LDFLAGS=-Wl,-rpath=" %output "/lib:" - (assoc-ref %build-inputs "guile-dbd-sqlite3") "/lib" ":" - (assoc-ref %build-inputs "guile-dbd-postgresql") "/lib")) #:phases (modify-phases %standard-phases (add-after 'install 'patch-extension-path @@ -1529,9 +1524,6 @@ library}.") (ext (string-append out "/lib/libguile-dbi"))) (substitute* dbi.scm (("libguile-dbi") ext)) #t)))))) - (inputs - `(("guile-dbd-sqlite3" ,guile-dbd-sqlite3) - ("guile-dbd-postgresql" ,guile-dbd-postgresql))) ; only shared library, no scheme files (native-inputs `(("autoconf" ,autoconf) ("automake" ,automake) @@ -1547,7 +1539,11 @@ library}.") SQL databases. Database programming with guile-dbi is generic in that the same programming interface is presented regardless of which database system is used. It currently supports MySQL, Postgres and SQLite3.") - (license license:gpl2+))) + (license license:gpl2+) + (native-search-paths + (list (search-path-specification + (variable "GUILE_DBD_PATH") + (files '("lib"))))))) (define guile-dbi-bootstrap (package -- 2.33.0