Skip to content

spack uninstall --dependents broken #3690

@adamjstewart

Description

@adamjstewart

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 [email protected]%[email protected] arch=linux-fedora25-x86_64 /hcrkzdn
==> Successfully uninstalled [email protected]%[email protected]~doc+ncurses+openssl+ownlibs~qt arch=linux-fedora25-x86_64 /kbq74gf
==> Successfully uninstalled [email protected]%[email protected]+bzip2+curses+git~libunistring+libxml2+tar+xz arch=linux-fedora25-x86_64 /yiqj5x3
==> Successfully uninstalled [email protected]%[email protected] arch=linux-fedora25-x86_64 /eqttirz
==> Successfully uninstalled [email protected]%[email protected]+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 [email protected]%[email protected] arch=linux-fedora25-x86_64 /lbwg7gi
==> Successfully uninstalled [email protected]%[email protected] arch=linux-fedora25-x86_64 /gf4j32n
==> Successfully uninstalled [email protected]%[email protected]~tk~ucs4 arch=linux-fedora25-x86_64 /r7mn5ia
==> Successfully uninstalled [email protected]%[email protected] arch=linux-fedora25-x86_64 /jpjqk36
==> Successfully uninstalled [email protected]%[email protected] arch=linux-fedora25-x86_64 /t5eps6o
==> Successfully uninstalled [email protected]%[email protected] arch=linux-fedora25-x86_64 /rxq43vd
==> Successfully uninstalled [email protected]%[email protected] arch=linux-fedora25-x86_64 /2v3z55j
==> Successfully uninstalled [email protected]%[email protected]~tk~ucs4 arch=linux-fedora25-x86_64 /ldubumv
==> Error: Cannot uninstall [email protected]%[email protected] arch=linux-fedora25-x86_64 ^[email protected]%[email protected]~symlinks arch=linux-fedora25-x86_64
$ spack uninstall -y --dependents ncurses
==> Successfully uninstalled [email protected]%[email protected] arch=linux-fedora25-x86_64 /t2szkj7
==> Successfully uninstalled [email protected]%[email protected] arch=linux-fedora25-x86_64 /vehx2ab
==> Error: Cannot uninstall [email protected]%[email protected]~symlinks arch=linux-fedora25-x86_64
$ spack uninstall -y --dependents ncurses
==> Successfully uninstalled [email protected]%[email protected] arch=linux-fedora25-x86_64 /tfc5zbg
==> Successfully uninstalled [email protected]%[email protected] arch=linux-fedora25-x86_64 /ph5tf5y
==> Successfully uninstalled lua-luafilesystem@1_6_3%[email protected] arch=linux-fedora25-x86_64 /t6vt2td
==> Successfully uninstalled [email protected]%[email protected] arch=linux-fedora25-x86_64 /jytyxod
==> Successfully uninstalled [email protected]%[email protected] arch=linux-fedora25-x86_64 /qgxtgq3
==> Successfully uninstalled [email protected]%[email protected]~symlinks arch=linux-fedora25-x86_64 /ybsic3i

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions