Skip to content

Commit

Permalink
xclogparser 0.2.40
Browse files Browse the repository at this point in the history
xclogparser: add version patch

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
BrewTestBot authored and chenrui333 committed Dec 17, 2024
1 parent 08b6625 commit 7ebee47
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions Formula/x/xclogparser.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Xclogparser < Formula
desc "Tool to parse the SLF serialization format used by Xcode"
homepage "https://github.com/MobileNativeFoundation/XCLogParser"
url "https://github.com/MobileNativeFoundation/XCLogParser/archive/refs/tags/v0.2.39.tar.gz"
sha256 "b225891b94bbdb549ddbc9ffe838ad87f73ef7cc79934e3e23969bb1220eafd9"
url "https://github.com/MobileNativeFoundation/XCLogParser/archive/refs/tags/v0.2.40.tar.gz"
sha256 "b8bd40342ab3918c00ccc174e929a05de2a3cd196dff9ae3ef3dc8a21e0413b7"
license "Apache-2.0"

bottle do
Expand All @@ -18,9 +18,21 @@ class Xclogparser < Formula
depends_on xcode: "13.0"

uses_from_macos "swift"
uses_from_macos "zlib"

# version patch, upstream pr ref, https://github.com/MobileNativeFoundation/XCLogParser/pull/223
patch do
url "https://github.com/MobileNativeFoundation/XCLogParser/commit/430107e1e6ec9d54ddaa301d64596c7311f7c966.patch?full_index=1"
sha256 "5a4613af2ead387887e508032673d4fbb9afbf66fd919e9b16cf42b5b453218d"
end

def install

Check failure on line 29 in Formula/x/xclogparser.rb

View workflow job for this annotation

GitHub Actions / Linux

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

Building for production... [1/13] Write sources [9/13] Compiling system-zlib anchor.c [10/13] Write swift-version--1B52FE4B88D89ED0.txt [12/17] Compiling Gzip Data+Gzip.swift /tmp/xclogparser-20241217-6857-xho898/XCLogParser-0.2.40/.build/checkouts/GzipSwift/Sources/system-zlib/include/module.modulemap:2:12: error: header '/usr/include/zlib.h' not found 1 | module zlibLinux [system] { 2 | header "/usr/include/zlib.h" | `- error: header '/usr/include/zlib.h' not found 3 | header "/usr/include/zconf.h" 4 | link "z" /tmp/xclogparser-20241217-6857-xho898/XCLogParser-0.2.40/.build/checkouts/GzipSwift/Sources/Gzip/Data+Gzip.swift:32:12: error: could not build C module 'zlibLinux' 30 | 31 | #if os(Linux) 32 | import zlibLinux | `- error: could not build C module 'zlibLinux' 33 | #else 34 | import zlib ==> Formula Path: /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/x/xclogparser.rb ==> Configuration HOMEBREW_VERSION: 4.4.12-10-g39a40e9 ORIGIN: https://github.com/Homebrew/brew HEAD: 39a40e9873b42ab886ab6cd59a05d20b58019e01 Last commit: 5 hours ago Branch: master Core tap HEAD: 4c688d404bc91bc66683b22bf18805944f049e0c Core tap last commit: 8 minutes ago Core tap JSON: 17 Dec 16:44 UTC HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew HOMEBREW_BOOTSNAP: set 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: /github/home/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 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby CPU: quad-core 64-bit zen3 Clang: N/A Git: 2.47.0 => /usr/bin/git Curl: 7.81.0 => /usr/bin/curl Kernel: Linux 6.8.0-1017-azure x86_64 GNU/Linux OS: Ubuntu 22.04.5 LTS Host glibc: 2.35 /usr/bin/gcc: 11.4.0 /usr/bin/ruby: N/A glibc: N/A gcc@11: N/A gcc: 14.2.0_1 xorg: N/A ==> ENV HOMEBREW_CC: gcc-11 HOMEBREW_CXX: g++-11 MAKEFLAGS: -j4 CMAKE_PREFIX_PATH: /home/linuxbrew/.linuxbrew/opt/berkeley-db@5:/home/linuxbrew/.linuxbrew PKG_CONFIG_PATH: /home/linuxbrew/.linuxbrew/opt/mpdecimal/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/openssl@3/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/ncurses/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/readline/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/zlib/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/sqlite/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/xz/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/bzip2/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/expat/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/libedit/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/libffi/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/libxcrypt/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/krb5/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/libtirpc/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/libnsl/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/[email protected]/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/brotli/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/libnghttp2/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/libssh2/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/rtmpdump/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/lz4/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/zstd/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/util-linux/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/openldap/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/libidn2/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/curl/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/icu4c@76/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/libxml2/lib/pkgconfig HOMEBREW_MAKE_JOBS: 4 HOMEBREW_GIT: /usr/bin/git ACLOCAL_PATH: /home/linuxbrew/.linuxbrew/share/aclocal PATH: /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/sh
system "swift", "build", "-c", "release", "--disable-sandbox"
args = if OS.mac?
["--disable-sandbox"]
else
["--static-swift-stdlib", "-Xcc", "-I#{Formula["zlib"].opt_include}"]
end
system "swift", "build", *args, "--configuration", "release"
bin.install ".build/release/xclogparser"
end

Expand Down

0 comments on commit 7ebee47

Please sign in to comment.