From unknown Sat Aug 16 14:50:55 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#64576 <64576@debbugs.gnu.org> To: bug#64576 <64576@debbugs.gnu.org> Subject: Status: [PATCH] gnu: libusb-compat: Compile with full path of libusb-1.0.so Reply-To: bug#64576 <64576@debbugs.gnu.org> Date: Sat, 16 Aug 2025 21:50:55 +0000 retitle 64576 [PATCH] gnu: libusb-compat: Compile with full path of libusb-= 1.0.so reassign 64576 guix-patches submitter 64576 nathan severity 64576 normal tag 64576 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 11 15:37:38 2023 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 From: nathan To: guix-patches@gnu.org Subject: [PATCH] gnu: libusb-compat: Compile with full path of libusb-1.0.so 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-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= 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 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 06 00:01:14 2023 Received: (at 64576-done) by debbugs.gnu.org; 6 Sep 2023 04:01:14 +0000 Received: from localhost ([127.0.0.1]:60455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdjj7-0000d0-KV for submit@debbugs.gnu.org; Wed, 06 Sep 2023 00:01:13 -0400 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]:45099) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdjj4-0000cY-1e for 64576-done@debbugs.gnu.org; Wed, 06 Sep 2023 00:01:11 -0400 Received: by mail-qk1-x735.google.com with SMTP id af79cd13be357-76da121478dso191535485a.2 for <64576-done@debbugs.gnu.org>; Tue, 05 Sep 2023 21:01:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693972863; x=1694577663; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=uApr+cPyBoVRJ6/v78n20qmpMVGrJiOALiEPVbZ8gYs=; b=EPzHLsuXqR/SL99wjBHeTNZn2dhf1JwyRvjSg9pLcdB+RPzEuDx3KDdyDagh7jWtzA dcAATnJnAJd0ypueDstF/e/ElaWXhYXXvaM4rTP+AwhvWraTwcdCKoyV5HXY7J5bvIUB LYvBBYGmYovyZ4drKjqPIEWBPlIt8BFHEw1W/873/WPuYL1jPeDABSt+IqjJqcCcDpbv XJ005sD2zYyNDbZ3hpWzPkYeyXojttPyAxuHC4XJxHPrxTudZX0wLI1fivUZB+B5I1I5 17GGUDsGfl+h4bQnpe/3TscIKBfmxAx6baTu5i6JmOCCCkdb8U0AZLytLHC0dZRKnO1f v/5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693972863; x=1694577663; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=uApr+cPyBoVRJ6/v78n20qmpMVGrJiOALiEPVbZ8gYs=; b=M4llrSwI8BnIycztGAwansdjqzAI2BYYl4ceCbsXsmJKB/N6DHOQRwaHr9hiBm8Giw 7CIg0TQBNARID45AQuxGq1BxZLzdQEZzzNktCH2RWm/nU3eUyTxX4ofmlNh9smkLZA+U aWREagjmMoI8I+DMy7WCkTMz87E/WiY5ebvF5Lp3WCPIPngO5zCesZpR7q9DeO9krGr7 YPAiXDIV0DtP+ZB01ikZRCN781LeJJrSmoatZYOEtUpmSfuchPplOTAVUvWf1SCNCoug hziZ/bNlNk9wyP+GU5jdMerFcAmM2P1GwGEmXeeIENA5E1VTI2ksB1q7VckJT6UzE6ta cQwA== X-Gm-Message-State: AOJu0YxjmDJSY44MtRe5BL8DHM6PnjymLB1pO0BLAkMT8fjiumKZM2Fj 3xKobDfxUhXTaaWyDm32YMkacIlvA3v+rw== X-Google-Smtp-Source: AGHT+IH1gYdQwX9fRh7R9OxicVfLQqtMNeaHXQxIsIN5rJBlvBA6RjithHyX6dWV4GwDM4ts4Capdw== X-Received: by 2002:a05:620a:288f:b0:76c:a9fb:6d07 with SMTP id j15-20020a05620a288f00b0076ca9fb6d07mr16893351qkp.2.1693972863359; Tue, 05 Sep 2023 21:01:03 -0700 (PDT) Received: from hurd (dsl-153-125.b2b2c.ca. [66.158.153.125]) by smtp.gmail.com with ESMTPSA id c10-20020a05620a134a00b00763b94432ebsm4642381qkl.18.2023.09.05.21.01.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Sep 2023 21:01:02 -0700 (PDT) From: Maxim Cournoyer To: nathan Subject: Re: bug#64576: [PATCH] gnu: libusb-compat: Compile with full path of libusb-1.0.so References: <87fs5ume85.fsf@nborghese.com> Date: Wed, 06 Sep 2023 00:01:01 -0400 In-Reply-To: <87fs5ume85.fsf@nborghese.com> (nathan's message of "Tue, 11 Jul 2023 15:34:00 -0400") Message-ID: <87edjc9chu.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 64576-done Cc: 64576-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, nathan writes: > 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. > >>>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 Interesting! I fixed this independently with ddd8bb104, using a RUNPATH approach. Yours is a better solution, now applied :-). -- Thanks, Maxim From unknown Sat Aug 16 14:50:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 04 Oct 2023 11:24:37 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator