Date: Tue, 25 Aug 1998 14:14:07 -0700 (PDT) From: asami@cs.berkeley.edu (Satoshi Asami) To: ports@FreeBSD.ORG Subject: lib_depends Message-ID: <199808252114.OAA06223@silvia.hip.berkeley.edu>
next in thread | raw e-mail | index | archive | help
What do people think about this one? I'm getting tired of all the ports that don't update LIB_DEPENDS lines when dependencies change. (This causes said dependency to be rebuilt over and over during a package build, sometimes with disastrous results when two ports descend in there at the same time.) After all, if you need a shared library, you shouldn't be able to continue without it, right? I'm thinking about doing a similar thing with FETCH_DEPENDS and BUILD_DEPENDS. RUN_DEPENDS can probably stay the way it is now because it might just be because it's not in root's search path (and it's not essential for building, so there's no reason to stop the build just for that). Satoshi P.S. I didn't use "if ! foo | bar" because ISTR there was a bug in some shells that would not calculate the exit status in such cases correctly (take foo's status and reverse it, or something like that). P.P.S. This diff may not apply to your file. I had to hand-edit it from a longer diff. But I think it's easy enough to understand. :) Index: bsd.port.mk =================================================================== RCS file: /home/ncvs/src/share/mk/bsd.port.mk,v retrieving revision 1.227.2.46 diff -u -r1.227.2.46 bsd.port.mk --- bsd.port.mk 1998/08/15 17:37:46 1.227.2.46 +++ bsd.port.mk 1998/08/25 20:59:50 @@ -562,6 +682,7 @@ SETENV?= /usr/bin/env SH?= /bin/sh TR?= /usr/bin/tr +TRUE?= /usr/bin/true # Used to print all the '===>' style prompts - override this to turn them off. ECHO_MSG?= ${ECHO} @@ -1650,6 +1837,12 @@ else \ (cd $$dir; ${MAKE} ${.MAKEFLAGS} $$target) ; \ ${ECHO_MSG} "===> Returning to build of ${PKGNAME}"; \ + if /sbin/ldconfig -r | ${GREP} -q -e "-l$$lib"; then \ + ${TRUE}; \ + else \ + ${ECHO_MSG} "Error: shared library \"$$lib\" does not exist"; \ + ${FALSE}; \ + fi; \ fi; \ fi; \ done To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808252114.OAA06223>