Skip to content
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

freeswitch: declare indirect deps with linkage #178326

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Formula/f/freeswitch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@
uses_from_macos "libxcrypt"
uses_from_macos "zlib"

on_linux do
depends_on "freetype"
depends_on "libpng"
depends_on "opencore-amr"
end

# https://github.com/Homebrew/homebrew/issues/42865

#----------------------- Begin sound file resources -------------------------
Expand Down Expand Up @@ -124,7 +130,7 @@
revision: "c432105788424d1ddb7c59aacd49e9bfa3c5e917"
end

def install

Check failure on line 133 in Formula/f/freeswitch.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

`brew install --verbose --formula --build-bottle freeswitch` failed on macOS Sonoma (14) on Apple Silicon!

t/homebrew/Library/Homebrew/shims/mac/super/clang -DCJSON_HIDE_SYMBOLS=1 -DHAVE_DIRENT_H=1 -DHAVE_DLFCN_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBSSL=1 -DHAVE_MALLOC=1 -DHAVE_MEMMEM=1 -DHAVE_MEMORY_H=1 -DHAVE_PTHREAD_ATTR_SETSCHEDPARAM=1 -DHAVE_SCHED_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRINGS_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_USLEEP=1 -DKS_API_VISIBILITY=1 -DKS_EXPORTS -DKS_PLAT_MAC=1 -DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE_NAME=\"libks2\" -DPACKAGE_STRING="\"libks2 2.0.2\"" -DPACKAGE_TARNAME=\"libks2\" -DPACKAGE_URL=\"\" -DPACKAGE_VERSION=\"2.0.2\" -DRETSIGTYPE=void -DSTDC_HEADERS=1 -DTIME_WITH_SYS_TIME=1 -DVERSION=\"2.0.2\" -D_GNU_SOURCE=1 -D_REENTRANT=1 -D__BYTE_ORDER=__LITTLE_ENDIAN -I/tmp/freeswitch--libks-20240724-31178-8au5xw/src/include -I/tmp/freeswitch--libks-20240724-31178-8au5xw -isystem /opt/homebrew/Cellar/openssl@3/3.3.1/include -isystem /opt/homebrew/Cellar/util-linux/2.40.2/include/uuid -std=c11 -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -fPIC -fvisibility=hidden -O2 -g -Wno-parentheses -Wno-pointer-sign -Wno-switch -MD -MT CMakeFiles/ks2.dir/src/ks_pool.c.o -MF CMakeFiles/ks2.dir/src/ks_pool.c.o.d -o CMakeFiles/ks2.dir/src/ks_pool.c.o -c /tmp/freeswitch--libks-20240724-31178-8au5xw/src/ks_pool.c [ 22%] Building C object CMakeFiles/ks2.dir/src/ks_printf.c.o /opt/homebrew/Library/Homebrew/shims/mac/super/clang -DCJSON_HIDE_SYMBOLS=1 -DHAVE_DIRENT_H=1 -DHAVE_DLFCN_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBSSL=1 -DHAVE_MALLOC=1 -DHAVE_MEMMEM=1 -DHAVE_MEMORY_H=1 -DHAVE_PTHREAD_ATTR_SETSCHEDPARAM=1 -DHAVE_SCHED_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRINGS_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_USLEEP=1 -DKS_API_VISIBILITY=1 -DKS_EXPORTS -DKS_PLAT_MAC=1 -DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE_NAME=\"libks2\" -DPACKAGE_STRING="\"libks2 2.0.2\"" -DPACKAGE_TARNAME=\"libks2\" -DPACKAGE_URL=\"\" -DPACKAGE_VERSION=\"2.0.2\" -DRETSIGTYPE=void -DSTDC_HEADERS=1 -DTIME_WITH_SYS_TIME=1 -DVERSION=\"2.0.2\" -D_GNU_SOURCE=1 -D_REENTRANT=1 -D__BYTE_ORDER=__LITTLE_ENDIAN -I/tmp/freeswitch--libks-20240724-31178-8au5xw/src/include -I/tmp/freeswitch--libks-20240724-31178-8au5xw -isystem /opt/homebrew/Cellar/openssl@3/3.3.1/include -isystem /opt/homebrew/Cellar/util-linux/2.40.2/include/uuid -std=c11 -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -fPIC -fvisibility=hidden -O2 -g -Wno-parentheses -Wno-pointer-sign -Wno-switch -MD -MT CMakeFiles/ks2.dir/src/ks_printf.c.o -MF CMakeFiles/ks2.dir/src/ks_printf.c.o.d -o CMakeFiles/ks2.dir/src/ks_printf.c.o -c /tmp/freeswitch--libks-20240724-31178-8au5xw/src/ks_printf.c [ 24%] Building C object CMakeFiles/ks2.dir/src/ks_q.c.o /opt/homebrew/Library/Homebrew/shims/mac/super/clang -DCJSON_HIDE_SYMBOLS=1 -DHAVE_DIRENT_H=1 -DHAVE_DLFCN_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBSSL=1 -DHAVE_MALLOC=1 -DHAVE_MEMMEM=1 -DHAVE_MEMORY_H=1 -DHAVE_PTHREAD_ATTR_SETSCHEDPARAM=1 -DHAVE_SCHED_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRINGS_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_USLEEP=1 -DKS_API_VISIBILITY=1 -DKS_EXPORTS -DKS_PLAT_MAC=1 -DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE_NAME=\"libks2\" -DPACKAGE_STRING="\"libks2 2.0.2\"" -DPACKAGE_TARNAME=\"libks2\" -DPACKAGE_URL=\"\" -DPACKAGE_VERSION=\"2.0.2\" -DRETSIGTYPE=void -DSTDC_HEADERS=1 -DTIME_WITH_SYS_TIME=1 -DVERSION=\"2.0.2\" -D_GNU_SOURCE=1 -D_REENTRANT=1 -D__BYTE_ORDER=__LITTLE_ENDIAN -I/tmp/freeswitch--libks-20240724-31178-8au5xw/src/include -I/tmp/freeswitch--libks-20240724-31178-8au5xw -isystem /opt/homebrew/Cellar/openssl@3/3.3.1/include -isystem /opt/homebrew/Cellar/util-linux/2.40.2/include/uuid -std=c11 -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -fPIC -fvisibility=hidden -O2 -g -Wno-parentheses -Wno-pointer-sign -Wno-switch -MD -MT CMakeFiles/ks2.dir/src/ks
resource("spandsp").stage do
system "./bootstrap.sh"
system "./configure", "--disable-debug",
Expand All @@ -138,6 +144,10 @@
end

resource("libks").stage do
# Work-around for build issue with Xcode 15.3
# upstream bug report, https://github.com/signalwire/libks/issues/204
ENV.append_to_cflags "-Wno-incompatible-function-pointer-types" if DevelopmentTools.clang_build_version >= 1500

system "cmake", ".", *std_cmake_args(install_prefix: libexec/"libks")
system "cmake", "--build", "."
system "cmake", "--install", "."
Expand Down
Loading