pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/43995: security/gnutls failed to compile with error "-lreadline not found", though it was installed



The following reply was made to PR pkg/43995; it has been noted by GNATS.

From: "Volkmar Seifert" <vs%nifelheim.info@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/43995: security/gnutls failed to compile with error
 "-lreadline not found", though it was installed
Date: Tue, 2 Nov 2010 14:12:28 +0100

 >  On Tue, 02 Nov 2010 16:40:04 +0900, Volkmar Seifert 
 > <vs%nifelheim.info@localhost>
 > wrote:
 >
 >  >  The only content of .work.log is 26 times these two lines:
 >  > [*] /home/pkgwork/security/gnutls/work/.tools/bin/true
 >  >  <.> true
 >  > That's all. No matter whether there's my patch applied to the Makefile,
 > or
 >  >  not.
 >
 >  Please remove PATH setting in your .shrc, or add your settings after
 > existent variables,
 >  like PATH=${PATH}:/some/whare, or move it to .profile.
 >  Without it, more issues will come up with various packages (like your
 > PR#43999).
 >
 
 My PATH-setting in /etc/shrc looked like
 
 uid=`id -u`
 
PATH=/usr/local/bin:/usr/pkg/bin:/usr/bin:/bin:/usr/games:/usr/X11R7/bin:/usr/X11R6/bin
 if [ "${uid}" -eq 0 ]; then
   
PATH=/usr/local/sbin:/usr/pkg/sbin:/usr/sbin:/sbin:/usr/X11R7/sbin:/usr/X11R6/sbin:$PATH
 fi
 export PATH
 
 (PATH= always a single line)
 
 And it's usually the only place where PATH is set. .profile etc drag this
 file in.
 
 I have changed this to the following now:
 
 uid=`id -u`
 
PATH=${PATH}:/usr/local/bin:/usr/pkg/bin:/usr/bin:/bin:/usr/games:/usr/X11R7/bin:/usr/X11R6/bin
 if [ "${uid}" -eq 0 ]; then
   
PATH=${PATH}:/usr/local/sbin:/usr/pkg/sbin:/usr/sbin:/sbin:/usr/X11R7/sbin:/usr/X11R6/sbin
 fi
 export PATH
 
 Which results in the following:
 
 # echo $PATH
 
/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R7/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/usr/local/bin:/usr/pkg/bin:/usr/bin:/bin:/usr/games:/usr/X11R7/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/pkg/sbin:/usr/sbin:/sbin:/usr/X11R7/sbin:/usr/X11R6/sbin
 
 and
 
 # sh -c 'echo $PATH'
 
/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R7/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/usr/local/bin:/usr/pkg/bin:/usr/bin:/bin:/usr/games:/usr/X11R7/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/pkg/sbin:/usr/sbin:/sbin:/usr/X11R7/sbin:/usr/X11R6/sbin:/usr/local/bin:/usr/pkg/bin:/usr/bin:/bin:/usr/games:/usr/X11R7/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/pkg/sbin:/usr/sbin:/sbin:/usr/X11R7/sbin:/usr/X11R6/sbin
 
 Quite redundant atm, but that should not really pose a problem.
 
 Furthermore, /etc/shrc ends with the following lines:
 
 
 if [ -f "$HOME/.shrc" ] ; then
   ENV=$HOME/.shrc
 else
   ENV=/etc/shrc
 fi
 
 and ~/.shrc is the default .shrc:
 
 #       $NetBSD: dot.shrc,v 1.8 2007/11/24 11:14:41 pavel Exp $
 
 if [ -f /etc/shrc ]; then
         . /etc/shrc
 fi
 
 hup(){ (read pid; kill -HUP $pid) </var/run/$1.pid; }
 
 case "$-" in *i*)
         # interactive mode settings go here
         ;;
 esac
 
 
 
 I will try both packages again, and keep you posted about the results.
 
 - Volkmar
 
 -- 
 http://blog.nifelheim.info/tech
 


Home | Main Index | Thread Index | Old Index