On 03/23/12 07:25, Stuart Henderson wrote:
On 2012/03/23 07:11, RD Thrush wrote:
My PORTSDIR is on an nfs server.  Mounting the particular nfs
directory on /usr/ports (and setting PORTSDIR accordingly) fails the
new test in bsd.port.mk.

Apparently test -h considers an nfs mount the same as a symlink...

Hmm, that's weird. It doesn't for me, my PORTSDIR is on an NFS server
and it works fine with -current bsd.port.mk.

Probably better to work out why test is broken for you.

Before the recent bsd.port.mk change, I used dpb to build ports with a symlink to an NFS mounted directory (on a -current NFS server), ie.:
v1:tmp/rd 130>ls -ld /usr/ports
lrwxr-xr-x 1 root wheel 32 Mar 23 06:21 /usr/ports -> ../a8v/pub/OpenBSD/current/ports
v1:tmp/rd 131>mount | grep /a8v/pub
a8v:/pub on /a8v/pub type nfs (nodev, nosuid, read-only, v3, udp, timeo=100, retrans=101)

As a result of the change, I added the following to /etc/mk.conf:
PORTSDIR=/x2/pub/OpenBSD/current/ports

I had previously removed the symlink and NFS mounted the ports directory on /usr/ports. That didn't work (still had the '/usr/ports is a symlink'). As a result, I made the patch in the previous mail.

However, I didn't like having two mountpoints in the same NFS hierarchy, ie. /a8v/pub and /a8v/pub/OpenBSD/current/ports. So, I reverted to using the symlink and PORTSDIR change along with the patch and seem to be successfully building (still in progress).

With PORTSDIR set in /etc/mk.conf, how could ${PORTSDIR} expand to '/usr/ports' as reported in the dpb log below? How can I help further isolate the problem?

For the record, here's the dpb results from one of the failed ports:
v1:logs/i386 65>cat paths/devel/cvsps.log
>>> Building under devel/cvsps
         BDEPENDS = [devel/gmake;textproc/groff;devel/ccache]
         FULLPKGNAME = cvsps-2.1
>>> Running clean in devel/cvsps
===> devel/cvsps
===>  Cleaning for cvsps-2.1
/usr/sbin/pkg_add -a ccache-3.1.7 gmake-3.82p1 groff-1.21p7
>>> Running prepare in devel/cvsps
===> devel/cvsps
Fatal: /usr/ports is a symlink. Please set to the real directory
*** Error code 1

Stop in /usr/ports/devel/cvsps (line 2247 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/cvsps (line 2204 of /usr/ports/infrastructure/mk/bsd.port.mk).
===> Exiting devel/cvsps with an error
*** Error code 1

Stop in /a8v/pub/OpenBSD/current/ports (line 156 of /usr/ports/infrastructure/mk/bsd.port.subdir.mk).
Error: /nas2/work/OpenBSD/packages/i386/all/cvsps-2.1.tgz does not exist

Reply via email to