From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:38523) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4UhX-0008OF-1J for guix-patches@gnu.org; Wed, 19 Feb 2020 14:08:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j4UhV-0001df-Tj for guix-patches@gnu.org; Wed, 19 Feb 2020 14:08:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37428) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j4UhV-0001dX-Pz for guix-patches@gnu.org; Wed, 19 Feb 2020 14:08:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j4UhV-00012K-LV for guix-patches@gnu.org; Wed, 19 Feb 2020 14:08:01 -0500 Subject: [bug#39636] [PATCH 6/6] gnu: kicad: Add translations and search paths. Resent-Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 19 Feb 2020 19:07:32 +0000 From: Brice Waegeneire In-Reply-To: <20200219163534.403c757c@scratchpost.org> References: <20200216212621.3063-1-brice@waegenei.re> <20200216212834.3862-6-brice@waegenei.re> <20200219163534.403c757c@scratchpost.org> Message-ID: <07148b13cf2ed02357a4f989a943dbea@waegenei.re> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Danny Milosavljevic Cc: 39636@debbugs.gnu.org, Guix-patches On 2020-02-19 15:35, Danny Milosavljevic wrote: >> + (native-search-paths >> + (list (search-path-specification >> + (variable "KICAD_TEMPLATE_DIR") >> + (files '("share/kicad/template"))) >> + (search-path-specification >> + (variable "KICAD_SYMBOL_DIR") ; symbol path >> + (files '("share/kicad/library"))) >> + (search-path-specification >> + (variable "KISYSMOD") ; footprint path >> + (files '("share/kicad/modules"))) >> + (search-path-specification >> + (variable "KISYS3DMOD") ; 3D model path >> + (files '("share/kicad/modules/packages3d"))))) > > What is the effect of these? > > Otherwise fine, I'll apply all of those, but I'm just wondering what > the above > is for because I've seen thousands of packages and very very few have > that, > and even fewer "normal end user" programs do. Note that in the 4th patch, the deleted package kicad-library, set 2 of those native-paths already. These variables allows KiCad to find the location of it's "libraries" packaged in the first patches of this series. For example "KISYSMOD" will enable KiCad to find the schematic symbol libraries provided by "kicad-symbols" or any other future package that would provide some. This is particularly useful, when running the wizards on your firsts run of KiCad, to copy the global symbol library table without using the file browser half haphazardly to find the path to that particular library. With these environment variables set a user only need to use the recommended option. You can find the related documentation here: https://docs.kicad-pcb.org/5.0.2/en/kicad/kicad.html#paths_configuration.