docbook: resolve conflict in spack env view (#35682)

If the docbook packages
- docbook-xml
- docbook-xsl

are installed in a spack environment view the catalog files will be in
conflict in the view directory. This PR resolves that by adding an
appropriate prefix to each catalog name so that they are unique in the
view. The resulting XML_CATALOG_FILES environment variable will then be
able to point to both of them.
This commit is contained in:
Glenn Johnson 2023-03-01 06:17:46 -06:00 committed by GitHub
parent a47ebe5784
commit 2d2a1c82d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ def install(self, spec, prefix):
@property @property
def catalog(self): def catalog(self):
return join_path(self.prefix, "catalog") return join_path(self.prefix, "xml-catalog")
@run_after("install") @run_after("install")
def config_docbook(self): def config_docbook(self):

View file

@ -29,7 +29,7 @@ def install(self, spec, prefix):
@property @property
def catalog(self): def catalog(self):
return join_path(self.prefix, "catalog") return join_path(self.prefix, "xsl-catalog")
@run_after("install") @run_after("install")
def config_docbook(self): def config_docbook(self):