Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 817233 - dev-util/bear-3.0.16 - /.../type_traits.hpp: error: the value of nlohmann::detail::has_from_json<nlohmann::basic_json<>, std::file
Summary: dev-util/bear-3.0.16 - /.../type_traits.hpp: error: the value of nlohmann::de...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-09 15:06 UTC by Toralf Förster
Modified: 2021-10-17 00:39 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.15 KB, text/plain)
2021-10-09 15:06 UTC, Toralf Förster
Details
dev-util:bear-3.0.16:20211009-104130.log (dev-util:bear-3.0.16:20211009-104130.log,38.94 KB, text/plain)
2021-10-09 15:06 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,283.06 KB, text/plain)
2021-10-09 15:06 UTC, Toralf Förster
Details
environment (environment,123.73 KB, text/plain)
2021-10-09 15:06 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,20.06 KB, application/x-bzip)
2021-10-09 15:06 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,6.68 KB, application/x-bzip)
2021-10-09 15:06 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,32.96 KB, application/x-bzip)
2021-10-09 15:06 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-10-09 15:06:20 UTC
/var/tmp/portage/dev-util/bear-3.0.16/work/Bear-3.0.16/source/citnames/source/Configuration.cc:46:44:   required from here
/usr/include/nlohmann/detail/meta/type_traits.hpp:400:22: error: the value of ‘nlohmann::detail::has_from_json<nlohmann::basic_json<>, std::filesystem::__cxx11::path, void>::value’ is not usable in a constant expression
  400 |         value_type>::value ||
      |                      ^~~~~
In file included from /usr/include/nlohmann/detail/conversions/from_json.hpp:19,
                 from /usr/include/nlohmann/adl_serializer.hpp:6,

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-j4-20211006-080015

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
clang version 13.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.7
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit 25aee68bdf71519873f00f7e495a75c2fbb9d194
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Oct 9 09:21:28 2021 +0000

    2021-10-09 09:21:26 UTC

emerge -qpvO dev-util/bear
[ebuild   R   ] dev-util/bear-3.0.16  USE="-test"
Comment 1 Toralf Förster gentoo-dev 2021-10-09 15:06:21 UTC
Created attachment 744096 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-10-09 15:06:22 UTC
Created attachment 744099 [details]
dev-util:bear-3.0.16:20211009-104130.log
Comment 3 Toralf Förster gentoo-dev 2021-10-09 15:06:24 UTC
Created attachment 744102 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-10-09 15:06:26 UTC
Created attachment 744105 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-10-09 15:06:27 UTC
Created attachment 744108 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-10-09 15:06:27 UTC
Created attachment 744111 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-10-09 15:06:28 UTC
Created attachment 744114 [details]
temp.tar.bz2
Comment 8 Nikos Chantziaras 2021-10-11 11:14:36 UTC
Upstream bug: https://github.com/rizsotto/Bear/issues/420
nlohmann_json bug: https://github.com/nlohmann/json/issues/3070
Comment 9 Larry the Git Cow gentoo-dev 2021-10-12 16:13:56 UTC
The bug has been referenced in the following commit(s):

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

commit 337bfe306203ea8a984452d8a3e08a4044bf74a0
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2021-10-12 16:12:27 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2021-10-12 16:12:27 +0000

    dev-util/bear: revbump for hlohmann_json dep adjustment
    
    Bug: https://bugs.gentoo.org/817233
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-util/bear/{bear-3.0.16.ebuild => bear-3.0.16-r1.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 10 Georgy Yakovlev archtester gentoo-dev 2021-10-12 16:15:41 UTC
I've temporary limited nlohmann_json version to be 3.10.2 at max 

...
Calculating dependencies  .... done!                                                                                                                            
[ebuild  N     ] dev-libs/libfmt-8.0.1-r1:0/8.0.1::gentoo  USE="-test" 0 KiB                                                                                    
[ebuild  N     ] dev-cpp/nlohmann_json-3.10.2::gentoo  USE="-doc -test" 0 KiB
...


so at least it should make it working out of the box.
after nlohmann_json is fixed I'll lift the version requirement in bear.
Comment 11 Larry the Git Cow gentoo-dev 2021-10-17 00:03:47 UTC
The bug has been closed via the following commit(s):

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

commit f975d077fc58e6cea0cf3f7ae6445550920adecc
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2021-10-16 23:57:26 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2021-10-17 00:03:32 +0000

    dev-util/bear: revbump for hlohmann_json dep adjustment
    
    This effectively reverts commit 337bfe306203ea8a984452d8a3e08a4044bf74a0.
    But we do a revision bump for dep change
    
    Bear-issue: https://github.com/rizsotto/Bear/issues/420
    Closes: https://bugs.gentoo.org/817233
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-util/bear/{bear-3.0.16-r1.ebuild => bear-3.0.16-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

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

commit b5c40a9ace50128951aaf2ddd6df3d727c0cebe3
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2021-10-16 23:54:34 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2021-10-17 00:00:53 +0000

    dev-cpp/nlohmann_json: add 3.10.4, drop 3.10.3
    
    Upstream-issue:  https://github.com/nlohmann/json/issues/3070
    Bear-issue: https://github.com/rizsotto/Bear/issues/420
    Bug: https://bugs.gentoo.org/817233
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-cpp/nlohmann_json/Manifest                                          | 2 +-
 .../{nlohmann_json-3.10.3.ebuild => nlohmann_json-3.10.4.ebuild}        | 0
 2 files changed, 1 insertion(+), 1 deletion(-)
Comment 12 Georgy Yakovlev archtester gentoo-dev 2021-10-17 00:07:25 UTC
actually people may still hit it as I removed version limit and did not introduce a blocker.


make sure you update json package first before rebuilding bear.