Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 812683 - net-misc/dropbear fails to build against dev-libs/libtomcrypt[-libtommath]
Summary: net-misc/dropbear fails to build against dev-libs/libtomcrypt[-libtommath]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-11 17:14 UTC by Matt Turner
Modified: 2021-09-11 17:18 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Turner gentoo-dev 2021-09-11 17:14:33 UTC
dropbear specifically requires libtomcrypt to be built with libtommath support, otherwise it fails to compile:

/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: crypto_desc.o: warning: relocation against `ltm_desc' in read-only section `.text'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: crypto_desc.o: in function `crypto_init':
crypto_desc.c:(.text+0xb2): undefined reference to `ltm_desc'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status

ltm_desc is referenced in the libtomcrypt ebuild in association with libtommath:

>      if use libtommath; then
>          enabled_features+=( -DLTM_DESC=1 )
>          extra_libs+=( -ltommath )
>      fi
Comment 1 Larry the Git Cow gentoo-dev 2021-09-11 17:15:57 UTC
The bug has been closed via the following commit(s):

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

commit a69f7db813e4ee8f065ca8d80a0dc86b440aeaf5
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2021-09-11 17:15:10 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2021-09-11 17:15:50 +0000

    net-misc/dropbear: Require libtomcrypt[libtommath]
    
    Closes: https://bugs.gentoo.org/812683
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 net-misc/dropbear/dropbear-2020.81-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-11 17:18:31 UTC
Thanks! I’m sorry, I thought we’d done this before.