spack: spack uninstall --dependents broken

This occurred for me on an older Spack clone, so I’m not sure whether or not it’s been fixed already. But I noticed this odd behavior:

$ spack uninstall -y --dependents ncurses
==> Successfully uninstalled lua-luaposix@33.4.0%gcc@6.2.1 arch=linux-fedora25-x86_64 /hcrkzdn
==> Successfully uninstalled cmake@3.7.2%gcc@6.2.1~doc+ncurses+openssl+ownlibs~qt arch=linux-fedora25-x86_64 /kbq74gf
==> Successfully uninstalled gettext@0.19.8.1%gcc@6.2.1+bzip2+curses+git~libunistring+libxml2+tar+xz arch=linux-fedora25-x86_64 /yiqj5x3
==> Successfully uninstalled xcb-proto@1.12%gcc@6.2.1 arch=linux-fedora25-x86_64 /eqttirz
==> Successfully uninstalled boost@1.63.0%gcc@6.2.1+atomic+chrono+date_time~debug+filesystem~graph~icu+iostreams+locale+log+math~mpi+multithreaded+program_options+python+random+regex+serialization+shared+signals~singlethreaded+system~taggedlayout+test+thread+timer+wave arch=linux-fedora25-x86_64 /aywwnid
==> Successfully uninstalled py-setuptools@34.2.0%gcc@6.2.1 arch=linux-fedora25-x86_64 /lbwg7gi
==> Successfully uninstalled lua@5.3.2%gcc@6.2.1 arch=linux-fedora25-x86_64 /gf4j32n
==> Successfully uninstalled python@2.7.13%gcc@6.2.1~tk~ucs4 arch=linux-fedora25-x86_64 /r7mn5ia
==> Successfully uninstalled py-packaging@16.8%gcc@6.2.1 arch=linux-fedora25-x86_64 /jpjqk36
==> Successfully uninstalled py-appdirs@1.4.0%gcc@6.2.1 arch=linux-fedora25-x86_64 /t5eps6o
==> Successfully uninstalled py-six@1.10.0%gcc@6.2.1 arch=linux-fedora25-x86_64 /rxq43vd
==> Successfully uninstalled py-pyparsing@2.1.10%gcc@6.2.1 arch=linux-fedora25-x86_64 /2v3z55j
==> Successfully uninstalled python@2.7.13%gcc@6.2.1~tk~ucs4 arch=linux-fedora25-x86_64 /ldubumv
==> Error: Cannot uninstall readline@6.3%gcc@6.2.1 arch=linux-fedora25-x86_64 ^ncurses@6.0%gcc@6.2.1~symlinks arch=linux-fedora25-x86_64
$ spack uninstall -y --dependents ncurses
==> Successfully uninstalled lua@5.3.4%gcc@6.2.1 arch=linux-fedora25-x86_64 /t2szkj7
==> Successfully uninstalled readline@6.3%gcc@6.2.1 arch=linux-fedora25-x86_64 /vehx2ab
==> Error: Cannot uninstall ncurses@6.0%gcc@6.2.1~symlinks arch=linux-fedora25-x86_64
$ spack uninstall -y --dependents ncurses
==> Successfully uninstalled lmod@7.3%gcc@6.2.1 arch=linux-fedora25-x86_64 /tfc5zbg
==> Successfully uninstalled lua-luaposix@33.4.0%gcc@6.2.1 arch=linux-fedora25-x86_64 /ph5tf5y
==> Successfully uninstalled lua-luafilesystem@1_6_3%gcc@6.2.1 arch=linux-fedora25-x86_64 /t6vt2td
==> Successfully uninstalled lua@5.3.4%gcc@6.2.1 arch=linux-fedora25-x86_64 /jytyxod
==> Successfully uninstalled readline@7.0%gcc@6.2.1 arch=linux-fedora25-x86_64 /qgxtgq3
==> Successfully uninstalled ncurses@6.0%gcc@6.2.1~symlinks arch=linux-fedora25-x86_64 /ybsic3i

It seems like Spack isn’t paying attention to the order of dependencies when it uninstalls something.

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 31 (31 by maintainers)

Commits related to this issue

Most upvoted comments

