Skip to content

Packaging Special Cases

scheibelp edited this page Jun 8, 2018 · 7 revisions

Note: this is primarily intended for consumption by Spack developers.

This page is intended to track special-case logic in package.py files. If multiple packages end up requiring the same special case logic that would indicate that we should provide it as part of the Spack library.

  • filter_file can fail on files that are read-only: see https://github.com/LLNL/spack/pull/5746 which adds a function which adds write permissions to a file temporarily in the Perl package
  • The TCL build needs to include its sources for TK - see: https://github.com/spack/spack/pull/8153. spack install --source ... will do this but since TCL needs to do this, the Package was updated to do it automatically. Furthermore, since tclConfig.sh needs to know the source location, currently that is not provided to the package (although it could be said to implicitly have a standard location relative to the package prefix when copied with spack install --source).
Clone this wiki locally