Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267691 - sci-libs/{c,}blas-reference leaves dangling symlinks around after uninstall
Summary: sci-libs/{c,}blas-reference leaves dangling symlinks around after uninstall
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-27 20:01 UTC by Edgardo Rossetto
Modified: 2019-06-25 10:58 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Edgardo Rossetto 2009-04-27 20:01:48 UTC
Monodevelop seems to depend on cblas, w/o cblas installed

WARNING: Cannot find Mozilla directory containing libgtkembedmoz.so. Some Addins may not be able to function. Please set MOZILLA_FIVE_HOME to your Mozilla directory.
ERROR [2009-04-27 16:23:15Z]: Could not parse file '/usr/lib/pkgconfig/cblas.pc'
System.IO.FileNotFoundException: Could not find file "/usr/lib/pkgconfig/cblas.pc"
File name: '/usr/lib/pkgconfig/cblas.pc'
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] 
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.File.OpenRead (System.String path) [0x00000] 
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) [0x00000] 
  at System.IO.StreamReader..ctor (System.String path) [0x00000] 
  at (wrapper remoting-invoke-with-check) System.IO.StreamReader:.ctor (string)
  at MonoDevelop.Core.SystemAssemblyService.ParsePCFile (System.String pcfile) [0x00000] 
  at MonoDevelop.Core.SystemAssemblyService.RunInitialization () [0x00000] 
ERROR [2009-04-27 16:23:15Z]: Could not parse file '/usr/lib64/pkgconfig/cblas.pc'
System.IO.FileNotFoundException: Could not find file "/usr/lib64/pkgconfig/cblas.pc"
File name: '/usr/lib64/pkgconfig/cblas.pc'
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] 
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.File.OpenRead (System.String path) [0x00000] 
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) [0x00000] 
  at System.IO.StreamReader..ctor (System.String path) [0x00000] 
  at (wrapper remoting-invoke-with-check) System.IO.StreamReader:.ctor (string)
  at MonoDevelop.Core.SystemAssemblyService.ParsePCFile (System.String pcfile) [0x00000] 
  at MonoDevelop.Core.SystemAssemblyService.RunInitialization () [0x00000] 
node `classlib-gnome' is not defined on the documentation map

monodevelop completely crashed the first time, though after a few retries it started (with that error)

emerging cblas fixed the problem

Reproducible: Always

Steps to Reproduce:
1. Launch monodevelop from console
2. See the error(s)

Actual Results:  
monodevelop complains about missing file / crashes

Expected Results:  
No errors

Portage 2.1.6.11 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-gentoo-2.0.0
Timestamp of tree: Mon, 27 Apr 2009 18:00:01 +0000
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.6.2
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.localhost.net.ar/ "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/x11 /usr/local/portage/layman/THE /usr/local/portage/layman/vmware /usr/local/portage/layman/gnome /usr/local/portage/erossetto"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth bzip2 cairo cdda cddb cdr cleartype cli consolekit cracklib crypt cups curl dbus directfb dri dvd dvdr encode exif fbcon ffmpeg flac fontconfig fortran gdbm gif gnome gnome-keyring gnutls gpm gstreamer gtk hal iconv isdnlog jpeg jpeg2k kde lcms libnotify lm_sensors midi mmx mng mono mp3 mudflap multilib mysql ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pcre perl png policykit pppd python qt quicktime raw readline reflection ruby sdl session spl sqlite sse sse2 ssl ssse3 startup-notification svg sysfs tcl tcpd tiff tk truetype unicode usb vdpau vim-syntax vorbis webkit x264 xcb xml xmp xorg xpm xscreensaver xv xvid xvmc zlib" ALSA_CARDS="hda-intel" 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 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" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2009-04-28 20:22:57 UTC
Could you post the output of:
ls -la /usr/lib/pkgconfig/*blas*
Comment 2 Edgardo Rossetto 2009-04-28 20:57:41 UTC
lrwxrwxrwx 1 root root 25 2009-04-27 16:27 /usr/lib/pkgconfig/blas.pc -> ../blas/reference/blas.pc
lrwxrwxrwx 1 root root 26 2009-04-27 16:28 /usr/lib/pkgconfig/cblas.pc -> ../blas/reference/cblas.pc
Comment 3 Peter Alfredsen (RETIRED) gentoo-dev 2009-04-28 21:24:43 UTC
Yes, I can reproduce.
emerge -C sci-libs/{c,}blas-reference
find -L /usr/lib/ -type l '(' -name '*blas*' -o -name '*pack*' ')'
Should then give you all the dangling symlinks that should be deleted.

I could not make monodevelop crash with this problem, though.

sci: Could some sort of pkg_postrm be inserted into these ebuilds which ensures these dangling symlinks aren't left around?
Comment 4 Larry the Git Cow gentoo-dev 2019-06-25 10:58:39 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=111f0de1c6a774430837161b1bca64747bb0b58c

commit 111f0de1c6a774430837161b1bca64747bb0b58c
Author:     Mo Zhou <cdluminate@gmail.com>
AuthorDate: 2019-06-25 09:05:15 +0000
Commit:     Benda Xu <heroxbd@gentoo.org>
CommitDate: 2019-06-25 10:57:59 +0000

    app-eselect/eselect-{blas,lapack}: new design for BLAS/LAPACK switch.
    
      As discussed in the gentoo-dev, it is decided to adopt the runtime
      switching of BLAS/CBLAS that has been proved by the experience of
      Debian.  The Gentoo libgcc-style ld.so.conf runtime switching has
      been adopted as well, so as to avoid changing symlinks in /usr
      ignoring package manager.
    
      This design solves all the remaining problems regarding BLAS/LAPACK,
      thus making alternative-2.eclass (runtime switching of build
      options) and proposed USE_EXPAND (PYTHON_TARGET like eclass)
      obsolete.
    
      Finally we are at it.  Thanks to all for years of ideas, debates and
      hard work.
    
    Reference: https://archives.gentoo.org/gentoo-dev/message/0177fea10e3ee06d85713101d17fc8d6
    
    Closes: https://bugs.gentoo.org/632624
    Closes: https://bugs.gentoo.org/470908
    Closes: https://bugs.gentoo.org/267691
    Closes: https://github.com/gentoo/gentoo/pull/12316
    Closes: https://github.com/gentoo/gentoo/pull/12318
    Closes: https://github.com/gentoo/sci/pull/835
    Closes: https://github.com/gentoo/sci/pull/837
    
    Credit: Dominik Schmidt, TheChymera, kiwifb, lkraav, Alessandro-Barbieri
    Signed-off-by: Mo Zhou <cdluminate@gmail.com>
    Signed-off-by: Benda Xu <heroxbd@gentoo.org>

 app-eselect/eselect-blas/eselect-blas-0.2.ebuild   |  28 ++++
 app-eselect/eselect-blas/files/blas.eselect-0.2    | 168 +++++++++++++++++++++
 app-eselect/eselect-blas/files/blas.eselect.5      |  34 +++--
 .../eselect-lapack/eselect-lapack-0.2.ebuild       |  27 ++++
 .../eselect-lapack/files/lapack.eselect-0.2        | 167 ++++++++++++++++++++
 app-eselect/eselect-lapack/files/lapack.eselect.5  |  26 +++-
 6 files changed, 434 insertions(+), 16 deletions(-)