On Mon, Jun 26, 2017 at 3:49 PM, chris <[email protected]> wrote:
> Sure:
>
> https://gist.github.com/anfractuosity/0a9c12f81ebbb1033883bbec28b62dcd

This is happening because absolute paths have been used in Makefiles.
Please find the attached patch which fixes the issue. Sorry, haven't
sent the merge request to upstream as `make check` still fails. but
you can do 'make' and 'sudo make install' the wget2.

Apply the patch to your local git wget2 repo (git apply) if you are
keen on building the wget2 at a location with spaces in it's absolute
path.

Regards,
Avinash Sonawane (rootKea)
PICT, Pune
https://rootkea.wordpress.com
From 2d41ed3b6a526e7f3e0552b3219fafcaae3368f2 Mon Sep 17 00:00:00 2001
From: Avinash Sonawane <[email protected]>
Date: Mon, 26 Jun 2017 22:16:28 +0530
Subject: [PATCH] use srcdir and top_srcdir instead of abs_srcdir and
 abs_top_srcdir

---
 fuzz/Makefile.am       | 2 +-
 tests/Makefile.am      | 2 +-
 unit-tests/Makefile.am | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/fuzz/Makefile.am b/fuzz/Makefile.am
index 59de23e..265bef6 100644
--- a/fuzz/Makefile.am
+++ b/fuzz/Makefile.am
@@ -1,6 +1,6 @@
 AM_CFLAGS = $(WERROR_CFLAGS) $(WARN_CFLAGS) -Wno-unused-parameter
 AM_CPPFLAGS = -I$(top_srcdir)/include/wget -I$(srcdir) \
- -DWGETVER_FILE=\"$(top_builddir)/include/wget/wgetver.h\" -DSRCDIR=\"$(abs_srcdir)\" -DTEST_RUN
+ -DWGETVER_FILE=\"$(top_builddir)/include/wget/wgetver.h\" -DSRCDIR=\"$(srcdir)\" -DTEST_RUN
 AM_LDFLAGS = -static
 LDADD = ../lib/libgnu.la ../libwget/libwget.la \
  $(LIBOBJS) $(GETADDRINFO_LIB) $(HOSTENT_LIB) $(INET_NTOP_LIB)\
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 36d6d87..e56b3e9 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,4 +1,4 @@
-DEFS = @DEFS@ -DDATADIR=\"$(abs_top_srcdir)/data\" -DSRCDIR=\"$(abs_srcdir)\" -DEXEEXT=\"$(EXEEXT)\"
+DEFS = @DEFS@ -DDATADIR=\"$(top_srcdir)/data\" -DSRCDIR=\"$(srcdir)\" -DEXEEXT=\"$(EXEEXT)\"
 
 AM_CFLAGS = $(WERROR_CFLAGS) $(WARN_CFLAGS)
 AM_CPPFLAGS = -Wno-missing-field-initializers -I$(top_srcdir)/include/wget -I$(srcdir) -I$(top_builddir)/lib -I$(top_srcdir)/lib \
diff --git a/unit-tests/Makefile.am b/unit-tests/Makefile.am
index e0c982e..da206b1 100644
--- a/unit-tests/Makefile.am
+++ b/unit-tests/Makefile.am
@@ -1,4 +1,4 @@
-DEFS = @DEFS@ -DDATADIR=\"$(abs_top_srcdir)/data\" -DSRCDIR=\"$(abs_srcdir)\" -DEXEEXT=\"$(EXEEXT)\"
+DEFS = @DEFS@ -DDATADIR=\"$(top_srcdir)/data\" -DSRCDIR=\"$(srcdir)\" -DEXEEXT=\"$(EXEEXT)\"
 
 AM_CFLAGS = $(WERROR_CFLAGS) $(WARN_CFLAGS)
 AM_CPPFLAGS = -Wno-missing-field-initializers -I$(top_srcdir)/include/wget -I$(srcdir) -I$(top_builddir)/lib -I$(top_srcdir)/lib \
-- 
2.11.0

Reply via email to