Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 645970 - sci-electronics/kicad split package and distribute kicad-library as separate ebuild
Summary: sci-electronics/kicad split package and distribute kicad-library as separate ...
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:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-28 15:09 UTC by Jonas Stein
Modified: 2018-09-07 03:03 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 Jonas Stein gentoo-dev 2018-01-28 15:09:41 UTC
A decade ago the library was still small and kicad was not split (#260396 #260397).

However, the kicad library grows fast:

kicad-library-4.0.4.tar.gz 87 MB
kicad-library-4.0.5.tar.gz 91 MB
kicad-library-4.0.6.tar.gz 175 MB
kicad-library-4.0.7.tar.gz 475 MB

sci-electronics/kicad should be split into 
kicad and and a separate ebuild for the library because

- users can use any library, not just the kicad-lib
- we want to distribute other optional libraries for kicad in the long term too
- it makes no sense to download and reinstall the very large library 
(2.7 GB extracted), 
if Kicad needs to be recompiled (due to an updated gcc for example...)
Comment 1 Fabio Rossi 2018-07-23 14:25:40 UTC
What about splitting in kicad, kicad-libraries and kicad-footprints?
Comment 2 Jonas Stein gentoo-dev 2018-07-23 17:29:23 UTC
@Fabio why? The split is important to prevent that the large lib is downloaded and reinstalled without reason, if kicad gets recompiled.
Comment 3 Zoltan Puskas 2018-07-24 05:17:54 UTC
Yeah, KiCAD will be split into many components (work in progress). I'm planning to have as many components as upstream has. 

I will likely keep/update the USE flags on KiCAD for the libs/templates/etc, but those will just pull in the rest of the packages as dependencies. 

In addition we also can probably introduce external library packs (e.g. Digikey's libs) if licensing permits.
Comment 4 Fabio Rossi 2018-07-24 08:56:16 UTC
(In reply to Jonas Stein from comment #2)
> @Fabio why? The split is important to prevent that the large lib is
> downloaded and reinstalled without reason, if kicad gets recompiled.

as stated by Zoltan, I am asking to split in many components to follow upstream developments, in this way it is easier to have live ebuilds for libraries and footprints
Comment 5 Zakhar 2018-08-18 20:04:20 UTC
What if the library has inclusions and revisions, Im quite certain the lib and app are meant to be bundled because Im not aware of the lib having revisions as does the main kicad app.
Comment 6 jon R-B 2018-08-21 18:08:38 UTC
Shouldn't such an ebuild be a 9999 ebuild? 
The parts library can be quite dynamic as new parts are added or updated.  
This way the end user can re-emerge to pull in the latest content.

While the present kicad package does bundle an instance of the libraries, I have the git library also in ~/kicad-libraries to pull as and when i need the updates
Comment 7 Zoltan Puskas 2018-08-25 23:44:07 UTC
(In reply to jon R-B from comment #6)
> Shouldn't such an ebuild be a 9999 ebuild? 
> The parts library can be quite dynamic as new parts are added or updated.  
> This way the end user can re-emerge to pull in the latest content.

When we ship KiCAD as separate packages we want to ship a release, which also means libraries being frozen to a particular version. In industrial and production environments it's important to be able to ship a reproducible install of a particular package.

> While the present kicad package does bundle an instance of the libraries, I
> have the git library also in ~/kicad-libraries to pull as and when i need
> the updates

However I see no problem additionally providing a 9999 ebuild, where users have the choice to override the stable libraries at their own risk. 

This bug is about splitting the current huge ebuild into multiple components. Once the split is done, introducing the 9999 ebuild should be a trivial task.
Comment 8 Zoltan Puskas 2018-08-29 07:34:28 UTC
https://github.com/gentoo/gentoo/pull/9727
Comment 9 Larry the Git Cow gentoo-dev 2018-09-07 03:03:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1711185d517a57911a11765c841a34d9eb9e22ab

commit 1711185d517a57911a11765c841a34d9eb9e22ab
Author:     Zoltan Puskas <zoltan@sinustrom.info>
AuthorDate: 2018-08-27 06:44:47 +0000
Commit:     Virgil Dupras <vdupras@gentoo.org>
CommitDate: 2018-09-07 00:56:05 +0000

    sci-electronics/kicad-i18n: New ebuild to separate GUI translations from KiCAD
    
    Closes: https://bugs.gentoo.org/661350
    Closes: https://bugs.gentoo.org/645970

 sci-electronics/kicad-i18n/Manifest                |  1 +
 sci-electronics/kicad-i18n/kicad-i18n-5.0.0.ebuild | 18 ++++++++++++++++++
 sci-electronics/kicad-i18n/metadata.xml            | 18 ++++++++++++++++++
 3 files changed, 37 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b77019e631fa7d777bf92042e642fd03cb14ff70

commit b77019e631fa7d777bf92042e642fd03cb14ff70
Author:     Zoltan Puskas <zoltan@sinustrom.info>
AuthorDate: 2018-08-26 21:31:08 +0000
Commit:     Virgil Dupras <vdupras@gentoo.org>
CommitDate: 2018-09-07 00:56:04 +0000

    sci-electronics/kicad-templates: New ebuild to separate templates library from KiCAD
    
    Bug: https://bugs.gentoo.org/661350
    Bug: https://bugs.gentoo.org/645970

 sci-electronics/kicad-templates/Manifest               |  1 +
 .../kicad-templates/kicad-templates-5.0.0.ebuild       | 18 ++++++++++++++++++
 sci-electronics/kicad-templates/metadata.xml           | 18 ++++++++++++++++++
 3 files changed, 37 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a6e700e20d521b5587a5096b0cfae514222841a

commit 9a6e700e20d521b5587a5096b0cfae514222841a
Author:     Zoltan Puskas <zoltan@sinustrom.info>
AuthorDate: 2018-08-26 21:59:20 +0000
Commit:     Virgil Dupras <vdupras@gentoo.org>
CommitDate: 2018-09-07 00:56:03 +0000

    sci-electronics/kicad-packages3d: New ebuild to separate 3D packages library from KiCAD
    
    Bug: https://bugs.gentoo.org/661350
    Bug: https://bugs.gentoo.org/645970

 sci-electronics/kicad-packages3d/Manifest           |  1 +
 .../kicad-packages3d/kicad-packages3d-5.0.0.ebuild  | 21 +++++++++++++++++++++
 sci-electronics/kicad-packages3d/metadata.xml       | 21 +++++++++++++++++++++
 3 files changed, 43 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45883f571601d11deee0209aa82b9ebf8f3cb424

commit 45883f571601d11deee0209aa82b9ebf8f3cb424
Author:     Zoltan Puskas <zoltan@sinustrom.info>
AuthorDate: 2018-08-26 06:57:10 +0000
Commit:     Virgil Dupras <vdupras@gentoo.org>
CommitDate: 2018-09-07 00:56:02 +0000

    sci-electronics/kicad-footprints: New ebuild to separate footprints library from KiCAD
    
    Bug: https://bugs.gentoo.org/661350
    Bug: https://bugs.gentoo.org/645970

 sci-electronics/kicad-footprints/Manifest           |  1 +
 .../kicad-footprints/kicad-footprints-5.0.0.ebuild  | 18 ++++++++++++++++++
 sci-electronics/kicad-footprints/metadata.xml       | 21 +++++++++++++++++++++
 3 files changed, 40 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0133314b450e69e525f230f70f6be4662a8599b1

commit 0133314b450e69e525f230f70f6be4662a8599b1
Author:     Zoltan Puskas <zoltan@sinustrom.info>
AuthorDate: 2018-08-26 21:22:43 +0000
Commit:     Virgil Dupras <vdupras@gentoo.org>
CommitDate: 2018-09-07 00:56:01 +0000

    sci-electronics/kicad-symbols: New ebuild to separate symbols library from KiCAD
    
    Bug: https://bugs.gentoo.org/661350
    Bug: https://bugs.gentoo.org/645970

 sci-electronics/kicad-symbols/Manifest               |  1 +
 .../kicad-symbols/kicad-symbols-5.0.0.ebuild         | 18 ++++++++++++++++++
 sci-electronics/kicad-symbols/metadata.xml           | 20 ++++++++++++++++++++
 3 files changed, 39 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ec103eb1a2ada619a95406facaa596111320555

commit 0ec103eb1a2ada619a95406facaa596111320555
Author:     Zoltan Puskas <zoltan@sinustrom.info>
AuthorDate: 2018-08-28 08:36:20 +0000
Commit:     Virgil Dupras <vdupras@gentoo.org>
CommitDate: 2018-09-07 00:55:59 +0000

    sci-electronics/kicad: Bump to 5.0.0
    
    Bug: https://bugs.gentoo.org/661350
    Bug: https://bugs.gentoo.org/645970

 sci-electronics/kicad/Manifest           |   1 +
 sci-electronics/kicad/kicad-5.0.0.ebuild | 124 +++++++++++++++++++++++++++++++
 sci-electronics/kicad/metadata.xml       |   2 +
 3 files changed, 127 insertions(+)