Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 940042 - sci-electronics/kicad: fails to build with dev-libs/boost-1.86
Summary: sci-electronics/kicad: fails to build with dev-libs/boost-1.86
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Zoltan Puskas
URL: https://gitlab.archlinux.org/archlinu...
Whiteboard:
Keywords: PATCH
: 942799 (view as bug list)
Depends on: 942744
Blocks: boost-1.86
  Show dependency tree
 
Reported: 2024-09-22 11:55 UTC by Vladislav Mikhailikov
Modified: 2024-11-07 12:02 UTC (History)
6 users (show)

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


Attachments
Fix build with dev-libs/boost-1.86.0 (boost-1.86-fix-1.diff,390 bytes, patch)
2024-09-22 11:57 UTC, Vladislav Mikhailikov
Details | Diff
Fix build with dev-libs/boost-1.86.0 (second patch) (boost-1.86-fix-2.diff,885 bytes, patch)
2024-09-22 11:58 UTC, Vladislav Mikhailikov
Details | Diff
Build log (build.log,437.09 KB, text/x-log)
2024-09-22 12:30 UTC, Vladislav Mikhailikov
Details
Environment (environment,145.53 KB, text/plain)
2024-09-22 12:31 UTC, Vladislav Mikhailikov
Details
Build log after patches (build-after-patch.log.bz2,41.77 KB, application/x-bzip2)
2024-09-22 13:10 UTC, Vladislav Mikhailikov
Details
Fixes for Boost 1.86 (which didn't quite make it into 8.0.5) (boost-1.86-fix-3.diff,962 bytes, patch)
2024-09-22 13:55 UTC, Vladislav Mikhailikov
Details | Diff
Kicad-8.0.5 failed build log (build.log,445.71 KB, text/x-log)
2024-09-26 10:03 UTC, Vladislav Mikhailikov
Details
kicad-8.0.5-boost-1.86.patch (kicad-8.0.5-boost-1.86.patch,1.78 KB, patch)
2024-11-05 10:47 UTC, Torsten Kurbad
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vladislav Mikhailikov 2024-09-22 11:55:36 UTC
Kicad 8.0.5 compiling problem in Linux (boost 1.86)

Reproducible: Always

Steps to Reproduce:
1. Emerge dev-libs/boost-1.86.0
2. Rebuild Kicad against dev-libs/boost-1.86.0
Actual Results:  
Kicad failed to build

Expected Results:  
Kicad expected to build
Comment 1 Vladislav Mikhailikov 2024-09-22 11:57:10 UTC
Created attachment 903578 [details, diff]
Fix build with dev-libs/boost-1.86.0

KIID: Use Boost uuids own hash function (fix Boost 1.86)
Not only is this simpler, but it should be compatible
with all Boost versions (the cast is a problem in 1.86)
and it was also 'improved' in 1.86 for better mixing.

Fixes: #18651
(cherry picked from commit 9a3ebfba)
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-22 11:58:22 UTC
Please always include the full build.log & emerge --info.
Comment 3 Vladislav Mikhailikov 2024-09-22 11:58:29 UTC
Created attachment 903580 [details, diff]
Fix build with dev-libs/boost-1.86.0 (second patch)

KIID: Use Boost uuids own hash function (fix Boost 1.86)
Not only is this simpler, but it should be compatible
with all Boost versions (the cast is a problem in 1.86)
and it was also 'improved' in 1.86 for better mixing.

Fixes: #18651
(cherry picked from commit 9a3ebfba)
Comment 4 Vladislav Mikhailikov 2024-09-22 12:01:33 UTC
(In reply to Sam James from comment #2)
> Please always include the full build.log & emerge --info.

You are right but I already found the solution in Arch and just submitted to patches to fix the issue. That`s why I did not add the build log. If you expect it anyway I can submit this as well.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-22 12:05:53 UTC
(In reply to Vladislav Mikhailikov from comment #4)
> (In reply to Sam James from comment #2)
> > Please always include the full build.log & emerge --info.
> 
> You are right but I already found the solution in Arch and just submitted to
> patches to fix the issue. That`s why I did not add the build log. If you
> expect it anyway I can submit this as well.

In general it's kind of convenient because it means we can see the pattern for other e.g. boost-1.86 bugs when we unmask it, but I won't insist in this instance given you already have it patched and so on.
Comment 6 Vladislav Mikhailikov 2024-09-22 12:30:41 UTC
Created attachment 903581 [details]
Build log
Comment 7 Vladislav Mikhailikov 2024-09-22 12:31:19 UTC
Created attachment 903582 [details]
Environment
Comment 8 Vladislav Mikhailikov 2024-09-22 13:10:06 UTC
Created attachment 903583 [details]
Build log after patches

Patches worked out well but new issue arises with boost SHA1. Found solution here: https://github.com/HomeOfVapourSynthEvolution/VapourSynth-NNEDI3CL/issues/2?ysclid=m1djco8yp4409437056/
Comment 9 Vladislav Mikhailikov 2024-09-22 13:55:42 UTC
Created attachment 903584 [details, diff]
Fixes for Boost 1.86 (which didn't quite make it into 8.0.5)

This is the last patch required to build kicad-8.0.4 against boost-1.86. Kicad works fine.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-22 14:04:57 UTC
(In reply to Vladislav Mikhailikov from comment #8)
> Created attachment 903583 [details]
> Build log after patches
> 
> Patches worked out well but new issue arises with boost SHA1. Found solution
> here:
> https://github.com/HomeOfVapourSynthEvolution/VapourSynth-NNEDI3CL/issues/
> 2?ysclid=m1djco8yp4409437056/

Could you file a new bug for this, pointing out that we need to patch boost? I don't want it to get lost.

Thanks again.
Comment 11 Vladislav Mikhailikov 2024-09-22 14:15:02 UTC
(In reply to Sam James from comment #10)
> (In reply to Vladislav Mikhailikov from comment #8)
> > Created attachment 903583 [details]
> > Build log after patches
> > 
> > Patches worked out well but new issue arises with boost SHA1. Found solution
> > here:
> > https://github.com/HomeOfVapourSynthEvolution/VapourSynth-NNEDI3CL/issues/
> > 2?ysclid=m1djco8yp4409437056/
> 
> Could you file a new bug for this, pointing out that we need to patch boost?
> I don't want it to get lost.
> 
> Thanks again.

Looks like backport from kicad-8.0.5 solved the issue without touch of dev-libs/boost. I can confirm that I built kicad with boost 1.86 without any issues on amd64 arch. So there is no need to patch the boost.
Comment 12 Vladislav Mikhailikov 2024-09-26 10:03:25 UTC
Created attachment 903814 [details]
Kicad-8.0.5 failed build log

Ok, kicad update does not resolve the issue but the patches I submitted solves the problem.
Comment 13 Larry the Git Cow gentoo-dev 2024-09-30 18:03:00 UTC
The bug has been referenced in the following commit(s):

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

commit c2bd711b28713bbd9cd476757a8ea8ba7331e428
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2024-09-30 18:02:53 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2024-09-30 18:02:53 +0000

    dev-libs/boost: add boost.compute patch
    
    Bug: https://bugs.gentoo.org/940042
    Signed-off-by: David Seifert <soap@gentoo.org>

 ...{boost-1.86.0.ebuild => boost-1.86.0-r1.ebuild} |  4 +++
 .../files/boost-1.86.0-uuid-compute-backport.patch | 30 ++++++++++++++++++++++
 2 files changed, 34 insertions(+)
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-04 07:03:12 UTC
*** Bug 942799 has been marked as a duplicate of this bug. ***
Comment 15 Torsten Kurbad 2024-11-05 10:47:28 UTC
Created attachment 907944 [details, diff]
kicad-8.0.5-boost-1.86.patch

I consolidated the three patches into one and formatted it in a way that makes it possible to apply it via a

PATCHES=(
        "${FILESDIR}/${P}"-boost-1.86.patch
)

declaration in the rebuild.

Works for me.
Comment 16 Larry the Git Cow gentoo-dev 2024-11-07 11:59:41 UTC
The bug has been referenced in the following commit(s):

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

commit bbc310b46f0ae3f80bdb9c548af1269ce8a29cc7
Author:     Quincy Fleming <quincyf467@protonmail.com>
AuthorDate: 2024-11-07 10:05:08 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-07 11:58:36 +0000

    sci-electronics/kicad-meta: add 8.0.6
    
    Bug: https://bugs.gentoo.org/942058
    Bug: https://bugs.gentoo.org/940042
    Closes: https://bugs.gentoo.org/942744
    Signed-off-by: Quincy Fleming <quincyf467@protonmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/39223
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-electronics/kicad-meta/kicad-meta-8.0.6.ebuild | 27 ++++++++++++++++++++++
 sci-electronics/kicad-meta/metadata.xml            |  2 +-
 2 files changed, 28 insertions(+), 1 deletion(-)

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

commit 39b223cf327b8f084335d05c8c1e2ea6dd95bf14
Author:     Quincy Fleming <quincyf467@protonmail.com>
AuthorDate: 2024-11-07 10:02:53 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-07 11:58:35 +0000

    app-doc/kicad-doc: add 8.0.6
    
    Bug: https://bugs.gentoo.org/942744
    Bug: https://bugs.gentoo.org/942058
    Bug: https://bugs.gentoo.org/940042
    Signed-off-by: Quincy Fleming <quincyf467@protonmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 app-doc/kicad-doc/Manifest               |  1 +
 app-doc/kicad-doc/kicad-doc-8.0.6.ebuild | 59 ++++++++++++++++++++++++++++++++
 2 files changed, 60 insertions(+)

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

commit 3441b4aabc4b0468b13faede12eab4b87fe2ce9b
Author:     Quincy Fleming <quincyf467@protonmail.com>
AuthorDate: 2024-11-07 09:59:38 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-07 11:58:35 +0000

    sci-electronics/kicad-templates: add 8.0.6
    
    Bug: https://bugs.gentoo.org/942744
    Bug: https://bugs.gentoo.org/942058
    Bug: https://bugs.gentoo.org/940042
    Signed-off-by: Quincy Fleming <quincyf467@protonmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-electronics/kicad-templates/Manifest           |  1 +
 .../kicad-templates/kicad-templates-8.0.6.ebuild   | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)

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

commit 606bc3c43d671c33b6bb9002095e895749822190
Author:     Quincy Fleming <quincyf467@protonmail.com>
AuthorDate: 2024-11-07 09:58:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-07 11:58:34 +0000

    sci-electronics/kicad-symbols: add 8.0.6
    
    Bug: https://bugs.gentoo.org/942744
    Bug: https://bugs.gentoo.org/942058
    Bug: https://bugs.gentoo.org/940042
    Signed-off-by: Quincy Fleming <quincyf467@protonmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-electronics/kicad-symbols/Manifest             |  1 +
 .../kicad-symbols/kicad-symbols-8.0.6.ebuild       | 28 ++++++++++++++++++++++
 2 files changed, 29 insertions(+)

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

commit 5f5a9db148c98dd0d01c9e3b87119bb4110c7d61
Author:     Quincy Fleming <quincyf467@protonmail.com>
AuthorDate: 2024-11-07 09:57:14 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-07 11:58:34 +0000

    sci-electronics/kicad-packages3d: add 8.0.6
    
    Bug: https://bugs.gentoo.org/942744
    Bug: https://bugs.gentoo.org/942058
    Bug: https://bugs.gentoo.org/940042
    Signed-off-by: Quincy Fleming <quincyf467@protonmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-electronics/kicad-packages3d/Manifest          |  1 +
 .../kicad-packages3d/kicad-packages3d-8.0.6.ebuild | 31 ++++++++++++++++++++++
 2 files changed, 32 insertions(+)

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

commit 3fe6a04014464ec261b25412070b6df6563dfffb
Author:     Quincy Fleming <quincyf467@protonmail.com>
AuthorDate: 2024-11-07 09:54:19 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-07 11:58:33 +0000

    sci-electronics/kicad-footprints: add 8.0.6
    
    Bug: https://bugs.gentoo.org/942744
    Bug: https://bugs.gentoo.org/942058
    Bug: https://bugs.gentoo.org/940042
    Signed-off-by: Quincy Fleming <quincyf467@protonmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-electronics/kicad-footprints/Manifest          |  1 +
 .../kicad-footprints/kicad-footprints-8.0.6.ebuild | 28 ++++++++++++++++++++++
 2 files changed, 29 insertions(+)

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

commit 08f53a2e6ec046ee8bbe27bac90f5efc68860147
Author:     Quincy Fleming <quincyf467@protonmail.com>
AuthorDate: 2024-11-07 09:38:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-07 11:58:33 +0000

    sci-electronics/kicad: add 8.0.6
    
    Bug: https://bugs.gentoo.org/942744
    Bug: https://bugs.gentoo.org/940042
    Bug: https://bugs.gentoo.org/942058
    Signed-off-by: Quincy Fleming <quincyf467@protonmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-electronics/kicad/Manifest           |   1 +
 sci-electronics/kicad/kicad-8.0.6.ebuild | 184 +++++++++++++++++++++++++++++++
 2 files changed, 185 insertions(+)