diff options
| author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2022-11-15 07:47:42 +0000 |
|---|---|---|
| committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2022-11-15 07:47:42 +0000 |
| commit | 7863be845544d90c80f6e4d71ef0da9eda30b4dc (patch) | |
| tree | a3a25b45aac27879e4e281342928f4205d8524d7 /x11-fm/4pane/files/patch-Misc.cpp | |
| parent | databases/postgis3*: Update to latest versions (diff) | |
x11-fm/4pane: new port had been added (+)
4Pane is a multi-pane, detailed-list file manager for Unix-like
systems. It is designed to be fully-featured without bloat, and
aims for speed rather than visual effects.
The program relies on some GNU/Linux utilities and API to manage
disks and mounts. Non-portable calls to getmntent(3) et al. had
been replaced with our native getmntinfo(3) ones. However, full
storage support is still lacking, owing to limited blkid(8) and
lsblk(8) functionality and inconsistent naming of different file
systems between GNU/Linux and FreeBSD.
Diffstat (limited to 'x11-fm/4pane/files/patch-Misc.cpp')
| -rw-r--r-- | x11-fm/4pane/files/patch-Misc.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/x11-fm/4pane/files/patch-Misc.cpp b/x11-fm/4pane/files/patch-Misc.cpp new file mode 100644 index 000000000000..fc3e96fbcf6f --- /dev/null +++ b/x11-fm/4pane/files/patch-Misc.cpp @@ -0,0 +1,33 @@ +--- Misc.cpp.orig 2020-11-19 18:24:13 UTC ++++ Misc.cpp +@@ -511,7 +511,7 @@ wxArrayString output, errors; + wxCHECK_MSG(!lib.empty(), "", "Empty parameter"); + + wxArrayString output, errors; +-long ans = wxExecute("sh -c \"/sbin/ldconfig -p | grep " + lib + '\"', output,errors); ++long ans = wxExecute("sh -c \"/sbin/ldconfig -r | grep " + lib + '\"', output,errors); + if (ans != 0 || output.IsEmpty()) return ""; + + wxString fpath = output.Item(0).AfterLast(' '); +@@ -666,7 +666,12 @@ if (clientDC) delete clientDC; + #endif + //----------------------------------------------------------------------------------------------------------------------- + ++#ifdef __linux__ + #include <pty.h> ++#else ++#include <termios.h> ++#include <libutil.h> ++#endif + #include <errno.h> + #include <sys/wait.h> + +@@ -779,7 +784,7 @@ if (cmd.empty()) return ERROR_RETURN_CODE; + { + if (cmd.empty()) return ERROR_RETURN_CODE; + +-if (wxGetOsDescription().Contains(wxT("kFreeBSD"))) // The kFreeBSD forkpty hangs ++if (wxGetOsDescription().Contains(wxT("FreeBSD"))) // FreeBSD's forkpty() hangs + { if (GetCallerTextCtrl()) + InformCallerOnTerminate(); + return ERROR_RETURN_CODE; |
