From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MBDYBUpSWl9UWgAA0tVLHw (envelope-from ) for ; Thu, 10 Sep 2020 16:20:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id CPyuAUpSWl91RAAAB5/wlQ (envelope-from ) for ; Thu, 10 Sep 2020 16:20:26 +0000 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 4B29D9400C7 for ; Thu, 10 Sep 2020 16:20:25 +0000 (UTC) Received: from localhost ([::1]:34342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGPJA-00034K-3M for larch@yhetil.org; Thu, 10 Sep 2020 12:20:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGPIF-0002O5-0y for guix-devel@gnu.org; Thu, 10 Sep 2020 12:19:27 -0400 Received: from smtp.hosts.co.uk ([85.233.160.19]:28270) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGPID-0007L9-53 for guix-devel@gnu.org; Thu, 10 Sep 2020 12:19:26 -0400 Received: from maikeh336.claranet.co.uk ([79.123.23.187] helo=pancake.local) by smtp.hosts.co.uk with esmtpsa (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim) (envelope-from ) id 1kGPI6-000A6o-Fs for guix-devel@gnu.org; Thu, 10 Sep 2020 17:19:19 +0100 Message-ID: <5c1adbae6b077e4bfd4999745bf6855ff319b7fe.camel@tourbillion-technology.com> Subject: Re: getting started with the texlive importer From: Paul Garlick To: guix-devel@gnu.org Date: Thu, 10 Sep 2020 17:19:17 +0100 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Received-SPF: none client-ip=85.233.160.19; envelope-from=pgarlick@tourbillion-technology.com; helo=smtp.hosts.co.uk X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/10 12:19:19 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: 1.99 X-TUID: 5JIE5hukLVDV Hi Guix, Ok, I have found a fix. It turns out that the 'svn export' command throws an error if the target directory already exists. Initially I set the 'log' argument of 'download-svn-to-store' to 'current-output-port' to see the error message from svn: svn: E155000: Destination directory exists; please remove the directory or use - -force to overwrite This error is generated because a temporary directory is created by the 'call-with-temporary-directory' procedure (from svn-download.scm). The name of the directory is used as an argument for the 'svn export' command. The fix I have tested is the following: --- a/guix/svn-download.scm +++ b/guix/svn-download.scm @@ -159,10 +159,11 @@ reports to LOG." (parameterize ((current-output-port log)) (build:svn-fetch (svn-reference-url ref) (svn-reference-revision ref) - temp + (string-append temp "/svn") #:user-name (svn-reference-user-name ref) #:password (svn-reference-password ref))))) (and result - (add-to-store store name #t "sha256" temp)))))) + (add-to-store store name #t "sha256" + (string-append temp "/svn"))))))) ;;; svn-download.scm ends here The effect is to add a subdirectory to the temporary directory. This is used as the target to download the files to. It does not exist until created by the 'svn export' command. WDYT? If there are no objections I will push a commit early next week. Best regards, Paul.