unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Garek Dyszel via Bug reports for GNU Guix <bug-guix@gnu.org>
To: 64409@debbugs.gnu.org
Cc: Reed Meyerson <reed.meyerson@gmail.com>
Subject: bug#64409: libusb shared object file paths
Date: Fri, 18 Aug 2023 11:49:53 -0400	[thread overview]
Message-ID: <87ttsw73ku.fsf@disroot.org> (raw)
In-Reply-To: <CANv=NwEow7wjaZu5yySTBuB=p7CkiSvcdCwpHX1hNvUJp=b95A@mail.gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi Reed,

At 19:08 2023-07-01 UTC-0400, Reed Meyerson <address@hidden> wrote:
>I can get it to run by manually setting the $LD_LIBRARY_PATH variable:
> 
>[env]$ LD_LIBRARY_PATH=$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:
- --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

- --8<---------------cut here---------------end--------------->8---

It works on my system and gives the usual output.

- --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=<MCU> [-h] [-w] [-n] [-b] [-v] <file.hex>
        -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
- --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
-----BEGIN PGP SIGNATURE-----

iQHMBAEBCAA2FiEEdeLnvfwHNTIxccGsHY28ysRsRfIFAmTfkygYHGdhcmVrZHlz
emVsQGRpc3Jvb3Qub3JnAAoJEB2NvMrEbEXyp7kL/0gJ1aVbjcpWWz2y6/G7eCAQ
zxn1itOz5mWJcoKiXdfsWiu7FiCxdaWOpH1tpBwZ9po2cdz8pvjARI+TCBTfIqAp
h0uhELABjy+pzUs2q5V3pBx8IXYroE3Jz7NKcOwiUdFxS9KE7fCQMBJXoXY19ZKi
O1P3eRQph4iv1K624aLjnl3i1iV8KXS6IYphoGzvy9oV57ns5Va4/DojzNIaCihq
msmp2kxkjcGJKGlpskQ9bs7Pe4R2EXHJT1kCvAcmSzJZvYYQcony1e9g580mgmVA
cZ3oQOWWmQy6OMjVseKuMOv3biFTisPZitXv0fmvwA44vBLH96BG/qg6naGNDnRX
cZGIWAGsui7Y90dUXj1iw6pzMQH1nlkimmpch+nCjci1whsm9Is2yqIITambnr1W
czHxqcmF/49mFxKAmr9+dpFiiy40mcHu64kqRT6PewaIuo5xfHkNI3OWEKZtAqRY
rxSnKS1/pxz5SGR7gprCS48Jt+zIZsXpZeDdEBxQvQ==
=xKJo
-----END PGP SIGNATURE-----




      reply	other threads:[~2023-08-21  6:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-01 23:08 bug#64409: libusb shared object file paths Reed Meyerson
2023-08-18 15:49 ` Garek Dyszel via Bug reports for GNU Guix [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ttsw73ku.fsf@disroot.org \
    --to=bug-guix@gnu.org \
    --cc=64409@debbugs.gnu.org \
    --cc=garekdyszel@disroot.org \
    --cc=reed.meyerson@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).