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

Bug 649492

Summary: app-crypt/heimdal-7.5.0 : /.../rand.h:46:10: fatal error: hcrypto/engine.h: No such file or directory
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Kerberos Maintainers <kerberos>
Status: RESOLVED FIXED    
Severity: normal CC: 4iter-yes, davidjw, heluani, info, ron
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
app-crypt:heimdal-7.5.0:20180303-191530.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2
Patch to Makefiles for heimdal-7.5.0
app-crypt/heimdal-9999.ebuild
https://github.com/heimdal/heimdal/issues/435
heimdal_hcrypto.patch

Description Toralf Förster gentoo-dev 2018-03-03 21:59:12 UTC
In file included from /var/tmp/portage/app-crypt/heimdal-7.5.0/work/heimdal-7.5.0/lib/hcrypto/test_rand.c:42:0:
/var/tmp/portage/app-crypt/heimdal-7.5.0/work/heimdal-7.5.0/lib/hcrypto/rand.h:46:10: fatal error: hcrypto/engine.h: No such file or directory
 #include <hcrypto/engine.h>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-gnome_test_20180228-181042

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)

java-config:
The following VMs are available for generation-2:


emerge -qpv app-crypt/heimdal
[ebuild  N    ] app-crypt/heimdal-7.5.0  USE="X berkdb ipv6 pkinit ssl {test} -afs -caps -hdb-ldap -libressl -otp (-selinux) -static-libs" ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2018-03-03 21:59:15 UTC
Created attachment 522142 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-03-03 21:59:18 UTC
Created attachment 522144 [details]
app-crypt:heimdal-7.5.0:20180303-191530.log
Comment 3 Toralf Förster gentoo-dev 2018-03-03 21:59:21 UTC
Created attachment 522146 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-03-03 21:59:24 UTC
Created attachment 522148 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-03-03 21:59:27 UTC
Created attachment 522150 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-03-03 21:59:30 UTC
Created attachment 522152 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-03-03 21:59:33 UTC
Created attachment 522154 [details]
temp.tbz2
Comment 8 Reimundo Heluani 2018-08-22 22:23:44 UTC
Created attachment 544586 [details, diff]
Patch to Makefiles for heimdal-7.5.0

There might be a better way, but the attached patch solved compilation in my system. There were other errors after hitting this one reported in this bug
Comment 9 Reimundo Heluani 2018-08-22 22:25:24 UTC
Also note that as it is now, placing the patch in /etc/portage/patches wont work with the current ebuild cause it calls eapply_user after eautoreconf
Comment 10 stefan00 2019-02-01 11:38:43 UTC
Same here. Heimdal won't compile. Reimundo Heluani's patch did not work for me for some reason.
Comment 11 stefan00 2019-02-04 11:56:44 UTC
Created attachment 563712 [details]
app-crypt/heimdal-9999.ebuild

Building from upstream works. It seems this bug has been addressed at heimdal upstream.

It would be nice to have a 9999 ebuild available. Please check and see attachement, it works for me. 

Please note that for whatever reason upstream build from git requires dev-perl/JSON.
Comment 13 Atlant 2019-02-08 10:42:58 UTC
Created attachment 564226 [details, diff]
https://github.com/heimdal/heimdal/issues/435

replace old patch (at current time is not applied)
Comment 14 David Williams 2019-02-21 15:44:19 UTC
Created attachment 565986 [details, diff]
heimdal_hcrypto.patch

This is the hcrypto include path patch. Attachment 564226 [details, diff] is for a dependency on ASN.1 headers. I needed both to build heimdal.
Comment 15 Larry the Git Cow gentoo-dev 2019-05-17 07:48:07 UTC
The bug has been closed via the following commit(s):

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

commit 5c8fbea00ec59fad9583f6b815e89dcd33271faa
Author:     Eray Aslan <eras@gentoo.org>
AuthorDate: 2019-05-17 07:47:28 +0000
Commit:     Eray Aslan <eras@gentoo.org>
CommitDate: 2019-05-17 07:47:55 +0000

    app-crypt/heimdal: security bump to 7.6.0
    
    Bug: https://bugs.gentoo.org/686034
    Closes: https://bugs.gentoo.org/649492
    Closes: https://bugs.gentoo.org/647880
    Closes: https://bugs.gentoo.org/641762
    Package-Manager: Portage-2.3.66, Repoman-2.3.12
    Signed-off-by: Eray Aslan <eras@gentoo.org>

 app-crypt/heimdal/Manifest                         |   1 +
 .../files/heimdal_build-headers-before-use.patch   |  29 ++++
 app-crypt/heimdal/files/heimdal_fix-db60.patch     |  11 ++
 app-crypt/heimdal/files/heimdal_hcrypto.patch      |  45 +++++
 app-crypt/heimdal/heimdal-7.6.0.ebuild             | 185 +++++++++++++++++++++
 app-crypt/heimdal/metadata.xml                     |   3 +
 6 files changed, 274 insertions(+)