find sports -delete action for a fair amount of time, shouldn't we take advantage of it? --- /usr/portage/app-misc/ca-certificates/ca-certificates-20130610.ebuild 2013-06-14 21:18:33.000000000 +0300 +++ /usr/portage/app-misc/ca-certificates/ca-certificates-20130610-r1.ebuild 2013-06-27 00:37:27.992141441 +0300 @@ -92,6 +92,7 @@ ewarn "You MUST remove the above broken symlinks" ewarn "Otherwise any SSL validation that use the directory may fail!" ewarn "To batch-remove them, run:" - ewarn "find -L ${EROOT}etc/ssl/certs/ -type l -exec rm {} +" + ewarn "find -L ${EROOT}etc/ssl/certs/ -type l -delete" fi } +
IIRC, the catch is "GNU find...", not POSIX, so FreeBSD might be a problem.
(In reply to Rafał Mużyło from comment #1) > IIRC, the catch is "GNU find...", not POSIX, so FreeBSD might be a problem. FreeBSD grew a `find (...) -delete` in 1996.[1] NetBSD got -delete in 2007 [2], but OpenBSD does not seem to have it [3]. BusyBox got -delete capabilities in 2007 [4], while findutils has had it since 2004 [5]. 1: http://svnweb.freebsd.org/base/head/usr.bin/find/find.1?r1=17891&r2=18681 2: http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.bin/find/find.1?rev=1.62&content-type=text/x-cvsweb-markup&only_with_tag=MAIN 3: http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/find/ 4: http://git.busybox.net/busybox/commit/findutils/find.c?id=62f0479cf106eab811e1ff5397029d665dd85b53 5: http://git.savannah.gnu.org/cgit/findutils.git/commit/find/find.1?id=1b7af518ec8548ae2d89c016c553e72f4fc9c86d
Solaris find does not have -delete.
i would mark as "LATER" but we don't have that anymore the code running in the ebuild may assume GNU find, but the code displayed in postinst tends to be portable.