Skip to content

Commit 9fa6ce8

Browse files
authored
Merge pull request #200785 from Homebrew/bump-libnfs-6.0.0
libnfs 6.0.0
2 parents 7ae3f0d + 425377a commit 9fa6ce8

File tree

2 files changed

+49
-26
lines changed

2 files changed

+49
-26
lines changed

Formula/lib/libnfs.rb

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,47 @@
11
class Libnfs < Formula
22
desc "C client library for NFS"
33
homepage "https://github.com/sahlberg/libnfs"
4-
url "https://github.com/sahlberg/libnfs/archive/refs/tags/libnfs-5.0.3.tar.gz"
5-
sha256 "d945cb4f4c8f82ee1f3640893a168810f794a28e1010bb007ec5add345e9df3e"
4+
url "https://github.com/sahlberg/libnfs/archive/refs/tags/libnfs-6.0.0.tar.gz"
5+
sha256 "6fe64b5a47b2558484c8beb05819c1f1f3e52cc52a7b3a8b805faf398e9a9c24"
66
license "LGPL-2.1-or-later"
77

88
bottle do
9-
sha256 cellar: :any, arm64_sequoia: "e758339be8153e070291e70acb20491ef97d2f1c56a2778e11f356ffcefc60ff"
10-
sha256 cellar: :any, arm64_sonoma: "7a52ed77480250f7f6503c89b55939851022fda4b557723df98ee14572900003"
11-
sha256 cellar: :any, arm64_ventura: "dff7c08f835774d855710f8195b3fa53d38b4a0d89a1277f8e422d2de6117e21"
12-
sha256 cellar: :any, arm64_monterey: "06f16c29ed988b38d91ee5f800b93116b41288f993a694603f0af3584f59fdb9"
13-
sha256 cellar: :any, sonoma: "165309bcf7d58c4bbe4c62889d8de976b85e01102e1e49eb4a7d84632b35ef13"
14-
sha256 cellar: :any, ventura: "00999f67b246396751e8fd9137cb057bf14b2b99f0d059fdaf6e2cb0fa25998f"
15-
sha256 cellar: :any, monterey: "1df9d2c2a44214573663eff072d237b090d297ceadca7ab2923daca3cabc6a99"
16-
sha256 cellar: :any_skip_relocation, x86_64_linux: "da4022b87ad4d500dafafeccbf35e4bebcf2bbbcf23bb47a37c0b35edec09ec5"
9+
sha256 cellar: :any, arm64_sequoia: "fcb8f457b3c931062da17f2b03dc212cac367b2c03bc62b2b74cdffc6c5e6df4"
10+
sha256 cellar: :any, arm64_sonoma: "21ce9df74b1ef7002f78d97a6fd03ed5e7d14f16649a415fa3fcebda67ccbf28"
11+
sha256 cellar: :any, arm64_ventura: "a528cf7f37ed7c7372cf2af7ea4ce62898fc47b711a30d0f0ec9382c0808f828"
12+
sha256 cellar: :any, sonoma: "1137695cb76bf3596ce1f1ed1ddbc6027c588555eeb6f017c2c3f052bab1a04b"
13+
sha256 cellar: :any, ventura: "7260fb1a04639b3c2c4b1e8967a8b75ec012540d9de6d612079749799f42021c"
14+
sha256 cellar: :any_skip_relocation, x86_64_linux: "c526e05b0f69358b24b175a100e4ddfae37f82a747286c6c1d0580731ce259e8"
1715
end
1816

19-
depends_on "autoconf" => :build
20-
depends_on "automake" => :build
21-
depends_on "libtool" => :build
17+
depends_on "cmake" => :build
18+
depends_on "docbook" => :build
19+
depends_on "docbook-xsl" => :build
20+
21+
# Ref: https://github.com/sahlberg/libnfs/commit/2044497b7faba9404a3a17e81cbfdeb5e8aaaa9c
22+
# Remove on next release
23+
patch do
24+
url "https://github.com/sahlberg/libnfs/commit/2044497b7faba9404a3a17e81cbfdeb5e8aaaa9c.patch?full_index=1"
25+
sha256 "b31e61faa640ea1c5b590bc884c57fef2d6c40e9ee94596353648d057026bc1b"
26+
end
27+
28+
# rpath config patch, upstream pr ref, https://github.com/sahlberg/libnfs/pull/502
29+
patch do
30+
url "https://github.com/sahlberg/libnfs/commit/2db7ebd9e15b4fedd2750af1a3d66b146c1da3b7.patch?full_index=1"
31+
sha256 "eed5d8f35742278b74c2592473554a0050da9105432028e82f5b13d32e52d8b8"
32+
end
2233

