def METHOD_NAME(build_command, first_app, tmp_path):
    """If the manpage source file is missing, an error is raised."""
    bundle_path = (
        tmp_path / "base_path" / "build" / "first-app" / "somevendor" / "surprising"
    )
    # Delete the manpage source
    (bundle_path / "first-app.1").unlink()
    # Build the app; it will fail
    with pytest.raises(
        BriefcaseCommandError,
        match=r"Template does not provide a manpage source file `first-app\.1`",
    ):
        build_command.build_app(first_app)
    # The bootstrap binary was compiled
    build_command.tools[first_app].app_context.run.assert_called_with(
        ["make", "-C", "bootstrap", "install"],
        check=True,
        cwd=bundle_path,
    )
    # The license file has been installed
    doc_path = bundle_path / "first-app-0.0.1" / "usr" / "share" / "doc" / "first-app"
    assert (doc_path / "copyright").exists()
    with (doc_path / "copyright").open() as f:
        assert f.read() == "First App License"
    # The Changelog has been compressed and installed
    assert (doc_path / "changelog.gz").exists()
    with gzip.open(doc_path / "changelog.gz") as f:
        assert f.read().decode() == "First App Changelog"