Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 546142 - dev-libs/mozldap-6.0.7 screws up installing its own headers, making dev-perl/perl-mozldap fail to build
Summary: dev-libs/mozldap-6.0.7 screws up installing its own headers, making dev-perl/...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-10 09:16 UTC by Mads
Modified: 2017-08-14 20:01 UTC (History)
0 users

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


Attachments
Patch for mozldap-6.0.7.ebuild fixing symlink issue (mozldap-6.0.7.ebuild.patch,859 bytes, patch)
2015-04-10 09:57 UTC, Mads
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mads 2015-04-10 09:16:36 UTC
mozldap-6.0.7 installs dangling symlinks into /usr/include/mozldap instead of the actual header files. This makes dev-perl/perl-mozldap-1.5.2 fail to build, complaining about missing <ldap_ssl.h>

Pasted from mozldap-6.0.7 install and merge phase:

>>> Installing (4 of 4) dev-libs/mozldap-6.0.7::gentoo
 * Removing /usr/share/bash-completion
 * Removing /etc/runlevels
 * Removing /etc/conf.d
 * Removing /etc/init.d
 * checking 55 files for package collisions
>>> Merging dev-libs/mozldap-6.0.7 to /
--- /etc/
--- /etc/env.d/
>>> /etc/env.d/08mozldap
--- /usr/
--- /usr/share/
>>> /usr/share/mozldap/
--- /usr/include/
>>> /usr/include/mozldap/
>>> /usr/include/mozldap/ldap-standard.h
--- /usr/bin/
--- /usr/lib64/
--- /usr/lib64/pkgconfig/
>>> /usr/lib64/pkgconfig/mozldap.pc
>>> /usr/lib64/mozldap/
>>> /usr/lib64/mozldap/ldapmodify
>>> /usr/lib64/mozldap/ldapsearch
>>> /usr/lib64/mozldap/ldappasswd
>>> /usr/lib64/mozldap/ldapdelete
>>> /usr/lib64/mozldap/ldapcompare
>>> /usr/lib64/mozldap/libldap60.a
>>> /usr/lib64/mozldap/ldapcmp
>>> /usr/lib64/mozldap/libssldap60.so.6.0
>>> /usr/lib64/mozldap/libldif60.so.6.0
>>> /usr/lib64/mozldap/libldif60.a
>>> /usr/lib64/mozldap/libiutil60.a
>>> /usr/lib64/mozldap/libldap60.so.6.0
>>> /usr/lib64/mozldap/libprldap60.so.6.0
>>> /usr/lib64/mozldap/liblber60.a
>>> /usr/lib64/mozldap/libssldap60.so.6 -> libssldap60.so.6.0
>>> /usr/lib64/mozldap/libssldap60.so -> libssldap60.so.6.0
>>> /usr/lib64/mozldap/libprldap60.so.6 -> libprldap60.so.6.0
>>> /usr/lib64/mozldap/libprldap60.so -> libprldap60.so.6.0
>>> /usr/lib64/mozldap/libldif60.so.6 -> libldif60.so.6.0
>>> /usr/lib64/mozldap/libldif60.so -> libldif60.so.6.0
>>> /usr/lib64/mozldap/libldap60.so.6 -> libldap60.so.6.0
>>> /usr/lib64/mozldap/libldap60.so -> libldap60.so.6.0
>>> /usr/lib64/mozldap/liblber60.so.6.0 -> libldap60.so
>>> /usr/lib64/mozldap/liblber60.so -> liblber60.so.6.0
>>> /usr/lib64/mozldap/liblber60.so.6 -> liblber60.so.6.0
>>> /usr/bin/mozldapcmp -> /usr/lib64/mozldap/ldapcmp
>>> /usr/bin/389-ldapcmp -> /usr/lib64/mozldap/ldapcmp
>>> /usr/bin/mozldapcompare -> /usr/lib64/mozldap/ldapcompare
>>> /usr/bin/389-ldapcompare -> /usr/lib64/mozldap/ldapcompare
>>> /usr/bin/mozldapdelete -> /usr/lib64/mozldap/ldapdelete
>>> /usr/bin/389-ldapdelete -> /usr/lib64/mozldap/ldapdelete
>>> /usr/bin/mozldapmodify -> /usr/lib64/mozldap/ldapmodify
>>> /usr/bin/389-ldapmodify -> /usr/lib64/mozldap/ldapmodify
>>> /usr/bin/mozldappasswd -> /usr/lib64/mozldap/ldappasswd
>>> /usr/bin/389-ldappasswd -> /usr/lib64/mozldap/ldappasswd
>>> /usr/bin/mozldapsearch -> /usr/lib64/mozldap/ldapsearch
>>> /usr/bin/389-ldapsearch -> /usr/lib64/mozldap/ldapsearch
 * QA Notice: Symbolic link /usr/include/mozldap/disptmpl.h points to /mozldap-6.0.7/c-sdk/ldap/include/disptmpl.h which does not exist.
