Skip to content

Commit

Permalink
ncmpc 0.51
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <[email protected]>

Co-authored-by: Carlo Cabrera <[email protected]>
  • Loading branch information
chenrui333 and carlocab committed Jan 5, 2025
1 parent 2e17440 commit 4932135
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2123,6 +2123,7 @@ nbdime
ncc
ncdc
ncdu
ncmpc
ncmpcpp
ncnn
nco
Expand Down
26 changes: 20 additions & 6 deletions Formula/n/ncmpc.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Ncmpc < Formula
desc "Curses Music Player Daemon (MPD) client"
homepage "https://www.musicpd.org/clients/ncmpc/"
url "https://www.musicpd.org/download/ncmpc/0/ncmpc-0.49.tar.xz"
sha256 "65bbec0ede9e6bcf62ac647b0c706485beb2bdd5db70ca8d60103f32f162cf29"
url "https://www.musicpd.org/download/ncmpc/0/ncmpc-0.51.tar.xz"
sha256 "e74be00e69bc3ed1268cafcc87274e78dfbde147f2480ab0aad8260881ec7271"
license "GPL-2.0-or-later"

livecheck do
Expand All @@ -24,19 +24,24 @@ class Ncmpc < Formula
end

depends_on "boost" => :build
depends_on "gettext" => :build
depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkgconf" => :build
depends_on "gettext"

depends_on "fmt"
depends_on "libmpdclient"
depends_on "pcre2"

uses_from_macos "ncurses"

on_macos do
depends_on "llvm" => :build if DevelopmentTools.clang_build_version <= 1300
depends_on "gettext"
depends_on "llvm" if DevelopmentTools.clang_build_version <= 1500
end

fails_with :clang do
build 1300
build 1500
cause "Requires C++20"
end

Expand All @@ -46,7 +51,16 @@ class Ncmpc < Formula
end

def install

Check failure on line 53 in Formula/n/ncmpc.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

`brew install --verbose --formula --build-bottle ncmpc` failed on macOS Ventura (13) on Apple Silicon!

