Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249092 - app-misc/ca-certificates-20080809: syntax error in ebuild's message
Summary: app-misc/ca-certificates-20080809: syntax error in ebuild's message
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-27 16:17 UTC by Simeon Maryasin
Modified: 2008-11-27 19:21 UTC (History)
0 users

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 Simeon Maryasin 2008-11-27 16:17:17 UTC
When emerging app-misc/ca-certificates-20080809 and it reports broken symlink for a certificate, it then says

To batch-remove them, run:
find -L /etc/ssl/certs/ -type l -exec rm {} ;

But that command says "find: missing argument to `-exec' ".
It seems that correct command is
find -L /etc/ssl/certs/ -type l -exec rm {} + ;

Reproducible: Always
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-27 16:47:12 UTC
Or even better if we want to stay compatible with non-GNU non-FreeBSD find (someone said OpenBSD?) it should use -print0 | xargs -0 rm, but I think it's MUCH simpler to just use -delete.
Comment 2 SpanKY gentoo-dev 2008-11-27 18:34:32 UTC
-exec is in POSIX.  if FreeBSD find does not support it, that's your problem.

fixed the syntax in cvs, thanks for pointing it out

http://sources.gentoo.org/app-misc/ca-certificates/ca-certificates-20080514-r2.ebuild?r1=1.8&r2=1.9
http://sources.gentoo.org/app-misc/ca-certificates/ca-certificates-20080809.ebuild?r1=1.3&r2=1.4
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-27 18:56:14 UTC
-exec foo {} ; is POSIX
-exec foo {} + is not

FreeBSD supports both, OpenBSD does not support the latter.
Comment 4 SpanKY gentoo-dev 2008-11-27 19:21:51 UTC
incorrect.  please read the POSIX docs.
http://www.opengroup.org/onlinepubs/009695399/utilities/find.html