Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106249 - graphviz-2.4 writes in /usr/lib64
Summary: graphviz-2.4 writes in /usr/lib64
Status: RESOLVED DUPLICATE of bug 101337
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-17 02:15 UTC by Simone Piunno
Modified: 2005-09-17 02:54 UTC (History)
0 users

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 Simone Piunno 2005-09-17 02:15:50 UTC
graphviz 2.4 has a configuration file in /usr/lib64/graphviz/config

this could be a minor problem, but graphviz tries to create a default config
when that file is missing, so even when you're not running as root, it tries to
open wr that file (generating an error).   Of course a newly emerged graphviz
misses the config and tries to create it at every run until you do it as root.

to make it even worse, many ebuilds use graphviz to build the package
documentation (notable example is kde*) and they fail to emerge because of
access violation under sandbox.

Suggested steps:
1. graphviz should emerge a default config file as well
2. graphviz should be patched to have the config file under /etc
3. graphviz should be patched to never try to autocreate the config file in a
system-wide directory, maybe it could try to create it in $HOME/.graphviz




Reproducible: Always
Steps to Reproduce:
1. emerge graphviz-24
2. execute dot -V as normal user:

pioppo@roentgen ~ $ dot -V
Error: failed to open /usr/lib64/graphviz/config for write.
dot version 2.4 (Sun Sep 11 15:32:18 UTC 2005)

3. after doing it as root, the error disappears:
roentgen ~ # dot -V
dot version 2.4 (Sun Sep 11 15:32:18 UTC 2005)
roentgen ~ # logout
pioppo@roentgen ~ $ dot -V
dot version 2.4 (Sun Sep 11 15:32:18 UTC 2005)

and we have a default config:
pioppo@roentgen ~ $ cat /usr/lib64/graphviz/config
libgvplugin_neato_layout.so.0 neato_layout {
        layout {
                neato 0
                fdp 0
                twopi 0
                circo 0
        }
}
libgvplugin_usershape_gd.so.0 usershape_gd {
        usershape {
                png-gd 0
        }
}
libgvplugin_dot_layout.so.0 dot_layout {
        layout {
                dot 0
        }
}

Actual Results:  
pioppo@roentgen ~ $ dot -V
Error: failed to open /usr/lib64/graphviz/config for write.
dot version 2.4 (Sun Sep 11 15:32:18 UTC 2005)

ebuilds fail to emerge cause they get access denied when using dot to create
documentation


Portage 2.0.52-r1 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1,
2.6.13-gentoo x86_64)
=================================================================
System uname: 2.6.13-gentoo x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.0_pre8
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5-r1, 2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=k8 -funit-at-a-time -frename-registers -fweb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -pipe -march=k8 -funit-at-a-time -frename-registers -fweb"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks fixpackages parallel-fetch sandbox sfperms
strict"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LINGUAS="en it"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 3dnowex X a52 aalib acl acpi adns alsa apache2 app-crypt/gnupg:idea
app-crypt/gpgme:smime arts artswrappersuid audiofile avi bash-completion berkdb
bidi bigger-fonts bitmap-fonts bootsplash caps cdda cddb cdio cdparanoia cdr
cluster crypt cups curl dba dev-dotnet/mono:nptl dev-util/eric:idl directfb doc
dts dv dvd dvdr dvdread eds emboss encode esd faad fam fbcon ffmpeg flac
foomaticdb fortran fpx freetype gcj gd gdbm gdm gif gimpprint gnome gnutls
gphoto2 gpm graphviz gstreamer gtk gtk2 guile hal httpd icq imagemagick imap
imlib innodb ipv6 ithreads jabber jack java jbig jpeg jpeg2k junit kde
kde-base/kdeadmin:foreign-package kde-base/kdeadmin:foreign-sysvinit
kde-base/kdemultimedia:cdparanoia ladcca lcms ldap libcaca libwww live lzo lzw
lzw-tiff mad maildir makecheck media-sound/museseq:fluidsynth mikmod motif
mozilla mp3 mpeg mysql ncurses net-misc/openssh:X509 net-misc/openssh:chroot
net-misc/openssh:sftplogging net-misc/openssh:skey net-www/apache:threads
net-www/mozilla-firefox:xprint net-www/mozilla:mozp3p net-www/mozilla:mozsvg
network nls nptl nptlonly nsl nvidia ogg oggvorbis openexr opengl oss pam pcre
pdflib perl png python qt quicktime readline rrdtool rtc samba sasl sdl slang
speex spell ssl stream svg sys-devel/libperl:threads tcltk tcpd tetex tga theora
threads tiff truetype truetype-fonts type1-fonts unicode usb userlocales utf8
vcd vim-with-x vorbis wmf xine xml xml2 xmms xpm xprint xv xvid xvmc zeo zlib
linguas_en linguas_it userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-09-17 02:54:34 UTC

*** This bug has been marked as a duplicate of 101337 ***