Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Sep 2005 13:01:06 -0400
From:      Mikhail Teterin <mi+mx@aldan.algebra.com>
To:        Alexandru Balan <abalan@bitdefender.com>, freebsd-ports@freebsd.org
Subject:   Re: port register/unregister hogs up resources and takes forever
Message-ID:  <200509271301.06925.mi%2Bmx@aldan.algebra.com>
In-Reply-To: <1127838257.947.90.camel@abalan.dsd.ro>
References:  <200509261700.48416.mi%2Bmx@aldan.algebra.com> <200509270114.13395.ringworm01@gmail.com> <1127838257.947.90.camel@abalan.dsd.ro>

next in thread | previous in thread | raw e-mail | index | archive | help
--Boundary-00=_SrXODr/wDKJNj3i
Content-Type: text/plain;
  charset="koi8-u"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

> I really appreciate all of your answers but I still can't figure out
> when the heck I messed up my ports. It's been like this since one
> particular moment i don't remember when i was still running 5.4-STABLE
> (now i have 6.0-BETA1).

You, probably, have a circular dependency -- a bad idea in general. In 
particular, the current bsd.port.mk will choke on such a thing... Do you have 
both WITH_ESD (esound) and WITH_ARTS set, for example?

Anyway, to help track it down, try the attached patch for bsd.port.mk and 
watch for patterns while "make install" or "make package" are running.

	-mi

--Boundary-00=_SrXODr/wDKJNj3i
Content-Type: text/x-diff; charset="koi8-u"; name="bsd.port.mk-diagnostic.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="bsd.port.mk-diagnostic.diff"

Index: Mk/bsd.port.mk
===================================================================
RCS file: /meow/ncvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.515
diff -U2 -r1.515 bsd.port.mk
--- Mk/bsd.port.mk	24 Jun 2005 09:18:54 -0000	1.515
+++ Mk/bsd.port.mk	27 Sep 2005 16:29:02 -0000
@@ -2793,6 +2793,6 @@
 .if defined(INSTALLS_SHLIB)
 LDCONFIG_DIRS?=	%%PREFIX%%/lib
-LDCONFIG_PLIST!=	${ECHO_CMD} ${LDCONFIG_DIRS} | ${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/}
-LDCONFIG_RUNLIST!=	${ECHO_CMD} ${LDCONFIG_PLIST} | ${SED} -e "s!%D!${PREFIX}!g"
+LDCONFIG_PLIST!=	${ECHO_CMD} ${LDCONFIG_DIRS} | ${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} -e s,/opt/lib,/meow/lib,g
+LDCONFIG_RUNLIST!=	${ECHO_CMD} ${LDCONFIG_PLIST} | ${SED} -e "s!%D!${PREFIX}!g" -e s,/opt/lib,/meow/lib,g
 .endif
 
@@ -4474,4 +4474,5 @@
 		if [ -d $$dir ]; then \
 			if (${ECHO_CMD} $$checked | ${GREP} -qwv "$$dir"); then \
+				${ECHO_MSG} "${PKGNAME}: diving into \"$$dir\" in search of dependencies (all)" >&2; \
 				child=$$(cd $$dir; ${MAKE} PARENT_CHECKED="$$checked" all-depends-list); \
 				for d in $$child; do ${ECHO_CMD} $$d; done; \
@@ -4635,4 +4636,5 @@
 		if [ -d $$dir ]; then \
 			if (${ECHO_CMD} $$checked | ${GREP} -qwv "$$dir"); then \
+				${ECHO_MSG} "${PKGNAME}: diving into \"$$dir\" in search of dependencies (pkg)" >&2; \
 				childout=$$(cd $$dir; ${MAKE} CHILD_DEPENDS=yes PARENT_CHECKED="$$checked" package-depends-list); \
 				set -- $$childout; \

--Boundary-00=_SrXODr/wDKJNj3i--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509271301.06925.mi%2Bmx>