Change default for periodic/weekly/400.status-pkg ?

看板FB_current作者時間13年前 (2012/07/27 17:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/4 (看更多)
Hi, Currently, the periodic/weekly/400.status-pkg script uses the ports' INDEX file if it exists. On my machines, the INDEX file exists, and the periodic script produces output like this: $ /etc/periodic/weekly/400.status-pkg Check for out of date packages: $ That is, apparently everything is up to date, so I don't have to do anything. But this is wrong. When I change it to use /nonexistent in place of the INDEX file, I get this output: $ /etc/periodic/weekly/400.status-pkg Check for out of date packages: netpbm-manpages-10.35.85 was orphaned: LOCAL/netpbm-manpages pkg-config-0.25_1 was orphaned: devel/pkg-config $ A-ha! The first line is to be expected (netpbm-manpages is a "fake" port that I maintain locally), but the second line about pkg-config is much more important. Now this makes me look at ports/UPDATING, revealing that pkg-config was replaced by pkgconf. Therefore I propose to change the default for the periodic script to use /nonexistent. It does not change the output that usually appears, it only produces _additional_ output for installed packages whose origin disappeared. This is valuable information, I think. Also, the INDEX file could be outdated, which might lead to wrong results, so using the INDEX file by default is probably not a good idea anyway. Last but not least: Contrary to what the pkg_version(1) manpage suggests, the periodic script actually finishes slightly faster when no INDEX file is used. There doesn't seem to be any reason why the real INDEX file should be used. What do you think? Best regards Oliver PS: Specifying /nonexistent is different from /dev/null. The latter makes pkg_version assume that it is an empty INDEX file, causing different behaviour (not useful) than a non-existing file. -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Gesch輎tsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M榀- chen, HRB 125758, Gesch輎tsf梶rer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "C++ is the only current language making COBOL look good." -- Bertrand Meyer _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1G4bZENo (FB_current)
文章代碼(AID): #1G4bZENo (FB_current)