delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2021/04/17/10:45:58

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7+dev
X-Exmh-Isig-CompType: repl
X-Exmh-Isig-Folder: inbox
From: "karl AT aspodata DOT se [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
To: geda-user AT delorie DOT com
Mail-Followup-To: geda-user AT delorie DOT com
Subject: Re: [geda-user] system wide config
In-reply-to: <YHrjzpKEMOvXREuY@lepton>
References: <20210417120805 DOT 37DAA824EAA0 AT turkos DOT aspodata DOT se> <YHrjzpKEMOvXREuY AT lepton>
Comments: In-reply-to "Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
message dated "Sat, 17 Apr 2021 16:34:06 +0300."
Mime-Version: 1.0
Message-Id: <20210417144426.E4238824EAA0@turkos.aspodata.se>
Date: Sat, 17 Apr 2021 16:44:26 +0200 (CEST)
X-Virus-Scanned: ClamAV using ClamSMTP
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Vladimir:
> On Sat, Apr 17, 2021 at 02:08:05PM +0200, karl AT aspodata DOT se [via geda-user AT delorie DOT com] wrote:
...
> >  But for some projects it would be nice if I could start
> >  lepton/geda an a clean plate.
> Lepton has the 'LEPTON_INHIBIT_RC_FILES' environment variable.  It
> is of limited usage and may be dropped some day.  If you would
> make it more clear what the 'clean plate' is in this case and how
> to support it, we could do better.

This is about libraries and the reset thing would probably suffice.

I a had a customer and they wanted all their symbols etc. to be
within the same repository (git in this case, but it could be
whatever), with no accidental use of any lib outside of that top 
directory.

There was separate dirs for each subproject, a top .sch with source 
symbols pointing to each subdirs "top" sch which was about one pcb each
but there could be multiple pcbs for each subdir. But you could traverse
the whole hierarchy starting from the top node, or a subtree starting
from some node (I could possible put in a "up" src symbol).

Now all thees should reference the same symbol library dir, but since 
the repo could be checked out at different places in the local file 
system I couldn't use absolute paths.

So I used something like:
$ cat gafrc 
(reset-component-library)
(reset-source-library)

(if (access? "sym" R_OK)
 (begin
  (source-library  "_sub_page")
  (component-library "sym")
...
 )
 (begin
  (source-library  "../_sub_page")
  (component-library "../sym")
...
 )
)

with links from each subdir (ln -s ../gafrc .)
and I could open the top sch, or a subdir sch and get the same 
libraries.

Now this was only two directory levels, and it wouldn't scale well to 
more.

So, what's the "best" way to solve that...

Regards,
/Karl Hammar


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019