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

Bug 437000

Summary: dev-libs/openssl-1.0.1c installs broken symlinks in /usr/share/man/man1/
Product: Gentoo Linux Reporter: Francesco Turco <fturco>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED OBSOLETE    
Severity: normal CC: itumaykin+gentoo, rdalek1967, realnc, saint.snit, thanasis, yamadharma
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: "emerge --oneshot openssl" output
emerge --info

Description Francesco Turco 2012-10-02 18:10:14 UTC
On my system the following files are broken symlinks:

file /usr/share/man/man1/openssl-md5.1ssl /usr/share/man/man1/openssl-sha1.1ssl /usr/share/man/man1/openssl-sha.1ssl /usr/share/man/man1/openssl-ripemd160.1ssl /usr/share/man/man1/openssl-md2.1ssl
/usr/share/man/man1/openssl-md5.1ssl:       broken symbolic link to `ssl-md5.1ssl'
/usr/share/man/man1/openssl-sha1.1ssl:      broken symbolic link to `ssl-sha1.1ssl'
/usr/share/man/man1/openssl-sha.1ssl:       broken symbolic link to `ssl-sha.1ssl'
/usr/share/man/man1/openssl-ripemd160.1ssl: broken symbolic link to `ssl-ripemd160.1ssl'
/usr/share/man/man1/openssl-md2.1ssl:       broken symbolic link to `ssl-md2.1ssl'

If I delete them and then re-emerge dev-libs/openssl-1.0.1c, those files are re-created.

Reproducible: Always




emerge --info
Portage 2.1.11.23 (default/linux/amd64/10.0/no-multilib, gcc-4.6.3, glibc-2.15-r3, 3.5.4-gentoo x86_64)
=================================================================
System uname: Linux-3.5.4-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7250_@_2.00GHz-with-gentoo-2.2
Timestamp of tree: Tue, 02 Oct 2012 10:15:01 +0000
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.4
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 apache2 berkdb bluetooth bzip2 cdda cdparanoia cdr cli cracklib crypt cxx dbus dri dvd dvdr flac gdbm gnome gpm gstreamer gtk gtk3 iconv jpeg mmx modules mudflap nautilus ncurses networkmanager nptl ogg openmp pam pcre perl php png pppd pulseaudio python readline session sse sse2 sse3 ssl ssse3 tcpd tiff unicode usb vorbis vpx webm wifi zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 SpanKY gentoo-dev 2012-10-02 19:24:41 UTC
works fine for me.  all man pages should be compressed and yours aren't, so something is broken on your side.

$ cd /usr/share/man/man1
$ ls -l openssl-sha1.1ssl*
lrwxrwxrwx 1 root root 16 May 20 09:39 openssl-sha1.1ssl.xz -> ssl-sha1.1ssl.xz
$ ls -l ssl-sha1.1ssl.xz 
lrwxrwxrwx 1 root root 16 May 20 09:39 ssl-sha1.1ssl.xz -> ssl-dgst.1ssl.xz
$ ls -l ssl-dgst.1ssl.xz 
-rw-r--r-- 1 root root 3416 May 20 09:39 ssl-dgst.1ssl.xz
Comment 2 Francesco Turco 2012-10-02 21:14:34 UTC
Most openssl related man pages in /usr/share/man/man1 are valid symlinks to xz-compressed files (40 out of 45). Only those 5 man pages symlinks are broken.

Is there anything else I can do for investigating the cause of this problem?

Anyway, I forgot to post the output of emerge -pv openssl:

[ebuild   R    ] dev-libs/openssl-1.0.1c  USE="(sse2) zlib -bindist -gmp -kerberos -rfc3779 -static-libs {-test} -vanilla" 0 kB

This instead is the output of equery check --only-failures openssl:

!!! /usr/share/man/man1/openssl-md5.1ssl does not exist
!!! /usr/share/man/man1/openssl-sha1.1ssl does not exist
!!! /usr/share/man/man1/openssl-sha.1ssl does not exist
!!! /usr/share/man/man1/openssl-ripemd160.1ssl does not exist
!!! /usr/share/man/man1/openssl-md2.1ssl does not exist
!!! /etc/ssl/private/.keep_dev-libs_openssl-0 does not exist
* Checking dev-libs/openssl-1.0.1c ...
   1419 out of 1425 files passed
Comment 3 SpanKY gentoo-dev 2012-10-08 19:57:53 UTC
sounds like bug 437000.  you should post the *full* build log as an attachment.
Comment 4 Francesco Turco 2012-10-09 08:28:51 UTC
@SpanKY: This *is* bug 437000 :)
Comment 5 Francesco Turco 2012-10-09 08:31:02 UTC
Created attachment 326058 [details]
"emerge --oneshot openssl" output
Comment 6 SpanKY gentoo-dev 2012-10-09 18:53:54 UTC
(In reply to comment #4)

err, meant bug 437358
Comment 7 Francesco Turco 2012-10-09 20:33:21 UTC
I tried emerging openssl with PORTAGE_COMPRESS="" (that is, without xz compression) and now I have no broken symlinks. In particular I now have:

ls -l /usr/share/man/man1/openssl-{sha,md2,md5,sha1,sha,ripemd160,md2}.1ssl
lrwxrwxrwx 1 root root 12 Oct  9 22:28 /usr/share/man/man1/openssl-md2.1ssl -> ssl-md2.1ssl
lrwxrwxrwx 1 root root 12 Oct  9 22:28 /usr/share/man/man1/openssl-md2.1ssl -> ssl-md2.1ssl
lrwxrwxrwx 1 root root 12 Oct  9 22:28 /usr/share/man/man1/openssl-md5.1ssl -> ssl-md5.1ssl
lrwxrwxrwx 1 root root 18 Oct  9 22:28 /usr/share/man/man1/openssl-ripemd160.1ssl -> ssl-ripemd160.1ssl
lrwxrwxrwx 1 root root 13 Oct  9 22:28 /usr/share/man/man1/openssl-sha1.1ssl -> ssl-sha1.1ssl
lrwxrwxrwx 1 root root 12 Oct  9 22:28 /usr/share/man/man1/openssl-sha.1ssl -> ssl-sha.1ssl
lrwxrwxrwx 1 root root 12 Oct  9 22:28 /usr/share/man/man1/openssl-sha.1ssl -> ssl-sha.1ssl
Comment 8 Nikos Chantziaras 2012-12-10 04:22:56 UTC
Created attachment 331920 [details]
emerge --info

I confirm the problem. I don't have PORTAGE_COMPRESS set explicitly in my make.conf, which means I use the default value of "bzip2". I get the same broken symlinks.

When I set PORTAGE_COMPRESS to an empty value instead, there are no broken symlinks.
Comment 9 Nikos Chantziaras 2012-12-10 04:33:22 UTC
Btw, I did rebuild bash as indicated by bug 437358, but it doesn't help.
Comment 10 Dale 2012-12-10 05:38:17 UTC
I have the same output here.  I'm amd64, some stable, some not.  I'm on dev-libs/openssl-1.0.0j tho.  Let me know if I can post any info to help with this.
Comment 11 thanasis 2012-12-10 07:20:37 UTC
Same here: 
dev-libs/openssl-0.9.8x
dev-libs/openssl-1.0.0j
dev-python/pyopenssl-0.12

# find /usr/share/man/ -type l ! -exec test -r {} \; -print 
/usr/share/man/man1/openssl-md2.1ssl
/usr/share/man/man1/openssl-ripemd160.1ssl
/usr/share/man/man1/openssl-sha1.1ssl
/usr/share/man/man1/openssl-md4.1ssl
/usr/share/man/man1/openssl-sha.1ssl
/usr/share/man/man1/openssl-mdc2.1ssl
/usr/share/man/man1/gimp-console.1
/usr/share/man/man1/openssl-md5.1ssl
/usr/share/man/man3/openssl-SSL.3ssl
Comment 12 Klaus Kusche 2013-02-09 12:25:18 UTC
Me, too:

symlinks -crst /
dangling: /usr/share/man/man1/openssl-ripemd160.1ssl -> ssl-ripemd160.1ssl
dangling: /usr/share/man/man1/openssl-sha.1ssl -> ssl-sha.1ssl
dangling: /usr/share/man/man1/openssl-mdc2.1ssl -> ssl-mdc2.1ssl
dangling: /usr/share/man/man1/openssl-md4.1ssl -> ssl-md4.1ssl
dangling: /usr/share/man/man1/openssl-md2.1ssl -> ssl-md2.1ssl
dangling: /usr/share/man/man1/openssl-md5.1ssl -> ssl-md5.1ssl
dangling: /usr/share/man/man1/openssl-sha1.1ssl -> ssl-sha1.1ssl
dangling: /usr/share/man/man3/openssl-SSL.3ssl -> ssl-SSL.3ssl

The correct link targets exist, but with a .bz2 extension.
Comment 13 Klaus Kusche 2013-02-24 10:47:03 UTC
Status?
Comment 14 Klaus Kusche 2013-02-24 10:47:46 UTC
Bug still present with openssl-1.0.1e.
Comment 15 Ilya Gordeev 2013-05-01 17:41:44 UTC
Building dev-libs/openssl-1.0.1e-r1 I got this message:

QA: preinst
QA Notice: Symbolic link /usr/share/man/man1/openssl-ripemd160.1ssl points to /usr/share/man/man1/ssl-ripemd160.1ssl which does not exist.
QA Notice: Symbolic link /usr/share/man/man1/openssl-mdc2.1ssl points to /usr/share/man/man1/ssl-mdc2.1ssl which does not exist.
QA Notice: Symbolic link /usr/share/man/man1/openssl-sha.1ssl points to /usr/share/man/man1/ssl-sha.1ssl which does not exist.
QA Notice: Symbolic link /usr/share/man/man1/openssl-sha1.1ssl points to /usr/share/man/man1/ssl-sha1.1ssl which does not exist.
QA Notice: Symbolic link /usr/share/man/man1/openssl-md2.1ssl points to /usr/share/man/man1/ssl-md2.1ssl which does not exist.
QA Notice: Symbolic link /usr/share/man/man1/openssl-md4.1ssl points to /usr/share/man/man1/ssl-md4.1ssl which does not exist.
QA Notice: Symbolic link /usr/share/man/man1/openssl-md5.1ssl points to /usr/share/man/man1/ssl-md5.1ssl which does not exist.
QA Notice: Symbolic link /usr/share/man/man3/openssl-SSL.3ssl points to /usr/share/man/man3/ssl-SSL.3ssl which does not exist.
Comment 16 Coacher 2013-05-21 19:38:12 UTC
Similar problems on three different Gentoo amd64 machines: 2 regular and 1 hardened. They all have dev-libs/openssl-1.0.1c installed. The list of broken symlinks varies from one machine to another.

1st machine (with hardened profile):

/usr/share/man/man1/openssl-md2.1ssl -> ssl-md2.1ssl
/usr/share/man/man1/openssl-md4.1ssl -> ssl-md4.1ssl
/usr/share/man/man1/openssl-mdc2.1ssl -> ssl-mdc2.1ssl
/usr/share/man/man1/openssl-sha.1ssl -> ssl-sha.1ssl


2nd machine (desktop profile):

/usr/share/man/man1/openssl-md5.1ssl -> ssl-md5.1ssl
/usr/share/man/man1/openssl-ripemd160.1ssl -> ssl-ripemd160.1ssl


3rd machine (desktop profile):

/usr/share/man/man1/openssl-md2.1ssl -> ssl-md2.1ssl
/usr/share/man/man1/openssl-ripemd160.1ssl -> ssl-ripemd160.1ssl
/usr/share/man/man1/openssl-sha1.1ssl -> ssl-sha1.1ssl
/usr/share/man/man1/openssl-sha.1ssl -> ssl-sha.1ssl
Comment 17 Dave Kemper 2013-05-25 19:46:29 UTC
I also hit this bug:

>>> Messages generated by process 20297 on 2013-05-24 12:25:09 CDT for package dev-libs/openssl-1.0.1c:

QA: preinst
QA Notice: Symbolic link /usr/share/man/man1/openssl-ripemd160.1ssl points to /usr/share/man/man1/ssl-ripemd160.1ssl which does not exist.
QA Notice: Symbolic link /usr/share/man/man1/openssl-mdc2.1ssl points to /usr/share/man/man1/ssl-mdc2.1ssl which does not exist.
QA Notice: Symbolic link /usr/share/man/man1/openssl-md2.1ssl points to /usr/share/man/man1/ssl-md2.1ssl which does not exist.
QA Notice: Symbolic link /usr/share/man/man1/openssl-md4.1ssl points to /usr/share/man/man1/ssl-md4.1ssl which does not exist.
QA Notice: Symbolic link /usr/share/man/man1/openssl-sha1.1ssl points to /usr/share/man/man1/ssl-sha1.1ssl which does not exist.
QA Notice: Symbolic link /usr/share/man/man3/openssl-SSL.3ssl points to /usr/share/man/man3/ssl-SSL.3ssl which does not exist.

and also confirm that the workaround described in comment 7 fixes it.
Comment 18 Francesco Turco 2014-08-02 12:53:29 UTC
I'm now using dev-libs/openssl-1.0.1h-r3, and all /usr/share/man1/openssl* symlinks are OK. Still using XZ compression. Can you confirm this?
Comment 19 Dave Kemper 2015-01-04 02:01:12 UTC
I can confirm that under x86 with PORTAGE_COMPRESS unspecified in /etc/make.conf, openssl-1.0.1j leaves no broken links under /usr/share/man.  (That is,

find /usr/share/man/ -type l ! -exec test -r {} \; -print

produces no output.)
Comment 20 Francesco Turco 2020-01-03 14:37:13 UTC
I guess I can close this bug since all openssl versions mentioned here are no longer in the official gentoo repository. Please reopen if needed.