Discussion:
manual pages file names conflict in openssl 1.1 and heimdal 7.5
Adam Osuchowski
2018-08-21 13:23:02 UTC
Permalink
File names of manual pages for functions in openssl 1.1 conflict with
its equivalents in heimdal 7.5. Example:

file /usr/share/man/man3/DES_cbc_cksum.3 from install of openssl-devel-1.1.0h-1.x86_64 conflicts with file from package heimdal-devel-7.5.0-2.x86_64
file /usr/share/man/man3/DES_cfb64_encrypt.3 from install of openssl-devel-1.1.0h-1.x86_64 conflicts with file from package heimdal-devel-7.5.0-2.x86_64
file /usr/share/man/man3/DES_ecb3_encrypt.3 from install of openssl-devel-1.1.0h-1.x86_64 conflicts with file from package heimdal-devel-7.5.0-2.x86_64
file /usr/share/man/man3/DES_ecb_encrypt.3 from install of openssl-devel-1.1.0h-1.x86_64 conflicts with file from package heimdal-devel-7.5.0-2.x86_64
file /usr/share/man/man3/DES_ede3_cbc_encrypt.3 from install of openssl-devel-1.1.0h-1.x86_64 conflicts with file from package heimdal-devel-7.5.0-2.x86_64
file /usr/share/man/man3/DES_is_weak_key.3 from install of openssl-devel-1.1.0h-1.x86_64 conflicts with file from package heimdal-devel-7.5.0-2.x86_64
file /usr/share/man/man3/DES_key_sched.3 from install of openssl-devel-1.1.0h-1.x86_64 conflicts with file from package heimdal-devel-7.5.0-2.x86_64
file /usr/share/man/man3/DES_pcbc_encrypt.3 from install of openssl-devel-1.1.0h-1.x86_64 conflicts with file from package heimdal-devel-7.5.0-2.x86_64
file /usr/share/man/man3/DES_set_key.3 from install of openssl-devel-1.1.0h-1.x86_64 conflicts with file from package heimdal-devel-7.5.0-2.x86_64
file /usr/share/man/man3/DES_set_key_checked.3 from install of openssl-devel-1.1.0h-1.x86_64 conflicts with file from package heimdal-devel-7.5.0-2.x86_64

As it turns out, heimdal defines these functions with hc_ prefix and such
symbols exist in heimdal libraries, while names without hc_ prefix are made
through #define:

$ grep '^#define DES_.*_encrypt' /usr/include/hcrypto/des.h
#define DES_cbc_encrypt hc_DES_cbc_encrypt
#define DES_cfb64_encrypt hc_DES_cfb64_encrypt
#define DES_ecb3_encrypt hc_DES_ecb3_encrypt
#define DES_ecb_encrypt hc_DES_ecb_encrypt
#define DES_ede3_cbc_encrypt hc_DES_ede3_cbc_encrypt
#define DES_encrypt hc_DES_encrypt
#define DES_pcbc_encrypt hc_DES_pcbc_encrypt
$ nm -D /lib64/libhcrypto.so.4 | grep 'DES_.*_encrypt'
0000000000018930 T hc_DES_cbc_encrypt
00000000000194b0 T hc_DES_cfb64_encrypt
0000000000018fd0 T hc_DES_ecb3_encrypt
00000000000188b0 T hc_DES_ecb_encrypt
0000000000019060 T hc_DES_ede3_cbc_encrypt
0000000000018c80 T hc_DES_pcbc_encrypt

