Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 797370 - =net-analyzer/suricata-6.0.2: vendored Rust module lexical-core-0.6.7 incompatible with >=rust-1.53.0
Summary: =net-analyzer/suricata-6.0.2: vendored Rust module lexical-core-0.6.7 incompa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Marek Szuba (RETIRED)
URL: https://github.com/rust-lang/rust/iss...
Whiteboard:
Keywords:
: 797382 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-06-21 14:02 UTC by Toralf Förster
Modified: 2021-06-21 16:04 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.30 KB, text/plain)
2021-06-21 14:02 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,75.84 KB, text/plain)
2021-06-21 14:02 UTC, Toralf Förster
Details
environment (environment,148.28 KB, text/plain)
2021-06-21 14:02 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,21.92 KB, application/x-bzip)
2021-06-21 14:02 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,21.14 KB, application/x-bzip)
2021-06-21 14:02 UTC, Toralf Förster
Details
net-analyzer:suricata-6.0.2:20210621-135259.log (net-analyzer:suricata-6.0.2:20210621-135259.log,50.41 KB, text/plain)
2021-06-21 14:02 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,41.46 KB, application/x-bzip)
2021-06-21 14:02 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-06-21 14:02:11 UTC
   Compiling num-traits v0.1.43
   Compiling rand_core v0.5.1
error[E0308]: mismatched types
  --> /var/tmp/portage/net-analyzer/suricata-6.0.2/work/suricata-6.0.2/rust/vendor/lexical-core/src/atof/algorithm/bhcomp.rs:62:24
   |
62 |     let bytes = bits / Limb::BITS;
   |                        ^^^^^^^^^^ expected `usize`, found `u32`

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib-j3_debug-20210620-175917

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.1.0 *
clang version 12.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.0
Python 3.9.5
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.53.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
  HEAD of ::gentoo
commit fbc6683cacf1e97fa9d210d766187feedd5d0d18
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Jun 21 12:36:38 2021 +0000

    2021-06-21 12:36:36 UTC

emerge -qpvO net-analyzer/suricata
[ebuild  N    ] net-analyzer/suricata-6.0.2  USE="af-packet detection nfqueue -bpf -control-socket -cuda -debug -geoip -hardened -logrotate -lua -lz4 -nflog -redis -systemd -test" LUA_SINGLE_TARGET="lua5-1 -luajit" PYTHON_SINGLE_TARGET="python3_9 -python3_10 -python3_8"
Comment 1 Toralf Förster gentoo-dev 2021-06-21 14:02:12 UTC
Created attachment 717459 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-06-21 14:02:13 UTC
Created attachment 717462 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-06-21 14:02:15 UTC
Created attachment 717465 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-06-21 14:02:16 UTC
Created attachment 717468 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-06-21 14:02:17 UTC
Created attachment 717471 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-06-21 14:02:19 UTC
Created attachment 717474 [details]
net-analyzer:suricata-6.0.2:20210621-135259.log
Comment 7 Toralf Förster gentoo-dev 2021-06-21 14:02:20 UTC
Created attachment 717477 [details]
temp.tar.bz2
Comment 8 Marek Szuba (RETIRED) archtester gentoo-dev 2021-06-21 14:16:41 UTC
For the record, suricata-5 is unaffected because it doesn't bundle this module.
Comment 9 Larry the Git Cow gentoo-dev 2021-06-21 14:54:30 UTC
The bug has been closed via the following commit(s):

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

commit 0ba3e306a8c728ad5eaf3e2577859e57820bd28e
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2021-06-21 14:41:53 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2021-06-21 14:54:16 +0000

    net-analyzer/suricata-6.0.2: restrict Rust version
    
    The bundled lexical-core-0.6.7 is not compatible with rust-1.53 due to
    stabilisation of <integer>::BITS, see
    https://github.com/rust-lang/rust/issues/81654 . Already fixed by
    lexical-core upstream (in version 0.7.5) but I haven't had much luck
    backporting this to 0.6.7.
    
    Suricata-5 is not affected because it doesn't use this Rust module.
    
    Closes: https://bugs.gentoo.org/797370
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 net-analyzer/suricata/suricata-6.0.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 10 Marek Szuba (RETIRED) archtester gentoo-dev 2021-06-21 15:00:53 UTC
*** Bug 797382 has been marked as a duplicate of this bug. ***
Comment 11 Marek Szuba (RETIRED) archtester gentoo-dev 2021-06-21 15:11:33 UTC
*** Bug 797382 has been marked as a duplicate of this bug. ***
Comment 12 Marek Szuba (RETIRED) archtester gentoo-dev 2021-06-21 15:14:13 UTC
Alas, this is not ready yet - as ago's tinderbox has just shown, simply limiting the version of virtual/rust is not enough because if both dev-lang/rust-bin and dev-lang/rust are installed , limiting the virtual version only downgrades one of them.
Comment 13 Larry the Git Cow gentoo-dev 2021-06-21 16:03:49 UTC
The bug has been closed via the following commit(s):

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

commit 7a2e9ee518178d40409d8d27384ac0c84b2b3ae9
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2021-06-21 15:59:50 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2021-06-21 16:03:38 +0000

    net-analyzer/suricata: limit version of currently selected rust
    
    While simply limiting the version of virtual/rust in dependencies is
    likely enough for most users at present, if someone has got both rust
    and rust-bin emerged the virtual will only affect the version of one of
    them - and it is possible that the version currently set as active
    by "eselect rust" is not a supported one.
    
    Closes: https://bugs.gentoo.org/797370
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 net-analyzer/suricata/suricata-6.0.2.ebuild | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)