2334
def install
24-
system "./bootstrap"
25-
system "./configure", "--disable-dependency-tracking",
26-
"--disable-silent-rules",
27-
"--prefix=#{prefix}"
35+
ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog"
2836

29-
system "make", "install"
37+
system "cmake", "-S", ".", "-B", "build", "-DENABLE_DOCUMENTATION=ON", "-DENABLE_UTILS=ON", *std_cmake_args
38+
system "cmake", "--build", "build"
39+
system "cmake", "--install", "build"
3040
end
3141

3242
test do
43+
assert_match "No URL specified", shell_output("#{bin}/nfs-ls 2>&1", 1)
44+
3345
(testpath/"test.c").write <<~C
3446
#if defined(__linux__)
3547
# include <sys/time.h>

Formula/m/mpd.rb

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
11
class Mpd < Formula
22
desc "Music Player Daemon"
33
homepage "https://github.com/MusicPlayerDaemon/MPD"
4-
url "https://github.com/MusicPlayerDaemon/MPD/archive/refs/tags/v0.23.16.tar.gz"
5-
sha256 "a3ba8a4ef53c681ae5d415a79fbd1409d61cb3d03389a51595af24b330ecbb61"
64
license "GPL-2.0-or-later"
5+
revision 1
76
head "https://github.com/MusicPlayerDaemon/MPD.git", branch: "master"
87

8+
stable do
9+
url "https://github.com/MusicPlayerDaemon/MPD/archive/refs/tags/v0.23.16.tar.gz"
10+
sha256 "a3ba8a4ef53c681ae5d415a79fbd1409d61cb3d03389a51595af24b330ecbb61"
11+
12+
# support libnfs 6.0.0, upstream commit ref, https://github.com/MusicPlayerDaemon/MPD/commit/31e583e9f8d14b9e67eab2581be8e21cd5712b47
13+
patch do
14+
url "https://raw.githubusercontent.com/Homebrew/formula-patches/557ad661621fa81b5e6ff92ab169ba40eba58786/mpd/0.23.16-libnfs-6.patch"
15+
sha256 "e0f2e6783fbb92d9850d31f245044068dc0614721788d16ecfa8aacfc5c27ff3"
16+
end
17+
end
18+
919
bottle do
10-
sha256 cellar: :any, arm64_sequoia: "1006ec44f5c3e1552377a51b5248771289e1771a2b31a70413afe24f2b3afdd5"
11-
sha256 cellar: :any, arm64_sonoma: "52b6640e47e904a95131c300f18c65bf61c2bd267c68d57d692bd9ff8a5f08e4"
12-
sha256 cellar: :any, arm64_ventura: "61b804812874fd1cb7bfac014e5d7ffc266d836a8efa294f38ed2cc61dc6768f"
13-
sha256 cellar: :any, sonoma: "dbabcb12a9e9322aa1c86c4c1987e737b73b7c984381b570702ddbc8e85952b1"
14-
sha256 cellar: :any, ventura: "7ee23cae927105128197d77fa7cd800253ca9c13c56def3883452b9182da4343"
15-
sha256 x86_64_linux: "0abc08fe20c596d3747c99905001e0319412848cbdd466b40a8dc6d55fb2ece4"
20+
sha256 cellar: :any, arm64_sequoia: "3af030e17bd7433e049c2341b7f3f321e0965c27252655b69b18306d8d992c6d"
21+
sha256 cellar: :any, arm64_sonoma: "cabab5a22d663c2e833fe58fddbdcb03cfbb62a84e4cd107fa5dec021c7a9302"
22+
sha256 cellar: :any, arm64_ventura: "369c7be3485037c3acb899eb458379d242eb8a08fe1cd22f16cc6f91d4f8015b"
23+
sha256 cellar: :any, sonoma: "f8fd84ded5edf6e72cb449f7a497af00cc5dd79f8726c5b623a982de9ed37bf8"
24+
sha256 cellar: :any, ventura: "4b5f3543fc9c7ecf05c159e4493698b2e2258c7e4b26f0097508c92484963323"
25+
sha256 x86_64_linux: "4002b2017b63e8f966c7bb9002f89cd8f1009e2fd4fff956bcc5ea39305c274a"
1626
end
1727

1828
depends_on "boost" => :build
@@ -71,6 +81,7 @@ def install
7181
ENV.libcxx
7282

7383
args = %W[
84+
-Dcpp_std=c++20
7485
--sysconfdir=#{etc}
7586
-Dmad=disabled
7687
-Dmpcdec=disabled

0 commit comments

Comments
 (0)