Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 474904 - app-misc/ca-certificates - change "-exec rm..." to "-delete"
Summary: app-misc/ca-certificates - change "-exec rm..." to "-delete"
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-26 21:40 UTC by Dennis Krupenik
Modified: 2013-06-27 19:25 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Krupenik 2013-06-26 21:40:40 UTC
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
 }
+
Comment 1 Rafał Mużyło 2013-06-26 22:20:49 UTC
IIRC, the catch is "GNU find...", not POSIX, so FreeBSD might be a problem.
Comment 2 eroen 2013-06-26 23:10:07 UTC
(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
Comment 3 Sean McGovern 2013-06-27 13:22:51 UTC
Solaris find does not have -delete.
Comment 4 SpanKY gentoo-dev 2013-06-27 19:25:54 UTC
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.