----- ----------- Detecting linker via: `llvm_clang++ -Wl,--version -L/opt/homebrew/opt/llvm/lib/c++ -L/opt/homebrew/opt/llvm/lib -lunwind` -> 1 stderr: ld: unknown options: --version clang++: error: linker command failed with exit code 1 (use -v to see invocation) ----------- ----------- Detecting Apple linker via: `llvm_clang++ -Wl,-v -L/opt/homebrew/opt/llvm/lib/c++ -L/opt/homebrew/opt/llvm/lib -lunwind` -> 1 stderr: @(#)PROGRAM:ld PROJECT:dyld-1022.1 BUILD 05:27:37 Dec 7 2023 configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h will use ld-classic for: armv6 armv7 armv7s arm64_32 i386 armv6m armv7k armv7m armv7em LTO support using: LLVM version 19.1.6 (static support for 29, runtime is 29) TAPI support using: Apple TAPI version 15.0.0 (tapi-1500.0.12.8) Library search paths: /opt/homebrew/opt/readline/lib /opt/homebrew/opt/sqlite/lib /opt/homebrew/lib /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib /opt/homebrew/opt/llvm/lib /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries /opt/homebrew/opt/llvm/lib/c++ /opt/homebrew/opt/llvm/lib /opt/homebrew/opt/readline/lib /opt/homebrew/opt/sqlite/lib /opt/homebrew/lib /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib /opt/homebrew/opt/llvm/lib /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries Framework search paths: ld: library 'unwind' not found clang++: error: linker command failed with exit code 1 (use -v to see invocation) ----------- Sanity testing C++ compiler: llvm_clang++ Is cross compiler: False. Sanity check compiler command line: llvm_clang++ sanitycheckcpp.cc -o sanitycheckcpp.exe -L/opt/homebrew/opt/llvm/lib/c++ -L/opt/homebrew/opt/llvm/lib -lunwind Sanity check compile stdout: ----- Sanity check compile stderr: ld: library 'unwind' not found clang++: error: linker command failed with exit code 1 (use -v to see invocation) ----- meson.build:1:0: ERROR: Compiler llvm_clang++ cannot compile programs. ::endgroup:: ==> Formula Path: /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/n/ncmpc.rb ==> Configuration HOMEBREW_VERSION: 4.4.14-42-gb6fafba ORIGIN: https://github.com/Homebrew/brew HEAD: b6fafba4864d65acabf966415e14b2dd86d81e1a Last commit: 2 hours ago Branch: master Core tap HEAD: 409c70072f9017e866ff9a31af71861293159072 Core tap last commit: 8 minutes ago Core tap JSON: 05 Jan 03:50 UTC Core cask tap JSON: 05 Jan 03:50 UTC HOMEBREW_PREFIX: /opt/homebrew HOMEBREW_BOOTSNAP: set HOMEBREW_CACHE: /Users/brew/Library/Caches/Homebrew HOMEBREW_CASK_OPTS: [] HOMEBREW_COLOR: set HOMEBREW_CURL_PATH: /usr/bin/curl HOMEBREW_FAIL_LOG_LINES: 150 HOMEBREW_GITHUB_API_TOKEN: set HOMEBREW_GIT_EMAIL: [email protected] HOMEBREW_GIT_NAME: BrewTestBot HOMEBREW_GIT_PATH: /usr/bin/git HOMEBREW_LOGS: /Users/brew/actions-runner/_work/homebrew-core/homebrew-core/bottles/logs HOMEBREW_MAKE_JOBS: 4 HOMEBREW_NO_AUTO_UPDATE: set HOMEBREW_NO_EMOJI: set HOMEBREW_NO_ENV_HINTS: set HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: set HOMEBREW_NO_INSTALL_FROM_API: set HOMEBREW_SORBET_RUNTIME: set HOMEBREW_VERIFY_ATTESTATIONS: set Homebrew Ruby: 3.3.6 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby CPU: quad-core 64-bit dunno Clang: 15.0.0 build 1500 Git: 2.39.3 => /usr/bin/git Curl: 8.7.1 => /usr/bin/curl macOS: 13.7-arm64 CLT: 15.1.0.0.1.1700200546 Xcode: 15.2 Rosetta 2: false ==> ENV HOMEBREW_CC: llvm_clang HOMEBREW_CXX: llvm_clang++ LDFLAGS: -L/opt/homebrew/opt/llvm/lib/c++ -L/opt/homebrew/opt/llvm/lib -lunwind MAKEFLAGS: -j4 CMAKE_PREFIX_PATH: /opt/homebrew/opt/readline:/opt/homebrew/opt/sqlite:/opt/homebrew/opt/llvm:/opt/homebrew CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks

Check failure on line 53 in Formula/n/ncmpc.rb

View workflow job for this annotation

GitHub Actions / macOS 13-x86_64

`brew install --verbose --formula --build-bottle ncmpc` failed on macOS Ventura (13)!

----- ----------- Detecting linker via: `llvm_clang++ -Wl,--version -L/usr/local/opt/llvm/lib/c++ -L/usr/local/opt/llvm/lib -lunwind` -> 1 stderr: ld: unknown options: --version clang++: error: linker command failed with exit code 1 (use -v to see invocation) ----------- ----------- Detecting Apple linker via: `llvm_clang++ -Wl,-v -L/usr/local/opt/llvm/lib/c++ -L/usr/local/opt/llvm/lib -lunwind` -> 1 stderr: @(#)PROGRAM:ld PROJECT:dyld-1022.1 BUILD 05:26:33 Dec 7 2023 configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h will use ld-classic for: armv6 armv7 armv7s arm64_32 i386 armv6m armv7k armv7m armv7em LTO support using: LLVM version 19.1.6 (static support for 29, runtime is 29) TAPI support using: Apple TAPI version 15.0.0 (tapi-1500.0.12.8) Library search paths: /usr/local/opt/readline/lib /usr/local/opt/sqlite/lib /usr/local/lib /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib /usr/local/opt/llvm/lib /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries /usr/local/opt/llvm/lib/c++ /usr/local/opt/llvm/lib /usr/local/opt/readline/lib /usr/local/opt/sqlite/lib /usr/local/lib /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib /usr/local/opt/llvm/lib /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries Framework search paths: ld: library 'unwind' not found clang++: error: linker command failed with exit code 1 (use -v to see invocation) ----------- Sanity testing C++ compiler: llvm_clang++ Is cross compiler: False. Sanity check compiler command line: llvm_clang++ sanitycheckcpp.cc -o sanitycheckcpp.exe -L/usr/local/opt/llvm/lib/c++ -L/usr/local/opt/llvm/lib -lunwind Sanity check compile stdout: ----- Sanity check compile stderr: ld: library 'unwind' not found clang++: error: linker command failed with exit code 1 (use -v to see invocation) ----- meson.build:1:0: ERROR: Compiler llvm_clang++ cannot compile programs. ::endgroup:: ==> Formula Path: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/n/ncmpc.rb ==> Configuration HOMEBREW_VERSION: 4.4.14-42-gb6fafba ORIGIN: https://github.com/Homebrew/brew HEAD: b6fafba4864d65acabf966415e14b2dd86d81e1a Last commit: 2 hours ago Branch: master Core tap HEAD: 409c70072f9017e866ff9a31af71861293159072 Core tap last commit: 11 minutes ago Core tap JSON: 05 Jan 03:52 UTC Core cask tap JSON: 05 Jan 03:52 UTC HOMEBREW_PREFIX: /usr/local HOMEBREW_BOOTSNAP: set HOMEBREW_CACHE: /Users/brew/Library/Caches/Homebrew HOMEBREW_CASK_OPTS: [] HOMEBREW_COLOR: set HOMEBREW_CURL_PATH: /usr/bin/curl HOMEBREW_FAIL_LOG_LINES: 150 HOMEBREW_GITHUB_API_TOKEN: set HOMEBREW_GIT_EMAIL: [email protected] HOMEBREW_GIT_NAME: BrewTestBot HOMEBREW_GIT_PATH: /usr/bin/git HOMEBREW_LOGS: /Users/brew/actions-runner/_work/homebrew-core/homebrew-core/bottles/logs HOMEBREW_MAKE_JOBS: 6 HOMEBREW_NO_AUTO_UPDATE: set HOMEBREW_NO_EMOJI: set HOMEBREW_NO_ENV_HINTS: set HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: set HOMEBREW_NO_INSTALL_FROM_API: set HOMEBREW_SORBET_RUNTIME: set HOMEBREW_VERIFY_ATTESTATIONS: set Homebrew Ruby: 3.3.6 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby CPU: hexa-core 64-bit penryn Clang: 15.0.0 build 1500 Git: 2.39.3 => /usr/bin/git Curl: 8.7.1 => /usr/bin/curl macOS: 13.7-x86_64 CLT: 15.1.0.0.1.1700200546 Xcode: 15.2 ==> ENV HOMEBREW_CC: llvm_clang HOMEBREW_CXX: llvm_clang++ LDFLAGS: -L/usr/local/opt/llvm/lib/c++ -L/usr/local/opt/llvm/lib -lunwind MAKEFLAGS: -j6 CMAKE_PREFIX_PATH: /usr/local/opt/readline:/usr/local/opt/sqlite:/usr/local/opt/llvm:/usr/local CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries CMAKE_FRAMEWORK_PATH: /usr
ENV.llvm_clang if OS.mac? && (DevelopmentTools.clang_build_version <= 1300)
if OS.mac? && (DevelopmentTools.clang_build_version <= 1500)
ENV.prepend_path "PATH", Formula["llvm"].opt_bin
ENV.llvm_clang

# Work around failure mixing newer `llvm` headers with older Xcode's libc++:
# Undefined symbols for architecture arm64:
# "std::exception_ptr::__from_native_exception_pointer(void*)", referenced from:
# std::exception_ptr std::make_exception_ptr[abi:fe190100]<std::runtime_error>(std::runtime_error)...
ENV.append "LDFLAGS", "-L#{Formula["llvm"].opt_lib}/c++ -L#{Formula["llvm"].opt_lib} -lunwind"
end

system "meson", "setup", "build", "-Dcolors=false", "-Dnls=enabled", "-Dregex=enabled", *std_meson_args
system "meson", "compile", "-C", "build", "--verbose"
Expand Down

0 comments on commit 4932135

Please sign in to comment.