Saw this again today 🙃

==> Error: Cannot uninstall py-docstring-parser@=0.15%apple-clang@=15.0.0 build_system=python_pip arch=darwin-sonoma-m2 /bpbsyok, needed by ['py-jsonargparse@=4.28.0 /yookzws']
==> Error: Cannot uninstall py-rich@=13.7.1%apple-clang@=15.0.0 build_system=python_pip arch=darwin-sonoma-m2 /sd5xcwh, needed by ['py-twine@=4.0.2 /x7yvq7p']
==> Error: Cannot uninstall py-pyflakes@=3.1.0%apple-clang@=15.0.0 build_system=python_pip arch=darwin-sonoma-m2 /aqimxxt, needed by ['py-flake8@=6.1.0 /m573boo']
==> Error: Cannot uninstall py-mypy-extensions@=1.0.0%apple-clang@=15.0.0 build_system=python_pip arch=darwin-sonoma-m2 /yoko6q3, needed by ['py-black@=24.3.0 /ebwlyeq']
==> Error: Cannot uninstall node-js@=19.2.0%apple-clang@=15.0.0~debug~doc~icu4c+openssl+zlib build_system=generic arch=darwin-sonoma-m2 /m77ccan, needed by ['prettier@=3.2.5 /ujrofjl']
==> Error: Cannot uninstall py-tqdm@=4.66.1%apple-clang@=15.0.0~notebook~telegram build_system=python_pip arch=darwin-sonoma-m2 /awnlsyd, needed by ['py-huggingface-hub@=0.23.4 /cr34vmz']
==> Error: Cannot uninstall lz4@=1.9.4%apple-clang@=15.0.0+pic build_system=makefile libs=shared,static arch=darwin-sonoma-m2 /dkg5xv7, needed by ['c-blosc@=1.21.5 /xn3336z']
==> Error: Cannot uninstall libogg@=1.3.5%apple-clang@=15.0.0 build_system=autotools arch=darwin-sonoma-m2 /2fjqbey, needed by ['libtheora@=1.1.1 /5v25xs4']
==> Error: Cannot uninstall oniguruma@=6.9.9%apple-clang@=15.0.0 build_system=autotools arch=darwin-sonoma-m2 /ohtcj77, needed by ['jq@=1.7.1 /gwtjo2k']
==> Error: Cannot uninstall py-sphinxcontrib-serializinghtml@=1.1.9%apple-clang@=15.0.0 build_system=python_pip arch=darwin-sonoma-m2 /ubigr7z, needed by ['py-sphinx-copybutton@=0.2.12 /seqzer6', 'py-sphinx@=5.3.0 /6piixu7']
==> Error: Cannot uninstall py-urllib3@=1.26.12%apple-clang@=15.0.0~brotli~secure~socks build_system=python_pip arch=darwin-sonoma-m2 /r23luxz, needed by ['py-requests@=2.32.2 /4aqbx36']
==> Error: Cannot uninstall apple-gl@=4.1.0%apple-clang@=15.0.0 build_system=generic arch=darwin-sonoma-m2 /ka7h5q2, needed by ['gl2ps@=1.4.2 /3dpz6mp']
==> Error: Cannot uninstall xtrans@=1.4.0%apple-clang@=15.0.0 build_system=autotools arch=darwin-sonoma-m2 /xcl7iac, needed by ['libxfont@=1.5.4 /j6p4eys']
==> Error: Cannot uninstall git@=2.41.0%apple-clang@=15.0.0+man+nls+perl+subtree~svn~tcltk build_system=autotools arch=darwin-sonoma-m2 /satroxn, needed by ['py-setuptools-scm@=8.0.4 /j7ik3uh']
==> Error: Cannot uninstall python-venv@=1.0%apple-clang@=15.0.0 build_system=generic arch=darwin-sonoma-m2 /34mnrct, needed by ['py-setuptools@=69.2.0 /qrcid4x', 'py-pathspec@=0.11.1 /gr6554k', 'py-pip@=23.1.2 /btdzowq', 'py-flit-core@=3.9.0 /c3krvr7', 'py-packaging@=23.1 /ahbfble', 'py-wheel@=0.41.2 /5i6ihwz']