Skip to content

Commit

Permalink
Fixes #15734: Trace doesn't exist on old make
Browse files Browse the repository at this point in the history
  • Loading branch information
peckpeck committed Sep 17, 2019
1 parent e74e4ae commit b079a5c
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion rudder-api-client/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.DEFAULT_GOAL := build
# Used on debian to redirect calls to final Makefile so dh auto commands work
%:
make -C BUILD/rudder-api-client/ --trace $@
make -C BUILD/rudder-api-client/ --debug $@
2 changes: 1 addition & 1 deletion rudder-api-client/SPECS/rudder-api-client.spec
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ find . -type f | xargs sed -i '1,1s|#!/usr/bin/python3|#!/usr/bin/python2|'
%install
cd rudder-sources-*/rudder-api-client/

make --trace install DESTDIR=%{buildroot}
make --debug install DESTDIR=%{buildroot}

#=================================================
# Cleaning
Expand Down
2 changes: 1 addition & 1 deletion rudder-reports/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.DEFAULT_GOAL := build
# Used on debian to redirect calls to final Makefile so dh auto commands work
%:
make -C SOURCES --trace $@
make -C SOURCES --debug $@
2 changes: 1 addition & 1 deletion rudder-reports/SPECS/rudder-reports.spec
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ calculate compliance to given configuration rules.
rm -rf %{buildroot}

cd %{_sourcedir}
make --trace install DESTDIR=%{buildroot}
make --debug install DESTDIR=%{buildroot}


#=================================================
Expand Down
2 changes: 1 addition & 1 deletion rudder-server-relay/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.DEFAULT_GOAL := build
# Used on debian to redirect calls to final Makefile so dh auto commands work
%:
make -C BUILD/rudder/relay/sources/ --trace $@
make -C BUILD/rudder/relay/sources/ --debug $@
6 changes: 3 additions & 3 deletions rudder-server-relay/SPECS/rudder-server-relay.spec
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ sed -i "s%^DocumentRoot /var/www$%DocumentRoot /srv/www%" apache/rudder-apache-r
%endif

%if 0%{?rhel} == 7
make --trace build SELINUX=%{selinux} PYTHON=python2
make --debug build SELINUX=%{selinux} PYTHON=python2
%else
make --trace build SELINUX=%{selinux}
make --debug build SELINUX=%{selinux}
%endif

#=================================================
Expand All @@ -147,7 +147,7 @@ cd rudder-sources-*/rudder/relay/sources/
# TODO remove
rm -rf %{buildroot}

make --trace install APACHE_VHOSTDIR=%{apache_vhost_dir} DESTDIR=%{buildroot} SELINUX=%{selinux}
make --debug install APACHE_VHOSTDIR=%{apache_vhost_dir} DESTDIR=%{buildroot} SELINUX=%{selinux}

mkdir -p %{buildroot}/etc/sysconfig/
install -m 644 rudder-relay-apache %{buildroot}/etc/sysconfig/rudder-relay-apache
Expand Down
2 changes: 1 addition & 1 deletion rudder-server-root/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.DEFAULT_GOAL := build
# Used on debian to redirect calls to final Makefile so dh auto commands work
%:
make -C SOURCES --trace $@
make -C SOURCES --debug $@
2 changes: 1 addition & 1 deletion rudder-server-root/SPECS/rudder-server-root.spec
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ run a Rudder root server on a machine.
cd %{_sourcedir}

cd %{_sourcedir}
make --trace install DESTDIR=%{buildroot}
make --debug install DESTDIR=%{buildroot}

#=================================================
# pretrans is run before all preinst when installing more than one package
Expand Down
2 changes: 1 addition & 1 deletion rudder-webapp/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.DEFAULT_GOAL := build
# Used on debian to redirect calls to final Makefile so dh auto commands work
%:
make -C SOURCES --trace $@
make -C SOURCES --debug $@
10 changes: 5 additions & 5 deletions rudder-webapp/SPECS/rudder-webapp.spec
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ Rudder.
%prep

cd %{_sourcedir}
make --trace rudder-sources
make --debug rudder-sources

# rhel7 and sles12 don't have mod wsgi python 3 so we force python2 instead
%if 0%{?rhel} == 7 || ( 0%{?suse_version} && 0%{?suse_version} < 1500 )
Expand All @@ -156,9 +156,9 @@ export CFLAGS="$RPM_OPT_FLAGS"

cd %{_sourcedir}
%if 0%{?rhel} == 7 || ( 0%{?suse_version} && 0%{?suse_version} < 1500 )
make --trace build PYTHON=python2
make --debug build PYTHON=python2
%else
make --trace build
make --debug build
%endif

%if 0%{?rhel}
Expand All @@ -177,9 +177,9 @@ rm -rf %{buildroot}
cd %{_sourcedir}
# python should not be needed at install time, but build is run twice, i don't know why
%if 0%{?rhel} == 7 || ( 0%{?suse_version} && 0%{?suse_version} < 1500 )
make --trace install APACHE_VHOSTDIR=%{apache_vhost_dir} DESTDIR=%{buildroot} JETTY_SCRIPT=%{jetty_init_script} APACHE_CONFDIR=%{apache_vhost_dir} PYTHON=python2
make --debug install APACHE_VHOSTDIR=%{apache_vhost_dir} DESTDIR=%{buildroot} JETTY_SCRIPT=%{jetty_init_script} APACHE_CONFDIR=%{apache_vhost_dir} PYTHON=python2
%else
make --trace install APACHE_VHOSTDIR=%{apache_vhost_dir} DESTDIR=%{buildroot} JETTY_SCRIPT=%{jetty_init_script} APACHE_CONFDIR=%{apache_vhost_dir}
make --debug install APACHE_VHOSTDIR=%{apache_vhost_dir} DESTDIR=%{buildroot} JETTY_SCRIPT=%{jetty_init_script} APACHE_CONFDIR=%{apache_vhost_dir}
%endif

%if 0%{?rhel}
Expand Down

0 comments on commit b079a5c

Please sign in to comment.