The nasty CAT <<EOF > blah thing doesn't work at all.
Addition of the following line seems to fix this issue: mkdir -p "${D}"/etc/revdep-rebuild
Thanks for reporting this, jakub! Arfrever, thanks to you, too, for the suggestion. I've used "dodir", though, because it handels ${D} transparently. Fixed in CVS.