Skip to content

Commit

Permalink
Permanent solutiont to prevent conflicting build-id symlinks. (#906)
Browse files Browse the repository at this point in the history
fixes #904
  • Loading branch information
arnaudsjs authored and wouterdb committed Feb 4, 2019
1 parent e69d31d commit ab4f79f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions inmanta.spec
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
%define _debuginfo_subpackages 0
%define _enable_debug_packages 0
%define debug_package %{nil}
# Temporary workaround! Permanent solution will be implemented with: https://github.com/inmanta/inmanta/issues/904
%define _build_id_links none


%define sourceversion %{version}%{?buildid}
Expand Down Expand Up @@ -84,7 +82,7 @@ Requires: python3-inmanta
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/opt/inmanta
%{__python3} -m venv %{venv}
%{__python3} -m venv --symlinks %{venv}
%{_p3} -m pip install -U --no-index --find-links deps-%{sourceversion} wheel setuptools pip
%{_p3} -m pip install --no-index --find-links deps-%{sourceversion} inmanta
%{_p3} -m inmanta.app
Expand All @@ -93,7 +91,7 @@ mkdir -p %{buildroot}/opt/inmanta
%define __python %{_p3}

# Fix shebang
sed -i "s|%{buildroot}||g" %{venv}/bin/*
sed --follow-symlinks -i "s|%{buildroot}||g" %{venv}/bin/*
find %{venv} -name RECORD | xargs sed -i "s|%{buildroot}||g"

# Put symlinks
Expand Down

0 comments on commit ab4f79f

Please sign in to comment.