Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 805227

Summary: app-crypt/qca-2.3.3 - /.../qca-ossl.cpp: error: invalid conversion from const char* to const unsigned char* [-fpermissive]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Qt Bug Alias <qt>
Status: RESOLVED FIXED    
Severity: normal CC: kde, sam, thomas.bettler
Priority: Normal Keywords: UPSTREAM
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://invent.kde.org/libraries/qca/-/merge_requests/58
See Also: https://bugs.gentoo.org/show_bug.cgi?id=818289
Whiteboard: fixed in 2.3.4
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 797325    
Attachments: emerge-info.txt
app-crypt:qca-2.3.3:20210730-130514.log
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
temp.tar.bz2
qca-openssl30.patch

Description Toralf Förster gentoo-dev 2021-07-30 13:47:26 UTC
/var/tmp/portage/app-crypt/qca-2.3.3/work/qca-2.3.3/plugins/qca-ossl/qca-ossl.cpp: In member function ‘virtual QCA::SymmetricKey opensslQCAPlugin::opensslHkdfContext::makeKey(const QCA::SecureArray&, const QCA::InitializationVector&, const QCA::InitializationVector&, unsigned int)’:
/var/tmp/portage/app-crypt/qca-2.3.3/work/qca-2.3.3/plugins/qca-ossl/qca-ossl.cpp:1269:52: error: invalid conversion from ‘const char*’ to ‘const unsigned char*’ [-fpermissive]
 1269 |         EVP_PKEY_CTX_set1_hkdf_salt(pctx, salt.data(), int(salt.size()));
      |                                           ~~~~~~~~~^~
      |                                                    |
      |                                                    const char*

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-j3-20210729-201509

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
/usr/lib/llvm/12
12.0.1
Python 3.9.6
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.53.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  HEAD of ::gentoo
commit e6d3aa8afbde27f59b2b6a79ee0a011d42c4ee1e
Merge: 466c9d77b68 18d3af05619
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Jul 30 11:51:25 2021 +0000

    Merge updates from master

emerge -qpvO app-crypt/qca
[ebuild  N    ] app-crypt/qca-2.3.3  USE="gcrypt gpg logger softstore ssl -botan -debug -doc -examples -nss -pkcs11 -sasl -test"
Comment 1 Toralf Förster gentoo-dev 2021-07-30 13:47:27 UTC
Created attachment 728301 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-07-30 13:47:29 UTC
Created attachment 728304 [details]
app-crypt:qca-2.3.3:20210730-130514.log
Comment 3 Toralf Förster gentoo-dev 2021-07-30 13:47:30 UTC
Created attachment 728307 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-07-30 13:47:31 UTC
Created attachment 728310 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-07-30 13:47:33 UTC
Created attachment 728313 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-07-30 13:47:33 UTC
Created attachment 728316 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-07-30 13:47:35 UTC
Created attachment 728319 [details]
temp.tar.bz2
Comment 8 Thomas Bettler 2021-08-03 07:27:24 UTC
Created attachment 729801 [details, diff]
qca-openssl30.patch

qca-openssl30 works for me with this patch.
Comment 9 Andreas Sturmlechner gentoo-dev 2021-08-03 08:34:29 UTC
That is 1:1 copied from the upstream issue, right?
Comment 10 Thomas Bettler 2021-08-03 09:08:03 UTC
(In reply to Andreas Sturmlechner from comment #9)
> That is 1:1 copied from the upstream issue, right?

yes, forgot to mention that
Comment 11 Andreas Sturmlechner gentoo-dev 2021-09-12 19:18:03 UTC
Waiting for new release now.
Comment 12 Larry the Git Cow gentoo-dev 2021-09-15 17:49:44 UTC
The bug has been closed via the following commit(s):

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

commit 86acbfdd28a0b69b0a3c744905713de91954e1e6
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-09-15 14:18:19 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-09-15 17:47:24 +0000

    app-crypt/qca: 2.3.4 version bump
    
    Closes: https://bugs.gentoo.org/805227
    Package-Manager: Portage-3.0.23, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 app-crypt/qca/Manifest         |  1 +
 app-crypt/qca/qca-2.3.4.ebuild | 82 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 83 insertions(+)