What should be done in such a case, to make parallel installation of
openssl-devel-1.1 and heimdal-devel possible? I thought about adding
hc_ prefix to all heimdal man pages file names but maybe someone has
idea for better solution.
Jan Rękorajski
2018-08-21 20:09:14 UTC
Permalink
Post by Adam Osuchowski
File names of manual pages for functions in openssl 1.1 conflict with
file /usr/share/man/man3/DES_cbc_cksum.3 from install of openssl-devel-1.1.0h-1.x86_64 conflicts with file from package heimdal-devel-7.5.0-2.x86_64
file /usr/share/man/man3/DES_cfb64_encrypt.3 from install of openssl-devel-1.1.0h-1.x86_64 conflicts with file from package heimdal-devel-7.5.0-2.x86_64
file /usr/share/man/man3/DES_ecb3_encrypt.3 from install of openssl-devel-1.1.0h-1.x86_64 conflicts with file from package heimdal-devel-7.5.0-2.x86_64
file /usr/share/man/man3/DES_ecb_encrypt.3 from install of openssl-devel-1.1.0h-1.x86_64 conflicts with file from package heimdal-devel-7.5.0-2.x86_64
file /usr/share/man/man3/DES_ede3_cbc_encrypt.3 from install of openssl-devel-1.1.0h-1.x86_64 conflicts with file from package heimdal-devel-7.5.0-2.x86_64
file /usr/share/man/man3/DES_is_weak_key.3 from install of openssl-devel-1.1.0h-1.x86_64 conflicts with file from package heimdal-devel-7.5.0-2.x86_64
file /usr/share/man/man3/DES_key_sched.3 from install of openssl-devel-1.1.0h-1.x86_64 conflicts with file from package heimdal-devel-7.5.0-2.x86_64
file /usr/share/man/man3/DES_pcbc_encrypt.3 from install of openssl-devel-1.1.0h-1.x86_64 conflicts with file from package heimdal-devel-7.5.0-2.x86_64
file /usr/share/man/man3/DES_set_key.3 from install of openssl-devel-1.1.0h-1.x86_64 conflicts with file from package heimdal-devel-7.5.0-2.x86_64
file /usr/share/man/man3/DES_set_key_checked.3 from install of openssl-devel-1.1.0h-1.x86_64 conflicts with file from package heimdal-devel-7.5.0-2.x86_64
As it turns out, heimdal defines these functions with hc_ prefix and such
symbols exist in heimdal libraries, while names without hc_ prefix are made
$ grep '^#define DES_.*_encrypt' /usr/include/hcrypto/des.h
#define DES_cbc_encrypt hc_DES_cbc_encrypt
#define DES_cfb64_encrypt hc_DES_cfb64_encrypt
#define DES_ecb3_encrypt hc_DES_ecb3_encrypt
#define DES_ecb_encrypt hc_DES_ecb_encrypt
#define DES_ede3_cbc_encrypt hc_DES_ede3_cbc_encrypt
#define DES_encrypt hc_DES_encrypt
#define DES_pcbc_encrypt hc_DES_pcbc_encrypt
$ nm -D /lib64/libhcrypto.so.4 | grep 'DES_.*_encrypt'
0000000000018930 T hc_DES_cbc_encrypt
00000000000194b0 T hc_DES_cfb64_encrypt
0000000000018fd0 T hc_DES_ecb3_encrypt
00000000000188b0 T hc_DES_ecb_encrypt
0000000000019060 T hc_DES_ede3_cbc_encrypt
0000000000018c80 T hc_DES_pcbc_encrypt
What should be done in such a case, to make parallel installation of
openssl-devel-1.1 and heimdal-devel possible? I thought about adding
hc_ prefix to all heimdal man pages file names but maybe someone has
idea for better solution.
That is the right solution in this case.
I added that prefix for DES_* man pages in heimdal.
--
Jan Rękorajski | PLD/Linux
SysAdm | baggins<at>pld-linux.org | http://www.pld-linux.org/
Adam Osuchowski
2018-08-21 20:41:43 UTC
Permalink
Post by Jan Rękorajski
That is the right solution in this case.
I added that prefix for DES_* man pages in heimdal.
Ok, thanks, but this is not DES_* man pages issue only. I put them only
as example. I commited fix for others, too.

Loading...