Subject: DESTDIR lossage in usr.sbin/rpc.lockd
To: None <>
From: Tim Rightnour <>
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

Tim Rightnour <>
NetBSD: Free multi-architecture OS
NetBSD Mailing lists on the web: