SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
23
sysutils/nix/patches/patch-src_libexpr_primops_fetchGit_cc
Normal file
23
sysutils/nix/patches/patch-src_libexpr_primops_fetchGit_cc
Normal file
|
@ -0,0 +1,23 @@
|
|||
Need sys/wait.h for WIFEXITED and WEXITSTATUS
|
||||
Make tar(1) read from stdin not default /dev/rst0
|
||||
|
||||
Index: src/libexpr/primops/fetchGit.cc
|
||||
--- src/libexpr/primops/fetchGit.cc.orig
|
||||
+++ src/libexpr/primops/fetchGit.cc
|
||||
@@ -6,6 +6,7 @@
|
||||
#include "hash.hh"
|
||||
|
||||
#include <sys/time.h>
|
||||
+#include <sys/wait.h>
|
||||
|
||||
#include <regex>
|
||||
|
||||
@@ -173,7 +174,7 @@ GitInfo exportGit(ref<Store> store, const std::string
|
||||
Path tmpDir = createTempDir();
|
||||
AutoDelete delTmpDir(tmpDir, true);
|
||||
|
||||
- runProgram("tar", true, { "x", "-C", tmpDir }, tar);
|
||||
+ runProgram("tar", true, { "-xf-", "-C", tmpDir }, tar);
|
||||
|
||||
gitInfo.storePath = store->addToStore(name, tmpDir);
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue