diff options
author | Jan Macku <jamacku@redhat.com> | 2019-08-12 16:24:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-12 16:24:23 +0200 |
commit | 4e99e0e4c7e592fb9ddfe48165422e12593281a0 (patch) | |
tree | 830e44356aaca864f1bd93b384670489a32a8898 | |
parent | fdcc55839df2334d7a7567de1f02f07ee7a69561 (diff) | |
download | initscripts-4e99e0e4c7e592fb9ddfe48165422e12593281a0.tar initscripts-4e99e0e4c7e592fb9ddfe48165422e12593281a0.tar.gz initscripts-4e99e0e4c7e592fb9ddfe48165422e12593281a0.tar.bz2 initscripts-4e99e0e4c7e592fb9ddfe48165422e12593281a0.tar.xz initscripts-4e99e0e4c7e592fb9ddfe48165422e12593281a0.zip |
Fix missing python3 during build phase
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | initscripts.spec | 2 | ||||
-rw-r--r-- | po/Makefile | 6 |
3 files changed, 7 insertions, 3 deletions
@@ -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 a09cafcd..a098c9b0 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -183,7 +183,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 \ |