Mail Archives: geda-user/2014/03/09/13:41:05
svetonomer AT gmail DOT com:
> John Eaton:
> > If we add that information to the .sch then you will be able to tell it
> > apart from all of the other components with the same name.
>
> Yes it is. This will work too.
> But why memorize a path that may change someday.
> And the project will be damaged.
>
> In addition all computers the project will be developed the same way should
> be for included libraries.
>
> > And while we are at it we should also add fields for revision and variant.
> > They will come in handy.
> >
>
> You can go this way, but it will be a crutch.
> Case proposed by me makes schematic files self-sufficient.
The file format only contains the basename (e.g. triac-1.sym). That is
the root of the problem. As you can see below, the basename is really
insufficient:
$ find cvs.gedasymbols.org/ -type f -name \*.sym | sed -e 's/.*\///;' | sort | uniq -c | sort -n -r | head
4 out.sym
4 led.sym
4 in.sym
4 gnd-1.sym
3 Ub+.sym
3 triac-1.sym
3 title-block.sym
3 switch-pb.sym
3 Si9948AEY.sym
3 opamp.sym
$
One solution is to use your patch and another is to copy the relevant
sym's to the project directory, possible renaming the files at the same
time.
But there will be a lot of copying, where I would like it to be
refencing instead, so I have to side with John. We have to come
up with something more and the version thing is on the list --
if you are using symbols from the cvs (cvs.gedasymbols.org) you'll
will notice that from time to time (by using cvs -q update -dP)
the symbols will change, dissapear, or move to another directory,
so you need the version thing. Even if you maintain symbols in your
own repository, you sometimes need to update a symbols due to
for some reason, and then you have the same situation.
Also, most(?) geda devs seems to like scheme code instead of c, so
if you come up with some scheme code you'll probably have a greater
chance that your patch will be applied.
///
So what is on the whishlist?
A start might be, to be able to handle:
. cvs/svn/git/hg/... repositories
. local or remote (possible caching the remote symbols)
. duplicate filenames
Any more ?
Regards,
/Karl Hammar
-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57
- Raw text -