pkgsrc-Bugs archive

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

Re: pkg/48110 (PKG_DBDIR in /etc/pkg_install.conf is ignored by pkgsrc make)



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

From: Toby Karyadi <toby.karyadi%gmail.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/48110 (PKG_DBDIR in /etc/pkg_install.conf is ignored by pkgsrc
 make)
Date: Tue, 13 Aug 2013 16:10:04 -0400

 Okay, I just encountered a situation that would make me concede that 
 having to specify the PKG_DBDIR in both places would be better. I think 
 this would only happen on NetBSD. If the pkg_install pkg from pkgsrc is 
 installed, say as a by product of installing pkgin, then because how 
 $PATH is defined, where /usr/sbin is in front of /usr/pkg/sbin, then the 
 user shell will use /usr/sbin/pkg_*, while the build machinery will use 
 $LOCALBASE/sbin/pkg_*,  where $LOCALBASE is /usr/pkg. The 
 $LOCALBASE/sbin/pkg_* uses the /usr/pkg/etc/pkg_install.conf. So now we 
 have /etc/pkg_install.conf and /usr/pkg/etc/pkg_install.conf and it 
 becomes confusing quickly. Oh, boy... I give up.
 
 Anyway, I guess you can close this one. Well, it's been an informative 
 experience exploring pkgsrc/mk. I apologize for the noise.
 


Home | Main Index | Thread Index | Old Index