Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 873085 - app-crypt/sequoia-sq-0.27.0 - error: unused return value of Box::<T>::from_raw that must be used
Summary: app-crypt/sequoia-sq-0.27.0 - error: unused return value of Box::<T>::from_ra...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Florian Schmaus
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-26 16:50 UTC by Toralf Förster
Modified: 2023-01-10 09:28 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.95 KB, text/plain)
2022-09-26 16:50 UTC, Toralf Förster
Details
app-crypt:sequoia-sq-0.27.0:20220926-125059.log.bz2 (app-crypt:sequoia-sq-0.27.0:20220926-125059.log.bz2,20.40 KB, application/x-bzip)
2022-09-26 16:50 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,82.88 KB, text/plain)
2022-09-26 16:50 UTC, Toralf Förster
Details
environment (environment,105.51 KB, text/plain)
2022-09-26 16:50 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,6.43 KB, application/x-bzip)
2022-09-26 16:50 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 2022-09-26 16:50:47 UTC
too long lines were shrinked:

     Running `/var/tmp/portage/app-crypt/sequoia-sq-0.27.0/work/sequoia-sq-v0.27.0/target/release/build/sequoia-openpgp-1442b3e0e13dc798/build-script-build`
     Running `/var/tmp/portage/app-crypt/sequoia-sq-0.27.0/work/sequoia-sq-v0.27.0/target/release/build/sequoia-openpgp-1442b3e0e13dc798/build-script-build`
     Running `rustc --crate-name sequoia_openpgp --edition=2018 openpgp/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C debug-assertions=off --cfg 'feature="bzip2"' --cfg 'fe
     Running `rustc --crate-name sequoia_openpgp --edition=2018 openpgp/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="bzip2"' --cfg 'feature="co
error: unused return value of `Box::<T>::from_raw` that must be used
   --> openpgp/src/crypto/mem.rs:162:13
    |

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

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

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.1
Python 3.10.7
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit 417c703d6c72825c5e8101c7b8e9345bdb944d41
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Sep 26 11:46:48 2022 +0000

    2022-09-26 11:46:47 UTC

emerge -qpvO app-crypt/sequoia-sq
[ebuild  N    ] app-crypt/sequoia-sq-0.27.0  USE="-debug"
Comment 1 Toralf Förster gentoo-dev 2022-09-26 16:50:48 UTC
Created attachment 814276 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-26 16:50:49 UTC
Created attachment 814279 [details]
app-crypt:sequoia-sq-0.27.0:20220926-125059.log.bz2
Comment 3 Toralf Förster gentoo-dev 2022-09-26 16:50:50 UTC
Created attachment 814282 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-09-26 16:50:52 UTC
Created attachment 814285 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-09-26 16:50:53 UTC
Created attachment 814288 [details]
etc.portage.tar.bz2
Comment 6 Tamas Jantvik 2023-01-10 09:16:25 UTC
Possibly related: https://github.com/rust-lang/rust/issues/99269
Comment 7 Tamas Jantvik 2023-01-10 09:18:25 UTC
I hit this during a world rebuild when migrating to news hardware.
Is this a warning that is escalated to an error? Maybe we could unset unused-must-use?
Comment 8 Larry the Git Cow gentoo-dev 2023-01-10 09:28:55 UTC
The bug has been closed via the following commit(s):

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

commit 3f81f088ac63f8a7d3ae786c30119f723e7d9c53
Author:     Florian Schmaus <flow@gentoo.org>
AuthorDate: 2023-01-10 09:28:08 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2023-01-10 09:28:41 +0000

    app-crypt/sequoia-sq: fix compilation with newer rustc
    
    Closes: https://bugs.gentoo.org/873085
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 .../sequoia-sq-0.27.0-Explicitly-drop-the-Box.patch  | 20 ++++++++++++++++++++
 app-crypt/sequoia-sq/sequoia-sq-0.27.0.ebuild        |  6 +++++-
 2 files changed, 25 insertions(+), 1 deletion(-)