aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Macku <jamacku@redhat.com>2019-12-10 11:39:14 +0100
committerGitHub <noreply@github.com>2019-12-10 11:39:14 +0100
commit82e2a94703a487fc53f3defe6b37f1e9da35fd0e (patch)
tree63152109485f76880504ffab9326c92761799f4f
parentf1714ba6a1f017de773df01556d203e986bb01b2 (diff)
downloadinitscripts-82e2a94703a487fc53f3defe6b37f1e9da35fd0e.tar
initscripts-82e2a94703a487fc53f3defe6b37f1e9da35fd0e.tar.gz
initscripts-82e2a94703a487fc53f3defe6b37f1e9da35fd0e.tar.bz2
initscripts-82e2a94703a487fc53f3defe6b37f1e9da35fd0e.tar.xz
initscripts-82e2a94703a487fc53f3defe6b37f1e9da35fd0e.zip
Fix missing python3 during build phase
-rw-r--r--Makefile2
-rw-r--r--initscripts.spec2
-rw-r--r--po/Makefile6
3 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 23db3282..e21cdaf4 100644
--- a/Makefile
+++ b/Makefile
@@ -42,7 +42,7 @@ make-binaries:
$(MAKE) -C src
make-translations:
- $(MAKE) -C po
+ $(MAKE) -C po PYTHON=$(PYTHON)
# NOTE: We are no longer installing into /usr/sbin directory, because this is
diff --git a/initscripts.spec b/initscripts.spec
index 2ac3b0ac..8cfdd788 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -182,7 +182,7 @@ support. Additional configuration is required after installation.
# ---------------
%build
-%make_build
+%make_build PYTHON=%{__python3}
# ---------------
diff --git a/po/Makefile b/po/Makefile
index abb0258d..02a58b08 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -38,7 +38,11 @@ POTFILES = $(shell ls ../network-scripts/* | grep -v ifcfg-) \
all: $(NLSPACKAGE).pot $(FMTCATALOGS)
$(NLSPACKAGE).pot: $(POTFILES)
- ./xgettext_sh.py $(POTFILES) > $(NLSPACKAGE).po
+ if [ -z "$(PYTHON)" ]; then \
+ ./xgettext_sh.py $(POTFILES) > $(NLSPACKAGE).po; \
+ else \
+ $(PYTHON) xgettext_sh.py $(POTFILES) > $(NLSPACKAGE).po; \
+ fi
if cmp -s $(NLSPACKAGE).po $(NLSPACKAGE).pot; then \
rm -f $(NLSPACKAGE).po; \
else \