Skip to content

Commit

Permalink
ncmpc 0.51
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <rui@chenrui.dev>

Co-authored-by: Carlo Cabrera <github@carlo.cab>
  • Loading branch information
chenrui333 and carlocab committed Jan 4, 2025
1 parent c344610 commit c31ac39
Show file tree
Hide file tree
Showing 2 changed files with 17 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
22 changes: 16 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,22 @@ 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 "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 +49,14 @@ class Ncmpc < Formula
end

def install

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

View workflow job for this annotation

GitHub Actions / Linux

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

int i; ----------- Command line: `g++-11 /tmp/ncmpc-20250104-6026-3256o8/ncmpc-0.51/build/meson-private/tmpdv4lscco/testfile.cpp -o /tmp/ncmpc-20250104-6026-3256o8/ncmpc-0.51/build/meson-private/tmpdv4lscco/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wunreachable-code-aggressive` -> 1 stderr: g++-11: error: unrecognized command-line option '-Wunreachable-code-aggressive' ----------- Compiler for C++ supports arguments -Wunreachable-code-aggressive: NO Running compile: Working directory: /tmp/ncmpc-20250104-6026-3256o8/ncmpc-0.51/build/meson-private/tmplc2qq12_ Code: extern int i; int i; ----------- Command line: `g++-11 /tmp/ncmpc-20250104-6026-3256o8/ncmpc-0.51/build/meson-private/tmplc2qq12_/testfile.cpp -o /tmp/ncmpc-20250104-6026-3256o8/ncmpc-0.51/build/meson-private/tmplc2qq12_/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wused-but-marked-unused` -> 1 stderr: g++-11: error: unrecognized command-line option '-Wused-but-marked-unused' ----------- Compiler for C++ supports arguments -Wused-but-marked-unused: NO Running compile: Working directory: /tmp/ncmpc-20250104-6026-3256o8/ncmpc-0.51/build/meson-private/tmpn4xzxwr9 Code: extern int i; int i; ----------- Command line: `g++-11 /tmp/ncmpc-20250104-6026-3256o8/ncmpc-0.51/build/meson-private/tmpn4xzxwr9/testfile.cpp -o /tmp/ncmpc-20250104-6026-3256o8/ncmpc-0.51/build/meson-private/tmpn4xzxwr9/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -fno-threadsafe-statics` -> 0 Compiler for C++ supports arguments -fno-threadsafe-statics: YES Running compile: Working directory: /tmp/ncmpc-20250104-6026-3256o8/ncmpc-0.51/build/meson-private/tmpluxfz6h2 Code: extern int i; int i; ----------- Command line: `g++-11 /tmp/ncmpc-20250104-6026-3256o8/ncmpc-0.51/build/meson-private/tmpluxfz6h2/testfile.cpp -o /tmp/ncmpc-20250104-6026-3256o8/ncmpc-0.51/build/meson-private/tmpluxfz6h2/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -fmerge-all-constants` -> 0 Compiler for C++ supports arguments -fmerge-all-constants: YES Running compile: Working directory: /tmp/ncmpc-20250104-6026-3256o8/ncmpc-0.51/build/meson-private/tmpjca5cx3m Code: extern int i; int i; ----------- Command line: `g++-11 /tmp/ncmpc-20250104-6026-3256o8/ncmpc-0.51/build/meson-private/tmpjca5cx3m/testfile.cpp -o /tmp/ncmpc-20250104-6026-3256o8/ncmpc-0.51/build/meson-private/tmpjca5cx3m/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wnon-virtual-dtor -Wno-non-virtual-dtor` -> 0 Compiler for C++ supports arguments -Wno-non-virtual-dtor: YES Running compile: Working directory: /tmp/ncmpc-20250104-6026-3256o8/ncmpc-0.51/build/meson-private/tmp8zfic22d Code: extern int i; int i; ----------- Command line: `g++-11 /tmp/ncmpc-20250104-6026-3256o8/ncmpc-0.51/build/meson-private/tmp8zfic22d/testfile.cpp -o /tmp/ncmpc-20250104-6026-3256o8/ncmpc-0.51/build/meson-private/tmp8zfic22d/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wformat-truncation -Wno-format-truncation` -> 0 Compiler for C++ supports arguments -Wno-format-truncation: YES Running compile: Working directory: /tmp/ncmpc-20250104-6026-3256o8/ncmpc-0.51/build/meson-private/tmpcqy2qaij Code: extern int i; int i; ----------- Command line: `g++-11 /tmp/ncmpc-20250104-6026-3256o8/ncmpc-0.51/build/meson-private/tmpcqy2qaij/testfile.cpp -o /tmp/ncmpc-20250104-6026-3256o8/ncmpc-0.51/build/meson-private/tmpcqy2qaij/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wcomma` -> 1 stderr: g++-11: error: unrecognized command-line option '-Wcomma'; did you mean '-Wcomment'? ----------- Compiler for C++ supports arguments -Wcomma: NO Running compile: Working directory: /tmp/ncmpc-20250104-6026-3256o8/ncmpc-0.51/build/meson-private/tmp7ev4bg41 Code: extern int i; int i; ----------- Command line: `g++-11 /tmp/ncmpc-20250104-6026-3256o8/ncmpc-0.51/build/meson-private/tmp7ev4bg41/testfile.cpp -o /tmp/ncmpc-20250104-6026-3256o8/ncmpc-0.51/build/meson-private/tmp7ev4bg41/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wheader-hygiene` -> 1 stderr: g++-11: error: unrecognized command-line option '-Wheader-hygiene

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

