Skip to content

Commit

Permalink
Fixes #17365: strip calls fail on aix
Browse files Browse the repository at this point in the history
  • Loading branch information
peckpeck committed May 9, 2020
1 parent cd67d3e commit 23478b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rudder-agent/SPECS/rudder-agent.spec
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,10 @@ rm -f %{buildroot}/opt/rudder/bin/vzps.py
%endif

# strip binaries
%if 0%{?aix} = 0
# already doen in makefile and file -i on aix has a different meaning
find %{buildroot}/opt/rudder/bin -type f | xargs file -i | grep -E "application/x-sharedlib|application/x-executable|application/x-pie-executable" | awk -F: '{print $1}' | xargs strip
%endif

# Build a list of files to include in this package for use in the %files section below
find %{buildroot} -type f -o -type l | sed "s,%{buildroot},," | sed "s,\.py$,\.py*," | grep -v "%{rudderdir}/etc/uuid.hive" | grep -v "/etc/bash_completion.d" | grep -v "%{ruddervardir}/cfengine-community/ppkeys" > %{_builddir}/file.list.%{name}
Expand Down

0 comments on commit 23478b1

Please sign in to comment.