manual pages file names conflict in openssl 1.1 and heimdal 7.5

Adam Osuchowski adwol at zonk.pl
Tue Aug 21 15:23:02 CEST 2018


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.


More information about the pld-devel-en mailing list