From: jhell on 23 Jul 2010 20:38 On 07/23/2010 20:13, Doug Barton wrote: >> Server side: ( at port snapshot creation ) >> LOCATE_CONFIG=/usr/ports/locate.rc /usr/libexec/locate.updatedb >> locate.rc: >> FCODES="/usr/ports/locate.database" >> SEARCHPATHS="/usr/ports" >> >> real 149.79 > > It's not 100% clear to me what you're timing here, but it took 2.5 > minutes to do it. This was for creating the locate database with thoughts of how long it would take to do this upon every port snapshot. >> Just for creating the list of distfiles from the SIZE contents: >> $ du -sh DISTINDEX.8.1.gz >> 512B DISTINDEX.8.1.gz >> >> time -alhp ./createindex.sh >> real 490.99 > > Sorry I'm so dense, but I'm still not following exactly what part of the > process you're referring to here, but this time it took over 8 minutes. > Given that the method I'm using to generate a 100% up to date version of > the list that's guaranteed to get all the distfiles takes less time, I > do not think I will be adding the feature you are suggesting, but I do > appreciate the suggestion. :) No problem but just for clarity. This was on the client side but as well could be done server side from running the following. #!/bin/sh export LOCATE_PATH=/usr/ports/locate.databasea for distinfo in $(locate "/usr/ports/*/*/distinfo"); do grep SIZE $distinfo >>DISTINDEX.8.1 done Regards & Good to hear back from you, -- jhell,v _______________________________________________ freebsd-ports(a)freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"
From: "b. f." on 27 Jul 2010 05:55 Doug Barton wrote: >On Fri, 23 Jul 2010, Douglas Berry wrote: .... >> With respect to the --clean-* options, my earlier (a long time ago) >> test with --clean-distfiles showed that valid distfiles would be >> deleted if the corresponding port was not installed. I'd like to only >> delete them if they are no longer valid (similar to portsclean -D). > >The problem is that in order to accomplish that portmaster would have to >check every port in the tree. Assuming 22,000 ports, and that any given >port is equally likely to fall anywhere in the tree, on average you'd >have to search 11,000 ports for every distfile that is not related to a >port installed on that system. > >Now what I _could_ do is use the same technique I use in >--clean-distfiles (create a text file with the distfile information) but >instead of limiting it to installed ports, do all of them. I have never >even tested that to see how long it would take, but I suppose I could >take a look. I also found it to be a problem that one didn't have the choice of keeping distfiles that belonged to uninstalled ports, but were not stale. Fortunately, besides 'portsclean -D' from ports-mgmt/portupgrade*, there is also sobomax@'s convenient shell script, ports/Tools/scripts/distclean.sh, which fills this niche and uses only base system utilities. b. _______________________________________________ freebsd-ports(a)freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"
From: Doug Barton on 27 Jul 2010 06:19 On Tue, 27 Jul 2010, b. f. wrote: > I also found it to be a problem that one didn't have the choice of > keeping distfiles that belonged to uninstalled ports, but were not > stale. Fortunately, besides 'portsclean -D' from > ports-mgmt/portupgrade*, there is also sobomax@'s convenient shell > script, ports/Tools/scripts/distclean.sh, which fills this niche and > uses only base system utilities. .... I guess you didn't read all the way down in the thread? I added the feature, 'portmaster -t --clean-distfiles[-all]' will take care of it. BTW, I've had very close to zero response to my request for testers, and while I appreciate the fact that everyone has great confidence in me, *I* would feel a lot better if more people gave this a look. :) One way or another I'm hoping to commit to the ports tree before the weekend. Doug -- Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ Computers are useless. They can only give you answers. -- Pablo Picasso _______________________________________________ freebsd-ports(a)freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"
First
|
Prev
|
Pages: 1 2 Prev: Installing makefiles for BSD Make Next: Problems with sysutils/screen (GNU Screen) |