Date: Sun, 6 Dec 1998 15:17:00 -0600 (CST) From: Steve Price <sprice@hiwaay.net> To: "Jordan K. Hubbard" <jkh@zippy.cdrom.com> Cc: asami@FreeBSD.ORG, ports@FreeBSD.ORG Subject: Re: Creating HTML readmes for ports in release builds. Message-ID: <Pine.OSF.4.02.9812061505440.8202-100000@fly.HiWAAY.net> In-Reply-To: <5840.912939635@zippy.cdrom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 6 Dec 1998, Jordan K. Hubbard wrote: # This has become one of the slowest parts of release building, it # sometimes taking up to 4 seconds to process *each* entry in the ports # tree. I've no idea why it takes quite so long, but I have two # questions in any case: # # 1. Anyone see any quick ways of speeding this up? I haven't really # dived on the problem yet myself and am mostly just looking to # see if I'm attacking a known problem first. Here's one way of speeding it up. This works on the same principle as the new INDEX generation stuff that Satoshi and I are working on. The goal is to get rid of all those recursive makes. All you need is an up-to-date INDEX file and the attached patch. With the traditional approach: bsd[/usr/ports/graphics]$ time make readmes ... 245.49 real 76.95 user 203.48 sys bsd[/usr/ports/graphics]$ With the patch applied: bsd[/usr/ports/graphics]$ time make readmes ... 178.36 real 56.21 user 149.19 sys bsd[/usr/ports/graphics]$ ---- Index: bsd.port.mk =================================================================== RCS file: /u/FreeBSD/cvs/src/share/mk/bsd.port.mk,v retrieving revision 1.299 diff -u -r1.299 bsd.port.mk --- bsd.port.mk 1998/11/25 00:12:27 1.299 +++ bsd.port.mk 1998/12/06 20:42:20 @@ -2036,7 +2036,7 @@ .if defined(FETCH_DEPENDS) || defined(BUILD_DEPENDS) || \ defined(LIB_DEPENDS) || defined(DEPENDS) @${ECHO} -n 'This port requires package(s) "' - @${ECHO} -n `${MAKE} depends-list | sort -u` + @${ECHO} -n `grep '^${PKGNAME}' ${PORTSDIR}/INDEX | awk -F\| '{print $$8;}'` @${ECHO} '" to build.' .endif .endif @@ -2045,7 +2045,7 @@ print-package-depends: .if defined(RUN_DEPENDS) || defined(LIB_DEPENDS) || defined(DEPENDS) @${ECHO} -n 'This port requires package(s) "' - @${ECHO} -n `${MAKE} package-depends | sort -u` + @${ECHO} -n `grep '^${PKGNAME}' ${PORTSDIR}/INDEX | awk -F\| '{print $$9;}'` @${ECHO} '" to run.' .endif .endif 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?Pine.OSF.4.02.9812061505440.8202-100000>