Skip to content

Commit

Permalink
attempt patch
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmark committed Dec 31, 2024
1 parent 5e76486 commit 1195a6c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Formula/n/netatalk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,26 @@ class Netatalk < Formula
depends_on "libevent"
depends_on "libgcrypt"
depends_on "mysql"
depends_on "openldap" # LDAP.Framework is not fork safe
depends_on "openldap" # macOS LDAP.Framework is not fork safe

uses_from_macos "libxslt" => :build
uses_from_macos "perl"

# on macOS we use native mDNS for Zeroconf; Avahi is required on Linux only
on_linux do
depends_on "avahi"
depends_on "dbus"
end

patch do
url "https://github.com/Netatalk/netatalk/commit/c8eb09c7347fd8eeccb285e2a9fce11b704432ec.patch?full_index=1"
sha256 "b024eb5d33cef808c3590e7d98ef84e6b73e687a56d210ff18193d4c503d0ece"
end

def install

Check failure on line 42 in Formula/n/netatalk.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew install --verbose --formula --build-bottle netatalk` failed on Linux!

----------- Command line: `gcc-11 /tmp/netatalk-20241231-7807-778kfn/netatalk-4.0.8/build/meson-private/tmp9c5qh9x2/testfile.c -o /tmp/netatalk-20241231-7807-778kfn/netatalk-4.0.8/build/meson-private/tmp9c5qh9x2/output.exe -D_FILE_OFFSET_BITS=64 -O0 -lsocket -Wl,--allow-shlib-undefined` -> 1 stderr: /usr/bin/ld: cannot find -lsocket: No such file or directory collect2: error: ld returned 1 exit status ----------- Running compile: Working directory: /tmp/netatalk-20241231-7807-778kfn/netatalk-4.0.8/build/meson-private/tmpopdwe8ta Code: #include<stddef.h> #include<stdio.h> int main(void) { printf("%ld\n", (long)(sizeof(void *))); return 0; } ----------- Command line: `gcc-11 /tmp/netatalk-20241231-7807-778kfn/netatalk-4.0.8/build/meson-private/tmpopdwe8ta/testfile.c -o /tmp/netatalk-20241231-7807-778kfn/netatalk-4.0.8/build/meson-private/tmpopdwe8ta/output.exe -D_FILE_OFFSET_BITS=64 -O0` -> 0 Program stdout: 8 Program stderr: Running compile: Working directory: /tmp/netatalk-20241231-7807-778kfn/netatalk-4.0.8/build/meson-private/tmp4uvx5wmn Code: ----------- Command line: `gcc-11 /tmp/netatalk-20241231-7807-778kfn/netatalk-4.0.8/build/meson-private/tmp4uvx5wmn/testfile.c -o /tmp/netatalk-20241231-7807-778kfn/netatalk-4.0.8/build/meson-private/tmp4uvx5wmn/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 --print-search-dirs` -> 0 stdout: install: /usr/lib/gcc/x86_64-linux-gnu/11/ programs: =/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/bin/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/bin/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/bin/ libraries: =/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/lib/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/lib/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/:/lib/x86_64-linux-gnu/11/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/11/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/lib/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../:/lib/:/usr/lib/ ----------- Library socket found: NO Running compile: Working directory: /tmp/netatalk-20241231-7807-778kfn/netatalk-4.0.8/build/meson-private/tmp1pz_wplr Code: int main(void) { return 0; } ----------- Command line: `gcc-11 /tmp/netatalk-20241231-7807-778kfn/netatalk-4.0.8/build/meson-private/tmp1pz_wplr/testfile.c -o /tmp/netatalk-20241231-7807-778kfn/netatalk-4.0.8/build/meson-private/tmp1pz_wplr/output.exe -D_FILE_OFFSET_BITS=64 -O0 -lsendfile -Wl,--allow-shlib-undefined` -> 1 stderr: /usr/bin/ld: cannot find -lsendfile: No such file or directory collect2: error: ld returned 1 exit status ----------- Library sendfile found: NO Running compile: Working directory: /tmp/netatalk-20241231-7807-778kfn/netatalk-4.0.8/build/meson-private/tmpypo77xlu Code: int main(void) { return 0; } ----------- Command line: `gcc-11 /tmp/netatalk-20241231-7807-778kfn/netatalk-4.0.8/build/meson-private/tmpypo77xlu/testfile.c -o /tmp/netatalk-20241231-7807-778kfn/netatalk-4.0.8/build/meson-private/tmpypo77xlu/output.exe -D_FILE_OFFSET_BITS=64 -O0 -lnsl -Wl,--allow-shlib-undefined` -> 0 Library nsl found: YES Running compile: Working directory: /tmp/netatalk-20241231-7807-778kfn/netatalk-4.0.8/build/meson-private/tmpzmh1uy6h Code: int main(void) { return 0; } ----------- Command line: `gcc-11 /tmp/netatalk-20241231-7807-778kfn/netatalk-4.0.8/build/meson-private/tmpzmh1uy6h/testfile.c -o /tmp/netatalk-20241231-7807-778kfn/netatalk-4.0.8/build/meson-private/tmpzmh1uy6h/output.exe -D_FILE_OFFSET
args = [
"-Dwith-afpstats=false",
"-Dwith-appletalk=#{OS.linux?}",
"-Dwith-bdb-path=#{Formula["berkeley-db@5"].opt_prefix}",
"-Dwith-docbook-path=#{Formula["docbook-xsl"].opt_prefix}/docbook-xsl",
"-Dwith-appletalk=#{OS.linux?}", # macOS doesn't have an AppleTalk stack
"-Dwith-init-style=none",
"-Dwith-install-hooks=false",
"-Dwith-pam-config-path=#{etc}/pam.d",
Expand Down

0 comments on commit 1195a6c

Please sign in to comment.