[1/2] Prepare for python3

Submitted by Jonatan Schlag on March 10, 2017, 2:30 p.m.

Details

Message ID 1489156222-29550-2-git-send-email-jonatan.schlag@ipfire.org
State New
Headers show

Commit Message

Jonatan Schlag March 10, 2017, 2:30 p.m.
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 <jonatan.schlag@ipfire.org>
---
 lfs/ipaddr | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/lfs/ipaddr b/lfs/ipaddr
index 4b74e02..186141c 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)

Comments

Jonatan Schlag March 10, 2017, 2:32 p.m.
Sorry this path is already in next, he can safely ignored.

Am Fr, 10. Mär, 2017 um 3:30 schrieb Jonatan Schlag 
<jonatan.schlag@ipfire.org>:
> 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 <jonatan.schlag@ipfire.org>
> ---
>  lfs/ipaddr | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lfs/ipaddr b/lfs/ipaddr
> index 4b74e02..186141c 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)
> --
> 2.1.4
>
Michael Tremer March 10, 2017, 4:40 p.m.
Okay, ignored this. Merged the other two.

-Michael

On Fri, 2017-03-10 at 15:32 +0100, Jonatan Schlag wrote:
> Sorry this path is already in next, he can safely ignored.
> 
> Am Fr, 10. Mär, 2017 um 3:30 schrieb Jonatan Schlag 
> <jonatan.schlag@ipfire.org>:
> > 
> > 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 <jonatan.schlag@ipfire.org>
> > ---
> >  lfs/ipaddr | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/lfs/ipaddr b/lfs/ipaddr
> > index 4b74e02..186141c 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)
> > --
> > 2.1.4
> > 
>