>>> /usr/include/mozldap/disptmpl.h -> ../../../mozldap-6.0.7/c-sdk/ldap/include/./disptmpl.h
 * QA Notice: Symbolic link /usr/include/mozldap/iutil.h points to /mozldap-6.0.7/c-sdk/ldap/include/iutil.h which does not exist.
>>> /usr/include/mozldap/iutil.h -> ../../../mozldap-6.0.7/c-sdk/ldap/include/./iutil.h
 * QA Notice: Symbolic link /usr/include/mozldap/lber.h points to /mozldap-6.0.7/c-sdk/ldap/include/lber.h which does not exist.
>>> /usr/include/mozldap/lber.h -> ../../../mozldap-6.0.7/c-sdk/ldap/include/./lber.h
 * QA Notice: Symbolic link /usr/include/mozldap/ldap-deprecated.h points to /mozldap-6.0.7/c-sdk/ldap/include/ldap-deprecated.h which does not exist.
>>> /usr/include/mozldap/ldap-deprecated.h -> ../../../mozldap-6.0.7/c-sdk/ldap/include/./ldap-deprecated.h
 * QA Notice: Symbolic link /usr/include/mozldap/ldap-extension.h points to /mozldap-6.0.7/c-sdk/ldap/include/ldap-extension.h which does not exist.
>>> /usr/include/mozldap/ldap-extension.h -> ../../../mozldap-6.0.7/c-sdk/ldap/include/./ldap-extension.h
 * QA Notice: Symbolic link /usr/include/mozldap/ldap.h points to /mozldap-6.0.7/c-sdk/ldap/include/ldap.h which does not exist.
>>> /usr/include/mozldap/ldap.h -> ../../../mozldap-6.0.7/c-sdk/ldap/include/./ldap.h
 * QA Notice: Symbolic link /usr/include/mozldap/ldap-platform.h points to /mozldap-6.0.7/c-sdk/ldap/include/ldap-platform.h which does not exist.
>>> /usr/include/mozldap/ldap-platform.h -> ../../../mozldap-6.0.7/c-sdk/ldap/include/./ldap-platform.h
 * QA Notice: Symbolic link /usr/include/mozldap/ldappr.h points to /mozldap-6.0.7/c-sdk/ldap/include/ldappr.h which does not exist.
>>> /usr/include/mozldap/ldappr.h -> ../../../mozldap-6.0.7/c-sdk/ldap/include/./ldappr.h
 * QA Notice: Symbolic link /usr/include/mozldap/ldap_ssl.h points to /mozldap-6.0.7/c-sdk/ldap/include/ldap_ssl.h which does not exist.
>>> /usr/include/mozldap/ldap_ssl.h -> ../../../mozldap-6.0.7/c-sdk/ldap/include/./ldap_ssl.h
 * QA Notice: Symbolic link /usr/include/mozldap/ldap-to-be-deprecated.h points to /mozldap-6.0.7/c-sdk/ldap/include/ldap-to-be-deprecated.h which does not exist.
>>> /usr/include/mozldap/ldap-to-be-deprecated.h -> ../../../mozldap-6.0.7/c-sdk/ldap/include/./ldap-to-be-deprecated.h
 * QA Notice: Symbolic link /usr/include/mozldap/ldif.h points to /mozldap-6.0.7/c-sdk/ldap/include/ldif.h which does not exist.
>>> /usr/include/mozldap/ldif.h -> ../../../mozldap-6.0.7/c-sdk/ldap/include/./ldif.h
 * QA Notice: Symbolic link /usr/include/mozldap/srchpref.h points to /mozldap-6.0.7/c-sdk/ldap/include/srchpref.h which does not exist.
>>> /usr/include/mozldap/srchpref.h -> ../../../mozldap-6.0.7/c-sdk/ldap/include/./srchpref.h
 * QA Notice: Symbolic link /usr/share/mozldap/ldapfilter.conf points to /usr/mozldap-6.0.7/c-sdk/ldap/libraries/libldap/ldapfilter.conf which does not exist.
