From unknown Fri Jun 20 18:08:41 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#21347 <21347@debbugs.gnu.org> To: bug#21347 <21347@debbugs.gnu.org> Subject: Status: include-from-path and relative paths in load-path Reply-To: bug#21347 <21347@debbugs.gnu.org> Date: Sat, 21 Jun 2025 01:08:41 +0000 retitle 21347 include-from-path and relative paths in load-path reassign 21347 guile submitter 21347 taylanbayirli@gmail.com (Taylan Ulrich Bay=C4=B1rl=C4=B1/Ka= mmer) severity 21347 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 25 15:43:04 2015 Received: (at submit) by debbugs.gnu.org; 25 Aug 2015 19:43:04 +0000 Received: from localhost ([127.0.0.1]:38295 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUK7c-0003SC-BV for submit@debbugs.gnu.org; Tue, 25 Aug 2015 15:43:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35769) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUK7Z-0003Rm-I4 for submit@debbugs.gnu.org; Tue, 25 Aug 2015 15:43:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUK7Y-0000fd-B6 for submit@debbugs.gnu.org; Tue, 25 Aug 2015 15:43:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUK7Y-0000fZ-84 for submit@debbugs.gnu.org; Tue, 25 Aug 2015 15:43:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUK7X-0001qg-7L for bug-guile@gnu.org; Tue, 25 Aug 2015 15:43:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUK7W-0000fA-82 for bug-guile@gnu.org; Tue, 25 Aug 2015 15:42:59 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:32870) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUK7W-0000eC-1b for bug-guile@gnu.org; Tue, 25 Aug 2015 15:42:58 -0400 Received: by wijn1 with SMTP id n1so3421349wij.0 for ; Tue, 25 Aug 2015 12:42:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; bh=BlHT2/LwhPniWKRoGo5XYsyvzWXC3g9HURrMspTIFXY=; b=IJy7ljzV8HpgQNRH6ZCqpHL1wdammZNkUxPdCMNDSaAa8gJHFLlY6d2CeHpFSFfx3c xwU3XT7H9ykvlKu7YkXZsBeI2idyvI6OipA09eETPoG+n+FYagcvOpprbSFaXXDjnOeM +kluYugTfsuF10tXjbjFnyJXy4xksyDXJO/HdblCtULbr/8bOpIhYz2kkM+78dSB1rt3 6NDQ0q0JCmEqTxRqfklpHPTi7MrohDDvuZc5FXR87itLeqK9TomqeaQQu2Yp8UGgjfM7 Smq8laS3491RbzOcDhvj3KMuastCf1/jA76ZuFVqCWnhbXsdezJ7aT6fHk2ZGnlcu90L Z7Ww== X-Received: by 10.180.188.12 with SMTP id fw12mr7601580wic.69.1440531776564; Tue, 25 Aug 2015 12:42:56 -0700 (PDT) Received: from T420.taylan ([2a02:908:c32:4740:221:ccff:fe66:68f0]) by smtp.gmail.com with ESMTPSA id bq7sm342518wjc.31.2015.08.25.12.42.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Aug 2015 12:42:55 -0700 (PDT) From: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer?=) To: bug-guile@gnu.org Subject: include-from-path and relative paths in load-path Date: Tue, 25 Aug 2015 21:42:54 +0200 Message-ID: <87twrni281.fsf@T420.taylan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.0 (----) When there are relative paths in the load-path, `include-from-path' seems to always interpret them relative to the directory of the file in which the `include-from-path' is called, instead of relative to the current working directory in effect when Guile is started. Transcript: --- SNIP --- taylan@T420:~$ unset GUILE_LOAD_COMPILED_PATH taylan@T420:~$ unset GUILE_LOAD_PATH taylan@T420:~$ echo '(display "foo\n")' > display.scm taylan@T420:~$ mkdir test taylan@T420:~$ echo '(include-from-path "display.scm")' > test/test.scm taylan@T420:~$ guile -q -L . GNU Guile 2.0.11 Copyright (C) 1995-2014 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> (load "test/test.scm") ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /home/taylan/test/test.scm ;;; WARNING: compilation of /home/taylan/test/test.scm failed: ;;; ERROR: In procedure open-file: No such file or directory: "/home/taylan/test/./display.scm" ERROR: In procedure open-file: ERROR: In procedure open-file: No such file or directory: "/home/taylan/test/./display.scm" Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guile-user) [1]> --- SNIP --- Is this behavior desired? I would say not, because when passing "-L ." to guile, one expects the current directory to be added to the load path, not some symbolic "current directory" whose true value changes dynamically. (Well, I could understand if there were an explicit `chdir' call, though even then I think the "." would ideally be evaluated once at startup, if possible.) Taylan From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 24 04:42:28 2016 Received: (at 21347-done) by debbugs.gnu.org; 24 Jun 2016 08:42:28 +0000 Received: from localhost ([127.0.0.1]:53372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bGMh2-0002Hv-0e for submit@debbugs.gnu.org; Fri, 24 Jun 2016 04:42:28 -0400 Received: from pb-sasl2.pobox.com ([64.147.108.67]:53888 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bGMh0-0002Ho-Vo for 21347-done@debbugs.gnu.org; Fri, 24 Jun 2016 04:42:27 -0400 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 323C420E47; Fri, 24 Jun 2016 04:42:25 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=fMDdnqOGMFcm uPw8gBtpZk9fQRg=; b=uAdAOmDjrYsh6/5txbJO5plKqLPPdDqK2RSHvIrzARf+ uFyYcINtpGUUvRREZ2eWR6DII/YKp7vcDXjwWGZKPQdm0EfYuhkZPNxGFVkmS1Qr Xa6O8ZLMH9fPBznJgo3Cush/6h5R0DuX39Z243heWNdQx+OUH9CV6WpmlPJZizg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=b2HQtF aE/vS58Odev5ViANPqkyYmEM58MrIq+Tcgyrv2I/HgUOdBXThmaF0B92HbpNX1TT Nsh9ZMqVIPHMYeH0EdUlo2fN/NOgw2oVVrTueEDzHjzk14FLwrahThH3yXPVloyt zPWPba9zYP4lb3/uu/4ithha+ldzyfBwjlHiE= Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 1A06820E45; Fri, 24 Jun 2016 04:42:25 -0400 (EDT) Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl2.pobox.com (Postfix) with ESMTPSA id 2667120E44; Fri, 24 Jun 2016 04:42:24 -0400 (EDT) From: Andy Wingo To: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?=22Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer=22?=) Subject: Re: bug#21347: include-from-path and relative paths in load-path References: <87twrni281.fsf@T420.taylan> Date: Fri, 24 Jun 2016 10:42:17 +0200 In-Reply-To: <87twrni281.fsf@T420.taylan> ("Taylan Ulrich =?utf-8?Q?=5C=22Bay=C4=B1rl=C4=B1=2FKammer=5C=22=22's?= message of "Tue, 25 Aug 2015 21:42:54 +0200") Message-ID: <87k2hfgeqe.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Pobox-Relay-ID: 92C588F2-39E7-11E6-AE29-28A6F1301B6D-02397024!pb-sasl2.pobox.com X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: 21347-done Cc: 21347-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.4 (-) On Tue 25 Aug 2015 21:42, taylanbayirli@gmail.com (Taylan Ulrich "Bay=C4=B1= rl=C4=B1/Kammer") writes: > When there are relative paths in the load-path, `include-from-path' > seems to always interpret them relative to the directory of the file in > which the `include-from-path' is called, instead of relative to the > current working directory in effect when Guile is started. Indeed, good catch. Fixed in master. I don't know if we can fix in 2.0. Andy From unknown Fri Jun 20 18:08:41 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 22 Jul 2016 11:24:04 +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