More to the point: after adding this patch I've found out that the errors are:
Acs-content-repository not installed.
Error:
psql:types-create.sql:322: ERROR: CREATE TABLE: attribute "tree_sortkey" duplicated
psql:content-image.sql:36: ERROR: acs_object_types_supertype_fk referential integrity violation - key referenced from acs_object_types not found in acs_object_types
psql:content-image.sql:84: ERROR: cr_content_mime_map_ctyp_fk referential integrity violation - key referenced from cr_content_mime_type_map not found in acs_object_types
psql:content-create.sql:1014: ERROR: cr_content_mime_map_ctyp_fk referential integrity violation - key referenced from cr_content_mime_type_map not found in acs_object_types
They confuse me, though, e.g., I don't see tree_sortkey anywhere in types-create.sql. Ideas, anyone?