>>> /usr/share/mozldap/ldapfilter.conf -> ../../mozldap-6.0.7/c-sdk/ldap/libraries/libldap/./ldapfilter.conf
 * QA Notice: Symbolic link /usr/share/mozldap/ldapsearchprefs.conf points to /usr/mozldap-6.0.7/c-sdk/ldap/libraries/libldap/ldapsearchprefs.conf which does not exist.
>>> /usr/share/mozldap/ldapsearchprefs.conf -> ../../mozldap-6.0.7/c-sdk/ldap/libraries/libldap/./ldapsearchprefs.conf
 * QA Notice: Symbolic link /usr/share/mozldap/ldaptemplates.conf points to /usr/mozldap-6.0.7/c-sdk/ldap/libraries/libldap/ldaptemplates.conf which does not exist.
>>> /usr/share/mozldap/ldaptemplates.conf -> ../../mozldap-6.0.7/c-sdk/ldap/libraries/libldap/./ldaptemplates.conf
>>> dev-libs/mozldap-6.0.7 merged.
>>> Regenerating /etc/ld.so.cache.

As you can see, there's lot of "../../mozldap-6.0.7/c-sdk/ldap/libraries/libldap/./" symlinks instead of the actual files. Maybe there should be a "cp -L" somewhere instead of just "cp"...

Reproducible: Always

Steps to Reproduce:
1. emerge -av dev-libs/mozldap
2. Try to use one if its headers
Comment 1 Mads 2015-04-10 09:17:51 UTC
# emerge --info
Portage 2.2.17 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.9.2, glibc-2.20-r1, 3.18.4-gentoo x86_64)
=================================================================
System uname: Linux-3.18.4-gentoo-x86_64-Intel-R-_Core-TM-_i5-4200U_CPU_@_1.60GHz-with-gentoo-2.2
KiB Mem:     8089584 total,   4850520 free
KiB Swap:     524284 total,    524284 free
Timestamp of repository gentoo: Thu, 09 Apr 2015 09:15:01 +0000
sh bash 4.3_p33-r1
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33-r1::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.1-r4::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.4.2::gentoo
dev-util/cmake:           3.1.0::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.5::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo/gentoo-portage-rsync-mirror
    priority: -1000

fol4
    location: /var/lib/layman/fol4
    sync-type: laymansync
    sync-uri: git://github.com/madsl/fol4.git
    masters: gentoo
    priority: 50

gamerlay
    location: /var/lib/layman/gamerlay
    sync-type: laymansync
    sync-uri: git://git.overlays.gentoo.org/proj/gamerlay.git
    masters: gentoo
    priority: 50

gnome
    location: /var/lib/layman/gnome
    sync-type: laymansync
    sync-uri: git://git.overlays.gentoo.org/proj/gnome.git
    masters: gentoo
    priority: 50

x11
    location: /var/lib/layman/x11
    sync-type: laymansync
    sync-uri: git://git.overlays.gentoo.org/proj/x11
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE AdobeFlash-11.x google-chrome skype-4.0.0.7-copyright"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org/"
INSTALL_MASK="     /usr/share/bash-completion     /etc/runlevels     /etc/conf.d     /etc/init.d     "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi aes aes-ni alsa amd64 avx avx2 branding bzip2 c++0x cairo caps cli cracklib crypt cups cxx dbus dri dts dvdr eds emboss encode evo exif fam ffmpeg firefox flac fma3 fortran gif glamor gnome gnome-keyring gstreamer gtk gtk3 gtkstyle hidpi hvm iconv icu idn introspection jpeg lcms libnotify libsecret lto lzma mad mmx mmxext mng modules mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit popcnt ppds pulseaudio qt3support readline sdl session sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd threads tiff truetype udev udisks unicode upower usb vaapi vdpau vorbis wxwidgets x264 xattr xcb xinerama xml xv xvid xvmc zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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 ublox 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" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="net pixma" USERLAND="GNU" VIDEO_CARDS="i965 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"
USE_PYTHON="2.7 3.4"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Mads 2015-04-10 09:19:52 UTC
I see this has been reported before:

https://bugs.gentoo.org/show_bug.cgi?id=463670
Comment 3 Mads 2015-04-10 09:57:00 UTC
Created attachment 400948 [details, diff]
Patch for mozldap-6.0.7.ebuild fixing symlink issue

Here's a patch copying files with cp -L instead of doins, which fixes the problem.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-08-14 20:01:08 UTC
commit ecb066d0fd24aedafce645503d6ea8016419672b
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: Mon Aug 14 21:57:47 2017
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: Mon Aug 14 22:00:17 2017

    dev-libs/mozldap: Remove last-rited pkg, #592992