From 7f7231e5909b5d2837b31bd6eab6e6c70f9fbf2d Mon Sep 17 00:00:00 2001 From: Arnaud Schoonjans Date: Tue, 12 Feb 2019 12:59:25 +0100 Subject: [PATCH 1/2] Only substitute path of build-root in regular files. --- inmanta.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inmanta.spec b/inmanta.spec index a2594c1de2..98c077817b 100644 --- a/inmanta.spec +++ b/inmanta.spec @@ -91,7 +91,7 @@ mkdir -p %{buildroot}/opt/inmanta %define __python %{_p3} # Fix shebang -sed --follow-symlinks -i "s|%{buildroot}||g" %{venv}/bin/* +find %{venv}/bin/ -type f | xargs -I id sed -i "s|%{buildroot}||g" id find %{venv} -name RECORD | xargs sed -i "s|%{buildroot}||g" # Put symlinks From 0fb50355a2f814809a0cdb988858cce93835bbc9 Mon Sep 17 00:00:00 2001 From: Arnaud Schoonjans Date: Tue, 12 Feb 2019 13:02:49 +0100 Subject: [PATCH 2/2] Read from stdin --- inmanta.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inmanta.spec b/inmanta.spec index 98c077817b..220b4f65c6 100644 --- a/inmanta.spec +++ b/inmanta.spec @@ -91,7 +91,7 @@ mkdir -p %{buildroot}/opt/inmanta %define __python %{_p3} # Fix shebang -find %{venv}/bin/ -type f | xargs -I id sed -i "s|%{buildroot}||g" id +find %{venv}/bin/ -type f | xargs sed -i "s|%{buildroot}||g" find %{venv} -name RECORD | xargs sed -i "s|%{buildroot}||g" # Put symlinks