<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>64829</bug_id>
          
          <creation_ts>2004-09-21 02:47 0000</creation_ts>
          <short_desc>emerge svgalib fails with ACCESS DENIED  open_wr:   /etc/ld.so.conf</short_desc>
          <delta_ts>2004-09-23 18:07:52 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Library</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>huwtjenkins@yahoo.co.uk</reporter>
          <assigned_to>vapier@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>huwtjenkins@yahoo.co.uk</who>
            <bug_when>2004-09-21 02:47:02 0000</bug_when>
            <thetext>When I emerge svgalib (tried both 1.9.19-r1 and 1.9.18) the install fails trying to write to /etc/ld.so.conf.

Reproducible: Always
Steps to Reproduce:
1. emerge svgalib


Actual Results:  
Installing shared library image as
/var/tmp/portage/svgalib-1.9.19-r1/image//usr/lib/libvga.so.1.9.19
/var/tmp/portage/svgalib-1.9.19-r1/image//usr/lib/libvgagl.so.1.9.19.
ACCESS DENIED  open_wr:   /etc/ld.so.conf
./fixldsoconf: line 6: /etc/ld.so.conf: Permission denied
make: *** [installsharedlib] Error 1

!!! ERROR: media-libs/svgalib-1.9.19-r1 failed.
!!! Function src_install, Line 103, Exitcode 2
!!! Failed to install svgalib!

--------------------------- ACCESS VIOLATION SUMMARY
---------------------------LOG FILE =
&quot;/tmp/sandbox-media-libs_-_svgalib-1.9.19-r1-30669.log&quot;

open_wr:   /etc/ld.so.conf
--------------------------------------------------------------------------------

Expected Results:  
installed svgalib

root@euphoria env.d # ls -l /etc/ld.so.conf
-rw-r--r--  1 root root 292 Sep 21 09:44 /etc/ld.so.conf

root@euphoria root # emerge info
Portage 2.0.50-r11 (default-x86-1.4, gcc-3.3.4, glibc-2.3.3.20040420-r1,
2.6.8-gentoo-r1)
=================================================================
System uname: 2.6.8-gentoo-r1 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-march=pentium3 -Os -frename-registers -ftracer -mieee-fp -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;&quot;
CONFIG_PROTECT=&quot;/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control&quot;CONFIG_PROTECT_MASK=&quot;/etc/gconf
/etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-march=pentium3 -Os -frename-registers -ftracer -mieee-fp -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache sandbox&quot;
GENTOO_MIRRORS=&quot;http://www.mirror.ac.uk/mirror/www.ibiblio.org/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
rsync://linux.rz.ruhr-uni-bochum.de/gentoo/
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
rsync://ftp.join.uni-muenster.de/gentoo/
http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;X acpi alsa avi berkdb bitmap-fonts crypt encode esd f77 foomaticdb gdbm
gif gnome gpm gtk gtk2 imlib jpeg libg++ libwww mad mikmod mmx motif mozcalendar
mozilla moznocompose moznoirc moznomail mpeg ncurses nls opengl pam pcmcia
pdflib perl png python quicktime readline sdl slang spell sse ssl svga tcltk
tcpd tetex tiff truetype wmf x86 xml2 xmms xprint xv zlib&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>huwtjenkins@yahoo.co.uk</who>
            <bug_when>2004-09-21 03:00:35 0000</bug_when>
            <thetext>this is the problem:

during the build process a shell script called fixldsoconf is executed

This is shown below:
#!/bin/sh
if grep -q /usr/local/lib /etc/ld.so.conf
 then
  echo &gt; /dev/null
 else
  echo /usr/local/lib &gt;&gt; /etc/ld.so.conf
 fi


I don&apos;t have  /usr/local/lib and so the build tries to add that line to /etc/ld.so.conf - hence the ACCESS violation. 

manually adding /usr/local/lib to /etc/ld.so.conf lets the emerge complete. 


</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2004-09-23 18:07:52 0000</bug_when>
            <thetext>you should have /usr/local/lib in your /etc/ld.so.conf since it comes from /etc/env.d/00basic which comes from baselayout ...

added a patch to cvs to remove fixldsoconf</thetext>
          </long_desc>
      
    </bug>

</bugzilla>