Subject: DESTDIR lossage in usr.sbin/rpc.lockd
To: None <current-users@netbsd.org>
From: Tim Rightnour <root@garbled.net>
List: current-users
Date: 08/06/2000 23:52:56
I'm experiencing some DESTDIR lossage in usr.sbin/rpc.lockd, and I'm mystified
as to the source of the problem..

here is the build output:
dependall ===> usr.sbin/rpc.lockd
rm -f nlm_prot.x
ln -s /usr/include/rpcsvc/nlm_prot.x nlm_prot.x
rm -f nlm_prot.h
ln -s /usr/include/rpcsvc/nlm_prot.h nlm_prot.h
/build/alpha/tools/usr/bin/rpcgen -C -L -m -o nlm_prot_svc.c nlm_prot.x

and the Makefile that produces this:
nlm_prot.x: ${DESTDIR}/usr/include/rpcsvc/nlm_prot.x
        rm -f ${.TARGET}
        ln -s ${.ALLSRC} ${.TARGET}

nlm_prot.h: ${DESTDIR}/usr/include/rpcsvc/nlm_prot.h
        rm -f ${.TARGET}
        ln -s ${.ALLSRC} ${.TARGET}

So.. if I've set DESTDIR.. which I have.. why is it picking /usr/include up? 
Why does rpcgen then run rpcgen on nlm_prot.x after the system symlinks
nlm_prot.h?

---
Tim Rightnour <root@garbled.net>
NetBSD: Free multi-architecture OS http://www.netbsd.org/
NetBSD Mailing lists on the web: http://mail-index.netbsd.org/