When building cups-base with the XPDF option instead of ghostscript it fails to detect if xpdf is already installed, and keeps trying to re-install it.
Fix: Looks like the bug is right here:
Attached patch fixes the issue.
Patch attached with submission follows:
How-To-Repeat: Build with XPDF option.
Over to maintainer (via the GNATS Auto Assign Tool)