From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 4CHJDGsK42QtowAASxT56A (envelope-from ) for ; Mon, 21 Aug 2023 08:55:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id uBzEDGsK42RfjgAA9RJhRA (envelope-from ) for ; Mon, 21 Aug 2023 08:55:39 +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 0F5BF5A37E for ; Mon, 21 Aug 2023 08:55:39 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=Th7ctBgA; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692600939; a=rsa-sha256; cv=none; b=KiPhsbrsBWLac6V7nXe4GuiX9iAcUdhBAL6YYcUcct07qyrWhQC3LkOfLaHAoZkvkTKN1W /0/WSvHqcnkkwQNerjO+vQc1ZNwdIM/e2OYtq20a2MbO2OsSVmrY8F+vk/12X55FKFMxdO pO9E71ms8SfJ86ovjAlFy7J6xQRcfKzGZzYRb+0J8rh0VA8EsSInftDmztpVPcD1HF6/wL 2zLshgGrV72/jS98XsmgZbE6Nto3Vo9fnuGrJxHkf3sHAnqKN3uNpQdmNTZ+f/lmGIWe7n JmR0zyJFP6hmK7wHu7GvqQmmGbXCLpO9y7RPmEpsiGsbXguw/xTDQ6GQLdOo8w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=Th7ctBgA; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-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=1692600939; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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=oTB1qiaax5vGDjx540WHsy36sjxcfozCKifCFGPkMyc=; b=YoYESL99aLXdgjwOrr5FYNvxStbguk31dsCpaedkUEnLVarYC5KXqzuLTRseisLPVazjlk 60+mjge7GDxWOWOy28oHLjeLukiqpV2rFKGFUQ7SiM15P8CwfOmsIRtXpK9sc3EQIvr9g8 6Xy/CUNcErGbtypagXtg9L5ofFm55CXa+ltwHz2P7eiXPzyCLIi3nbia6e2tHDxrjeO5XO C5RgPvdkTSjMTew/ZHN7cnQe78wOo2wddaYzcF6/fslNpUIn6LnTLZjpnI78wVCiraduMo JNKuDCWdl/zr8j/SWfuOmzKsvcjTuECmavmhTz1cExhLoIfuo1mPaVixMoiWNg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXyob-0004Q1-Cs; Mon, 21 Aug 2023 02:55: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 1qX1kc-0002zL-4R for bug-guix@gnu.org; Fri, 18 Aug 2023 11:51:02 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qX1kb-00037O-Mg for bug-guix@gnu.org; Fri, 18 Aug 2023 11:51:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qX1kc-0007k4-2o for bug-guix@gnu.org; Fri, 18 Aug 2023 11:51:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#64409: libusb shared object file paths References: In-Reply-To: Resent-From: Garek Dyszel Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 18 Aug 2023 15:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64409 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 64409@debbugs.gnu.org Cc: Reed Meyerson Received: via spool by 64409-submit@debbugs.gnu.org id=B64409.169237381829679 (code B ref 64409); Fri, 18 Aug 2023 15:51:02 +0000 Received: (at 64409) by debbugs.gnu.org; 18 Aug 2023 15:50:18 +0000 Received: from localhost ([127.0.0.1]:48577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qX1ju-0007ic-6X for submit@debbugs.gnu.org; Fri, 18 Aug 2023 11:50:18 -0400 Received: from layka.disroot.org ([178.21.23.139]:35826) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qX1jr-0007iS-Nc for 64409@debbugs.gnu.org; Fri, 18 Aug 2023 11:50:17 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 8F8C9410BC; Fri, 18 Aug 2023 17:50:13 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XIfxAtP4eRZO; Fri, 18 Aug 2023 17:50:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1692373812; bh=XFvvlVNpgIb55TP+m9Dk0+jQdVRUnUYa+aJyx6bWBZo=; h=From:To:Cc:Subject:Date; b=Th7ctBgA4bv0284o4kxhkKlUmDIkygFan4qoKgLmpuz1efeZOWZ5X0opHAg89f7sY UpbObfF7t7+yfG6yA5NDO0wH6wXK0u/vznk352w7vI9Ded+hKZCrNxn9kb3ddz5d80 H8PUYQfUo+XH170Z08tX3OVtgc7ChMkb8lyIVli0SL6cGbwRhKQDglsEziSAAOzsoN 4o4MEGI6ueNaZT1uNNa8mmuGdGLRYesji+YoaASD15LhvbHqi+yg9iq/S9KYHPA6Vb T0FoXYNKgZm8uAkhzIefMM26Xy2U7Z6M/qTpjT0blPiTX1a3fJCJ5rBBetqSBJ8y3O 1GfSQhkSh+JJQ== Date: Fri, 18 Aug 2023 11:49:53 -0400 Message-ID: <87ttsw73ku.fsf@disroot.org> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Mon, 21 Aug 2023 02:55:00 -0400 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Garek Dyszel From: Garek Dyszel via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx0.migadu.com X-Spam-Score: -5.20 X-Migadu-Queue-Id: 0F5BF5A37E X-Migadu-Spam-Score: -5.20 X-TUID: JREmmSj8mnk3 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi Reed, At 19:08 2023-07-01 UTC-0400, Reed Meyerson wrote: >I can get it to run by manually setting the $LD_LIBRARY_PATH variable: >=20 >[env]$ LD_LIBRARY_PATH=3D$GUIX_ENVIRONMENT/lib teensy_loader_cli It seems I found a solution to your problem based on your clue here. It's kind of a hack since I'm sure the maintainers are trying to get rid of this, but... the solution is to use libusb-0.1 as a replacement for the libusb-compat input. Here's a package variant that does exactly that. teensy-loader-cli-unbroken.scm: =2D --8<---------------cut here---------------start------------->8--- (define-module (teensy-loader-cli-unbroken) #:use-module (guix packages) #:use-module (guix build utils) #:use-module (gnu packages libusb) #:use-module (gnu packages flashing-tools)) (define-public teensy-loader-cli-unbroken (package (inherit teensy-loader-cli) (name "teensy-loader-cli-unbroken") (inputs (list libusb-0.1)))) teensy-loader-cli-unbroken =2D --8<---------------cut here---------------end--------------->8--- It works on my system and gives the usual output. =2D --8<---------------cut here---------------start------------->8--- $ $(guix build -f ./teensy-loader-cli-unbroken.scm)/bin/teensy_loader_cli Filename must be specified Usage: teensy_loader_cli --mcu=3D [-h] [-w] [-n] [-b] [-v] -h : Print this help message -w : Wait for device to appear -r : Use hard reboot if device not online -s : Use soft reboot if device not online (Teensy 3.x & 4.x) -n : No reboot after programming -b : Boot only, do not program -v : Verbose output Use `teensy_loader_cli --list-mcus` to list supported MCUs. For more information, please visit: http://www.pjrc.com/teensy/loader_cli.html =2D --8<---------------cut here---------------end--------------->8--- Note that I didn't try to flash anything with it yet. I'm working on getting the udev rule to install with teensy-loader-cli, but I most likely won't have that done anytime soon (or at all, if I lose interest!). I've been fighting with this sporadically over the last year, and this was what I needed to get it working. Thanks for the hint! Garek =2D----BEGIN PGP SIGNATURE----- iQHMBAEBCAA2FiEEdeLnvfwHNTIxccGsHY28ysRsRfIFAmTfkygYHGdhcmVrZHlz emVsQGRpc3Jvb3Qub3JnAAoJEB2NvMrEbEXyp7kL/0gJ1aVbjcpWWz2y6/G7eCAQ zxn1itOz5mWJcoKiXdfsWiu7FiCxdaWOpH1tpBwZ9po2cdz8pvjARI+TCBTfIqAp h0uhELABjy+pzUs2q5V3pBx8IXYroE3Jz7NKcOwiUdFxS9KE7fCQMBJXoXY19ZKi O1P3eRQph4iv1K624aLjnl3i1iV8KXS6IYphoGzvy9oV57ns5Va4/DojzNIaCihq msmp2kxkjcGJKGlpskQ9bs7Pe4R2EXHJT1kCvAcmSzJZvYYQcony1e9g580mgmVA cZ3oQOWWmQy6OMjVseKuMOv3biFTisPZitXv0fmvwA44vBLH96BG/qg6naGNDnRX cZGIWAGsui7Y90dUXj1iw6pzMQH1nlkimmpch+nCjci1whsm9Is2yqIITambnr1W czHxqcmF/49mFxKAmr9+dpFiiy40mcHu64kqRT6PewaIuo5xfHkNI3OWEKZtAqRY rxSnKS1/pxz5SGR7gprCS48Jt+zIZsXpZeDdEBxQvQ=3D=3D =3DxKJo =2D----END PGP SIGNATURE-----