From: Jonatan Schlag Date: Mon, 23 Jan 2017 15:17:19 +0000 (+0100) Subject: Prepare for python3 X-Git-Tag: v2.19-core109^2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c589202448a12a2946630f210a7c9f9ca8558d3c;p=ipfire-2.x.git Prepare for python3 The build of ipaadr fails with python3 because two possibilities of /usr/lib/python* are availible. This patch set the path to /usr/lib/python2* to make the path clear. Signed-off-by: Jonatan Schlag Signed-off-by: Michael Tremer --- diff --git a/lfs/ipaddr b/lfs/ipaddr index 4b74e0248a..186141c319 100644 --- a/lfs/ipaddr +++ b/lfs/ipaddr @@ -70,7 +70,7 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) - cd $(DIR_APP) && install -m 0644 ipaddr.py /usr/lib/python* + cd $(DIR_APP) && install -m 0644 ipaddr.py /usr/lib/python2* /usr/bin/python -c "import ipaddr" @rm -rf $(DIR_APP) @$(POSTBUILD)