Skip to contentSkip to conversation

xtables-addons: fix installation in case only modules in subdirs of extensions are enabled

PATCH Applied Peter Volkov 2 participants 2 messages Jan 18, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

In case only modules that are built in subdirectories of extensions are enabled (and thus nothing is build in extensions directory itself) installation fails with the error (only build_ACCOUNT=y in mconfig):

install -pm0755 "/vt/portage/tmp/portage/net-firewall/xtables-addons-1.21/image///usr/local/libexec/xtables";
install: missing destination file operand after /vt/portage/tmp/portage/net-firewall/xtables-addons-1.21/image///usr/local/libexec/xtables' Try install --help' for more information.
make[3]: *** [install] Error 1

Patch in attachment fixes this.

Signature · 1 line
Peter.
Quoted 1 line

From 0bb3a77b27e9006c4227913cc3b38bb6d98e3a39 Mon Sep 17 00:00:00 2001

From: Peter Volkov <[email protected]>
Date: Mon, 18 Jan 2010 11:46:34 +0300
Subject: [PATCH] build: don't fail if only modules in subdirs of extensions are enabled

In case only modules that are built in subdirectories of extensions are enabled (and thus nothing is build in extensions directory itself) installation fails with the error (only build_ACCOUNT=y in mconfig):

install -pm0755 "/vt/portage/tmp/portage/net-firewall/xtables-addons-1.21/image///usr/local/libexec/xtables";
install: missing destination file operand after /vt/portage/tmp/portage/net-firewall/xtables-addons-1.21/image///usr/local/libexec/xtables' Try install --help' for more information.
make[3]: *** [install] Error 1

This patch fixes that.

---
 Makefile.iptrules.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Makefile.iptrules.in +1 -1
index 8be21fc..85e736c 100644
@@ -47,7 +47,7 @@ all: ${targets}
 install: ${targets}
 	@for i in ${subdirs_list}; do ${MAKE} -C $$i $@; done;
 	install -dm0755 "${DESTDIR}/${xtlibdir}";
-	install -pm0755 $^ "${DESTDIR}/${xtlibdir}";
+	@for i in $^; do install -pm0755 $$i "${DESTDIR}/${xtlibdir}"; done;
 
 clean:
 	@for i in ${subdirs_list}; do ${MAKE} -C $$i $@; done;
Signature · 1 line
1.6.4.4
#1 lore raw
Quoted 3 lines · Peter Volkov

In case only modules that are built in subdirectories of extensions are enabled (and thus nothing is build in extensions directory itself) installation fails with the error (only build_ACCOUNT=y in mconfig):

Applied, thanks.