View workflow job for this annotation

GitHub Actions / macOS 15-arm64

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

----- ----------- Detecting linker via: `clang++ -Wl,--version` -> 1 stderr: ld: unknown options: --version clang++: error: linker command failed with exit code 1 (use -v to see invocation) ----------- ----------- Detecting Apple linker via: `clang++ -Wl,-v` -> 0 stderr: @(#)PROGRAM:ld PROJECT:ld-1115.7.3 BUILD 07:38:57 Oct 4 2024 configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em will use ld-classic for: armv6 armv7 armv7s i386 armv6m armv7k armv7m armv7em LTO support using: LLVM version 16.0.0 (static support for 29, runtime is 29) TAPI support using: Apple TAPI version 16.0.0 (tapi-1600.0.11.8) ----------- Sanity testing C++ compiler: clang++ Is cross compiler: False. Sanity check compiler command line: clang++ sanitycheckcpp.cc -o sanitycheckcpp.exe Sanity check compile stdout: ----- Sanity check compile stderr: ----- Running test binary command: /private/tmp/ncmpc-20250104-7970-wc2miw/ncmpc-0.51/build/meson-private/sanitycheckcpp.exe C++ compiler for the host machine: clang++ (clang 16.0.0 "Apple clang version 16.0.0 (clang-1600.0.26.4)") C++ linker for the host machine: clang++ ld64 1115.7.3 ----------- Detecting archiver via: `llvm-ar-16 --version` -> [Errno 2] No such file or directory: 'llvm-ar-16' ----------- Detecting archiver via: `llvm-ar --version` -> [Errno 2] No such file or directory: 'llvm-ar' ----------- Detecting archiver via: `ar --version` -> 1 stderr: usage: ar -d [-TLsv] archive file ... ar -m [-TLsv] archive file ... ar -m [-abiTLsv] position archive file ... ar -p [-TLsv] archive [file ...] ar -q [-cTLsv] archive file ... ar -r [-cuTLsv] archive file ... ar -r [-abciuTLsv] position archive file ... ar -t [-TLsv] archive [file ...] ar -x [-ouTLsv] archive [file ...] ----------- ----------- Detecting compiler via: `clang++ --version` -> 0 stdout: Apple clang version 16.0.0 (clang-1600.0.26.4) Target: arm64-apple-darwin24.1.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin ----------- Running command: -x c++ -E -dM - ----- ----------- Detecting linker via: `clang++ -Wl,--version` -> 1 stderr: ld: unknown options: --version clang++: error: linker command failed with exit code 1 (use -v to see invocation) ----------- ----------- Detecting Apple linker via: `clang++ -Wl,-v` -> 0 stderr: @(#)PROGRAM:ld PROJECT:ld-1115.7.3 BUILD 07:38:57 Oct 4 2024 configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em will use ld-classic for: armv6 armv7 armv7s i386 armv6m armv7k armv7m armv7em LTO support using: LLVM version 16.0.0 (static support for 29, runtime is 29) TAPI support using: Apple TAPI version 16.0.0 (tapi-1600.0.11.8) ----------- Sanity testing C++ compiler: clang++ Is cross compiler: False. Sanity check compiler command line: clang++ sanitycheckcpp.cc -o sanitycheckcpp.exe Sanity check compile stdout: ----- Sanity check compile stderr: ----- Running test binary command: /private/tmp/ncmpc-20250104-7970-wc2miw/ncmpc-0.51/build/meson-private/sanitycheckcpp.exe C++ compiler for the build machine: clang++ (clang 16.0.0 "Apple clang version 16.0.0 (clang-1600.0.26.4)") C++ linker for the build machine: clang++ ld64 1115.7.3 ----------- Detecting archiver via: `llvm-ar-16 --version` -> [Errno 2] No such file or directory: 'llvm-ar-16' ----------- Detecting archiver via: `llvm-ar --version` -> [Errno 2] No such file or directory: 'llvm-ar' ----------- Detecting archiver via: `ar --version` -> 1 stderr: usage: ar -d [-TLsv] archive file ... ar -m [-TLsv] archive file ... ar -m [-abiTLsv] position archive file ... ar -p [-TLsv] archive [file ...] ar -q [-cTLsv] archive file ... ar -r [-cuTLsv] archive file ... ar -r [-abciuTLsv] position archive file ... ar -t [-TLsv] archive [file ...] ar -x [-ouTLsv] archive [file ...] ----------- Build machine cpu family: aarch64 Build machine

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

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

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

----- ----------- Detecting linker via: `clang++ -Wl,--version` -> 1 stderr: ld: unknown options: --version clang++: error: linker command failed with exit code 1 (use -v to see invocation) ----------- ----------- Detecting Apple linker via: `clang++ -Wl,-v` -> 0 stderr: @(#)PROGRAM:ld PROJECT:ld-1115.7.3 BUILD 07:38:57 Oct 4 2024 configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em will use ld-classic for: armv6 armv7 armv7s i386 armv6m armv7k armv7m armv7em LTO support using: LLVM version 16.0.0 (static support for 29, runtime is 29) TAPI support using: Apple TAPI version 16.0.0 (tapi-1600.0.11.8) ----------- Sanity testing C++ compiler: clang++ Is cross compiler: False. Sanity check compiler command line: clang++ sanitycheckcpp.cc -o sanitycheckcpp.exe Sanity check compile stdout: ----- Sanity check compile stderr: ----- Running test binary command: /private/tmp/ncmpc-20250104-8040-7oz6me/ncmpc-0.51/build/meson-private/sanitycheckcpp.exe C++ compiler for the host machine: clang++ (clang 16.0.0 "Apple clang version 16.0.0 (clang-1600.0.26.4)") C++ linker for the host machine: clang++ ld64 1115.7.3 ----------- Detecting archiver via: `llvm-ar-16 --version` -> [Errno 2] No such file or directory: 'llvm-ar-16' ----------- Detecting archiver via: `llvm-ar --version` -> [Errno 2] No such file or directory: 'llvm-ar' ----------- Detecting archiver via: `ar --version` -> 1 stderr: usage: ar -d [-TLsv] archive file ... ar -m [-TLsv] archive file ... ar -m [-abiTLsv] position archive file ... ar -p [-TLsv] archive [file ...] ar -q [-cTLsv] archive file ... ar -r [-cuTLsv] archive file ... ar -r [-abciuTLsv] position archive file ... ar -t [-TLsv] archive [file ...] ar -x [-ouTLsv] archive [file ...] ----------- ----------- Detecting compiler via: `clang++ --version` -> 0 stdout: Apple clang version 16.0.0 (clang-1600.0.26.4) Target: arm64-apple-darwin23.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin ----------- Running command: -x c++ -E -dM - ----- ----------- Detecting linker via: `clang++ -Wl,--version` -> 1 stderr: ld: unknown options: --version clang++: error: linker command failed with exit code 1 (use -v to see invocation) ----------- ----------- Detecting Apple linker via: `clang++ -Wl,-v` -> 0 stderr: @(#)PROGRAM:ld PROJECT:ld-1115.7.3 BUILD 07:38:57 Oct 4 2024 configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em will use ld-classic for: armv6 armv7 armv7s i386 armv6m armv7k armv7m armv7em LTO support using: LLVM version 16.0.0 (static support for 29, runtime is 29) TAPI support using: Apple TAPI version 16.0.0 (tapi-1600.0.11.8) ----------- Sanity testing C++ compiler: clang++ Is cross compiler: False. Sanity check compiler command line: clang++ sanitycheckcpp.cc -o sanitycheckcpp.exe Sanity check compile stdout: ----- Sanity check compile stderr: ----- Running test binary command: /private/tmp/ncmpc-20250104-8040-7oz6me/ncmpc-0.51/build/meson-private/sanitycheckcpp.exe C++ compiler for the build machine: clang++ (clang 16.0.0 "Apple clang version 16.0.0 (clang-1600.0.26.4)") C++ linker for the build machine: clang++ ld64 1115.7.3 ----------- Detecting archiver via: `llvm-ar-16 --version` -> [Errno 2] No such file or directory: 'llvm-ar-16' ----------- Detecting archiver via: `llvm-ar --version` -> [Errno 2] No such file or directory: 'llvm-ar' ----------- Detecting archiver via: `ar --version` -> 1 stderr: usage: ar -d [-TLsv] archive file ... ar -m [-TLsv] archive file ... ar -m [-abiTLsv] position archive file ... ar -p [-TLsv] archive [file ...] ar -q [-cTLsv] archive file ... ar -r [-cuTLsv] archive file ... ar -r [-abciuTLsv] position archive file ... ar -t [-TLsv] archive [file ...] ar -x [-ouTLsv] archive [file ...] ----------- Build machine cpu family: aarch64 Build machine c
ENV.llvm_clang if OS.mac? && (DevelopmentTools.clang_build_version <= 1300)
if OS.mac? && (DevelopmentTools.clang_build_version <= 1500)
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 c31ac39

Please sign in to comment.