Subject: [PATCH v7 4/7] gnu: openfoam-org: Improve build clean up.

From: reza <[email-masked]>
Date: Fri, 1 Dec 2023 20:21:36 +0000

* gnu/packages/simulation.scm (openfoam-org): Improve build tree cleanup for
package reproducibility.

Change-Id: I59193f16a7d9598a9bc842f1c6091369c47906a8
---
 gnu/packages/simulation.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm
index 75eb070f64..c6041643c8 100644
--- a/gnu/packages/simulation.scm
+++ b/gnu/packages/simulation.scm
@@ -328,7 +328,9 @@ (define-public openfoam-org
                 (delete-file-recursively
                  "platforms/linux64GccDPInt32OptOPENMPI"))
               (for-each delete-file
-                        (find-files "." "\\.o$")) #t))
+                        (find-files "." "\\.o$"))
+              ;; Remove spurious files in src tree
+              (invoke "bash" "-c" "source ./etc/bashrc && wclean all") #t))
           (replace 'check
             (lambda* (#:key tests? #:allow-other-keys)
               (when tests?
-- 
2.41.0