Suppress duplicate repo warning for bug #478544.
FreeBSD: don't use /dev/fd, bug #478446
Add test for bug #478188.