pkgsrc-Users archive

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

"Please unset PKG_PATH before doing pkgsrc work!" message




Hello,


I have a small concern that just came to me. For installing pkgin you are instructed to set PKG_PATH variable:


# PKG_PATH="https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -p)/$(uname -r|cut -f '1 2' -d.)/All/"
# export PKG_PATH
# pkg_add pkgin


after that I set PKG_PATH variable to /root/.profile just in case I have to install something directly with pkg_add

But after that, when you try to build something from source:


netbsd-nuc# pwd
/usr/pkgsrc/ham/xnec2c
netbsd-nuc# make install
ERROR: This package has set PKG_FAIL_REASON:
ERROR: Please unset PKG_PATH before doing pkgsrc work!
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/ham/xnec2c

If I unset the variable (or enter with a no login shell) I can make the package fine.

Just curious cause I think that I have not found this "problem" before. Does it happen to some packages or all packages? Where is PKG_PATH checked? I do not see anything in /usr/pkgsrg/ham/xnec2c:

netbsd-nuc# grep -r "PKG"
./Makefile:PKGREVISION=	7
netbsd-nuc#



Regards.

Ramiro.



Home | Main Index | Thread Index | Old Index