-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
movgrab 3.1.2 #49738
movgrab 3.1.2 #49738
Conversation
Build failed, mostly from
Looks like this is an incompatibility between the macOS and Linux functions of the same name. Neither version is POSIX. |
Looked into this. I've got patches to fix the issues; I think the diff --git a/Formula/movgrab.rb b/Formula/movgrab.rb
index 4e9ab45b40..c287658a27 100644
--- a/Formula/movgrab.rb
+++ b/Formula/movgrab.rb
@@ -16,6 +16,19 @@ class Movgrab < Formula
end
def install
+ # libUseful's configure script incorrectly detects macOS's getxattr functions,
+ # expecting them to be functionally equivalent to Linux's. They're not!
+ ENV["ac_cv_lib_c_getxattr"] = "no"
+ ENV["ac_cv_lib_c_setxattr"] = "no"
+
+ # Can you believe this? A forgotten semicolon! Probably got missed because it's
+ # behind a conditional #ifdef.
+ inreplace "libUseful-2.8/FileSystem.c", "result=-1", "result=-1;"
+
+ # Later versions of libUseful handle the fact that setresuid is Linux-only, but
+ # this one does not. https://github.com/ColumPaget/Movgrab/blob/master/libUseful/Process.c#L95-L99
+ inreplace "libUseful-2.8/Process.c", "setresuid(uid,uid,uid)", "setreuid(uid,uid)"
+
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make"
|
3b0f248
to
63e8138
Compare
Neat. I've also found a way to enable SSL using |
Created with
brew bump-formula-pr
.