From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 6FZOCbGvrWQfRAEASxT56A (envelope-from ) for ; Tue, 11 Jul 2023 21:38:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id mBxSCLGvrWTcsQAAG6o9tA (envelope-from ) for ; Tue, 11 Jul 2023 21:38:25 +0200 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 D507664DCA for ; Tue, 11 Jul 2023 21:38:24 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=nborghese.com header.s=062122 header.b=svX+A6+q; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689104304; 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:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=fv71XTRmiqK7LgnLaqSgDmdO1Xfu5UWs4HsGEV18C6M=; b=RV9RWTmKyF63GJI5LvKWwpYTFDY1B8QxMXJiudIDFw9HW7JBpDi8E0L9z9I7TjbhT1T8e4 y0Nh6drq+yTHT6Fax+JaU95rg7NVUNxhZHF3RFM2l+8yh6LdnxYlSThuiJvnADi2OkBzIY L1wwGvvuSrPv1dGHBL8Z4j7nTUBBt5UVu6Xe+ltl+61k30FLdOeZtFhbYbKeJTrl8/9lDh 3wfDE3a8iUcQ4+xAvUENkY/83py3OZXjJSl7eeQWvsmNJR+HJMnFTm08ChVB3e8l+CL1vt QtpUDHFMK8uLY6rCkw2IuAHE0bCGzdUys2bsJtYGspsEYNrJqwAC/dbEQEgHfA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=nborghese.com header.s=062122 header.b=svX+A6+q; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689104304; a=rsa-sha256; cv=none; b=RTfKltTpbBpq7j/ymcErDfiEdfQfCawiChIofX88N9EQ5QFMgZSHAKos5mfKrLDS4dNY1G rQwTPjQYsdve8Su6sD0OM2+ucHvRsrWNRtNqBFllIpJyGYbtZ9ewh8T/oBZfE/GuPVBELt tcymuQJCFAvsQ3s5cpfO2jedgztM5ryDifEAFTADh5+w8Zm4BTGUHo5Tk+8Dd6X6gwzCrT wZY8qD17lUpISxwPMPU34N+qKYJYbz4v5mACmjWY1auv2eET4uULF2mNKBBS8b/t9PJ/EE laURIeZcv4kTYBOGAp19MIusoM8RNQj+tKr7aCPO0KQbVSnstbVatT/4wbd3Lw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qJJBV-00021d-Kd; Tue, 11 Jul 2023 15:38:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qJJBS-00021J-Kf for guix-patches@gnu.org; Tue, 11 Jul 2023 15:38:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qJJBS-0003Vd-Ca for guix-patches@gnu.org; Tue, 11 Jul 2023 15:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qJJBR-0003PL-PC for guix-patches@gnu.org; Tue, 11 Jul 2023 15:38:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64576] [PATCH] gnu: libusb-compat: Compile with full path of libusb-1.0.so Resent-From: nathan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 11 Jul 2023 19:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64576 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64576@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168910425813061 (code B ref -1); Tue, 11 Jul 2023 19:38:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Jul 2023 19:37:38 +0000 Received: from localhost ([127.0.0.1]:51121 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qJJB3-0003Ob-TP for submit@debbugs.gnu.org; Tue, 11 Jul 2023 15:37:38 -0400 Received: from lists.gnu.org ([209.51.188.17]:53196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qJJB1-0003OS-8k for submit@debbugs.gnu.org; Tue, 11 Jul 2023 15:37:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qJJB0-0001yI-UN for guix-patches@gnu.org; Tue, 11 Jul 2023 15:37:34 -0400 Received: from mail.nborghese.com ([207.148.28.48]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qJJAy-0003TJ-4Q for guix-patches@gnu.org; Tue, 11 Jul 2023 15:37:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=062122; bh=acrzBEMLYAfVg RxjROXvuCRDLCVPCoDRrrUeS+PjdNg=; h=date:subject:to:from; d=nborghese.com; b=svX+A6+qlNZmuLBEdrn9tnWuXZVK9jp45jocsqK2cij+s7yNSHP sHy+KX+4sc3q0qrARReV3dIb81Csh7gdiT6+7bhaE8nK0I1y3h72Fwt+Mk01tZa5oYDlh3 edWP2b0QwOpa+kUK4cTZg8AcnLh4uWYvJuGZ2H2G2sceyAb34c= Received: by nborghese.com (OpenSMTPD) with ESMTPSA id 5450235a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Tue, 11 Jul 2023 19:37:28 +0000 (UTC) User-agent: mu4e 1.10.5; emacs 29.0.92 Date: Tue, 11 Jul 2023 15:34:00 -0400 Message-ID: <87fs5ume85.fsf@nborghese.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=207.148.28.48; envelope-from=nathan_mail@nborghese.com; helo=mail.nborghese.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: nathan X-ACL-Warn: , nathan via Guix-patches From: nathan via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: D507664DCA X-Migadu-Spam-Score: -3.02 X-Migadu-Scanner: mx0.migadu.com X-Spam-Score: -3.02 X-TUID: 5j9aN1itrZ8o --=-=-= Content-Type: text/plain fix bug#64409 In libusb-compat-0.1.8/libusb/libusb-dload.h, dlopen is used to load libusb. We need to specify an absolute path. With this fix, teensy_loader_cli doesn't immediately fail with a missing library error. ./pre-inst-env guix shell teensy-loader-cli -- teensy_loader_cli If you merge the patch from bug#64563 first, you can't test this patch with teensy_loader_cli. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-libusb-compat-Compile-with-full-path-of-libusb-1.patch >From c0a8ecea0ce6f3954061a3d061a3243fa65c6cfb Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 10 Jul 2023 23:22:48 -0400 Subject: [PATCH] gnu: libusb-compat: Compile with full path of libusb-1.0.so * gnu/packages/libusb.scm (libusb) [configure-flags]: Provide full path of libusb-1.0.so so dlopen works. --- gnu/packages/libusb.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/packages/libusb.scm b/gnu/packages/libusb.scm index d0837c8a91..39586147ba 100644 --- a/gnu/packages/libusb.scm +++ b/gnu/packages/libusb.scm @@ -101,7 +101,10 @@ (define-public libusb-compat (build-system gnu-build-system) (arguments (list #:configure-flags - #~(list "--disable-static"))) + #~(list "--disable-static" + (string-append "LIBUSB_1_0_SONAME=" + #$(this-package-input "libusb") + "/lib/libusb-1.0.so")))) (native-inputs (list autoconf automake libtool pkg-config)) (inputs -- 2.41.0 --=-=-=--