[Nix-dev] nix: Building out-of-tree fails.

Mats Erik Andersson gnu at gisladisker.se
Wed Oct 10 11:48:29 CEST 2012


Hello there,

configuring Nix for an out-of-tree build process fails
miserably. The patch below mends the cause of failure
in "perl/", but "doc/manual/" presents a much harder
problem that I am not able to settle. The release nix-1.1
has another early issue in "src/bin2c/", but that directory
is no longer in use.

The configuration step for detecting "GNU tar" is also
misconceived, since "./configure" need not exist. However,
the use of "./config.status" mends this matter.

Regards,
  Mats Erik Andersson


>From 160a717c6d614b72ce6b9940e67d04ce1331bab3 Mon Sep 17 00:00:00 2001
From: Mats Erik Andersson <gnu at gisladisker.se>
Date: Wed, 10 Oct 2012 11:10:28 +0200
Subject: [PATCH] Out-of-tree building of perl modules.

---
 configure.ac     |    2 +-
 perl/Makefile.am |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 11a5390..7333e03 100644
--- a/configure.ac
+++ b/configure.ac
@@ -341,7 +341,7 @@ AC_SUBST(dynlib_suffix)
 
 # Do we have GNU tar?
 AC_MSG_CHECKING([if you have a recent GNU tar])
-if $tar --version 2> /dev/null | grep -q GNU && tar cvf /dev/null --warning=no-timestamp ./configure > /dev/null; then
+if $tar --version 2> /dev/null | grep -q GNU && tar cvf /dev/null --warning=no-timestamp ./config.log > /dev/null; then
     AC_MSG_RESULT(yes)
     tarFlags="--warning=no-timestamp"
 else
diff --git a/perl/Makefile.am b/perl/Makefile.am
index e428943..aaf76bb 100644
--- a/perl/Makefile.am
+++ b/perl/Makefile.am
@@ -26,6 +26,7 @@ AM_CXXFLAGS = \
   -D_FILE_OFFSET_BITS=64
 
 lib/Nix/Store.cc: lib/Nix/Store.xs
+	$(INSTALL) -d lib/Nix
 	xsubpp $^ -output $@
 
 else
-- 
1.7.2.5



More information about the nix-dev mailing list