berkeleygw: add -o flag to tar extraction (#48816)

when extracting as root user, avoid that tar attempts to change file ownership
This commit is contained in:
Henri Menke 2025-02-03 11:08:56 +01:00 committed by GitHub
parent 9642f3f49a
commit 011ef0aaaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -118,7 +118,7 @@ class Berkeleygw(MakefilePackage):
def edit(self, spec, prefix):
# archive is a tar file, despite the .gz expension
tar = which("tar")
tar("-x", "-f", self.stage.archive_file, "--strip-components=1")
tar("-x", "-o", "-f", self.stage.archive_file, "--strip-components=1")
# get generic arch.mk template
if spec.satisfies("+mpi"):