SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View 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);