The following piece of code fails if /lib/libnss_dns* do not exist (may happen on x86_64 machines):
 
        #XXX trying new code below -BEF- XXX  cp -a $(sort $(wildcard /lib*/libnss_dns-*)) $(BOEL_BINARIES_DIR)/lib
        #XXX we're not concerned about space here, why are we trying to only get the largest .so name?  why not all?
        #XXX simplifying the code.  let's see if anything breaks. -BEF-
        cp -a /lib/libnss_dns*   $(BOEL_BINARIES_DIR)/lib
        test ! -d /lib64 || cp -a /lib64/libnss_dns* $(BOEL_BINARIES_DIR)/lib64
 
Any suggestions on how to fix it?  Presumably you would test to see if /lib/libnss_dns* exist first before trying to copy, I thought about using "ls" but perhaps there's a better way to do this.
 
Cheers,
 
Bernard

Reply via email to