From 72ae85faf1ea70bcf62030e04c605c5927335400 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jonas=20Walld=C3=A9n?= <jonasw@roxen.com>
Date: Sat, 4 Oct 2014 00:25:01 +0200
Subject: [PATCH] Fix "make bin_export" on OS X to not include phantom resource
 fork file.

---
 bin/install.pike | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/bin/install.pike b/bin/install.pike
index 1f28515051..53c707361e 100644
--- a/bin/install.pike
+++ b/bin/install.pike
@@ -1690,8 +1690,11 @@ done
 
   status("Creating", export_base_name);
 
+  //  Setting COPYFILE_DISABLE avoids a "._PtmP..." resource file to be added
+  //  on OS X which otherwise would hinder self-extraction from bootstrapping.
   Process.create_process( ({ "tar","cf", export_base_name,
-			     script, tmpname+".x", tmpname+".tar.gz" }))
+			     script, tmpname+".x", tmpname+".tar.gz" }),
+			  ([ "env" : ([ "COPYFILE_DISABLE" : "true" ]) ]) )
     ->wait();
 
   status("Filtering to root/root ownership", export_base_name);
-- 
GitLab