Created attachment 583388 [details, diff] Patch to compile kicad-5.1 with swig-4.0.0 When trying to emerge kicad-5.1.2, compilation failed with : Error: the swig import helper was not fixed, check /var/tmp/portage/sci-electronics/kicad-5.1.2/work/kicad-5.1.2_build/pcbnew/pcbnew.py and fix this script: fix_swig_imports.py make[2]: *** [pcbnew/CMakeFiles/pcbnew_kiface_objects.dir/build.make:108: pcbnew/pcbnew_wrap.cxx] Error 2 make[2]: *** Deleting file 'pcbnew/pcbnew_wrap.cxx' make[2]: Leaving directory '/var/tmp/portage/sci-electronics/kicad-5.1.2/work/kicad-5.1.2_build' make[1]: *** [CMakeFiles/Makefile2:1553: pcbnew/CMakeFiles/pcbnew_kiface_objects.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... A patch was submitted for this : https://lists.launchpad.net/kicad-developers/msg40590.html (attached) Compiles fine after applying it.
Yes indeed. Thank for reporting and also finding upstream patch. Making amendments to ebuild.
Created attachment 585506 [details, diff] update patch with correct relative path
Note: the original patch fails to apply (wrong relative path)
Thanks @jon R-B, that shall help people till PR12568 is merged into the main tree in which I already corrected the patch, but I did not think of posting it here too, which would have been a good idea.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b9a5153b00803bc29cd6809f3d7725d0589f3c0 commit 8b9a5153b00803bc29cd6809f3d7725d0589f3c0 Author: Zoltan Puskas <zoltan@sinustrom.info> AuthorDate: 2019-07-29 06:58:00 +0000 Commit: Alexey Shvetsov <alexxy@gentoo.org> CommitDate: 2019-08-03 09:28:07 +0000 sci-electronics/kicad: Fix 5.1.x build issues with swig-4.0.0 Closes: https://bugs.gentoo.org/690146 Signed-off-by: Zoltan Puskas <zoltan@sinustrom.info> Package-Manager: Portage-2.3.69, Repoman-2.3.16 Closes: https://github.com/gentoo/gentoo/pull/12568 Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org> sci-electronics/kicad/files/kicad-5.1.0-swig-4.0.0.patch | 12 ++++++++++++ .../kicad/{kicad-5.1.0.ebuild => kicad-5.1.0-r1.ebuild} | 1 + .../kicad/{kicad-5.1.2.ebuild => kicad-5.1.2-r1.ebuild} | 1 + 3 files changed, 14 insertions(+)
*** Bug 691438 has been marked as a duplicate of this bug. ***