Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 827859 - sci-electronics/kicad-6.0.0_rc1 : breaks data (symbols, footprints, ..)
Summary: sci-electronics/kicad-6.0.0_rc1 : breaks data (symbols, footprints, ..)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zoltan Puskas
URL: https://gitlab.com/kicad/code/kicad/-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-29 19:48 UTC by Thomas Capricelli
Modified: 2022-01-14 21:33 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Capricelli 2021-11-29 19:48:31 UTC
Once updated, kicad can't find symbols anymore. The symptoms are :
* symbol editor : a pop window "load error" with errors like "Error loading symbol library 74xGxx."
* schematic editor: you can't update or edit symbols
* pcb editor : you can't update or edit footprints
* 3d view : all components gone

According to the error messages: 
kicad search for symbols in /usr/share/kicad/library/, but sci-electronics/kicad-symbols-6.0.0_rc1 <200b>installs in /usr/share/kicad/symbols
kicad search for footprints in /usr/share/kicad/modules/, but sci-electronics/kicad-footprints-6.0.0_rc1 installs in /usr/share/kicad/footprints/

In the main window, under menu entry "Preferences"/"configure path", the 'old' paths are using KICAD_* env names, and KICAD6_* are used for the new paths.

I don't understand how this is supposed to work, why there are both names, why kicad6 still uses KICAD_* (non-6) env variables.

Fact is, the whole thing is broken, and I dont know what/how to fix.


Reproducible: Always
Comment 1 Thomas Capricelli 2021-11-29 20:04:54 UTC
Actually I think we're not supposed to change those env variables, as was my first guess.

But somehow we should tell kicad to use the 'new format' (.kicad_sym, ..others?), and drop the old ones. But i dont know how to do that.
Comment 2 Thomas Capricelli 2021-11-29 21:07:37 UTC
As a reminder for myself, and hopefully useful for others, here's what I did to get a somewhat working kicad 6.
('remove' really means 'remove but backup just in case', i'm not responsible for anything)

1) quit kicad
2) in ~/.config/kicad remove sym-lib-table, fp-lib-table, and the 6.0 directory if present
3) start kicad. you are prompted to "How would you like to configure KiCad ?". Use the default (import settings from a previous version). But UNCHECK "Import library configuration from previous version".
4) click on 'symbol editor'. It should ask to configure global symbol library, keep the default ('recommended') and click ok.
5) close the 'symbol editor' and opens 'footprints editor', does the same.

For 3d data, i'm less sure of how it should be done. I did that and it works, but that feels 'bad':

in the main window, menu "Preferences"/"configure path", i copied the value for KICAD6_3DMODEL_DIR: "/usr/share/kicad/3dmodels/ and put it in the env KISYS3DMOD
Comment 3 jon R-B 2021-11-29 21:51:47 UTC
So other distro's are shipping an /etc/profile.d/ script to set these. Likewise if there is no existing settings kicad will seed ~/.config/kicad/6.0 

There appears to be a gap in the migration. an elog might be ideal rather than having an /etc/profile script
Comment 4 jon R-B 2021-11-29 23:16:21 UTC
I just opened a bug upstream: https://gitlab.com/kicad/code/kicad/-/issues/9826
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-13 01:25:35 UTC
Fixed in 6.0.0.
Comment 6 Thomas Capricelli 2022-01-14 21:33:58 UTC
I did a quick test, and indeed it seems fixed. Thanks a lot !