Skip to content

Commit

Permalink
dbus 1.16.2
Browse files Browse the repository at this point in the history
dbus: update build

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
BrewTestBot authored and chenrui333 committed Feb 27, 2025
1 parent 3cb651e commit e9e3314
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions Formula/d/dbus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ class Dbus < Formula
# releases: even (1.12.x) = stable, odd (1.13.x) = development
desc "Message bus system, providing inter-application communication"
homepage "https://wiki.freedesktop.org/www/Software/dbus"
url "https://dbus.freedesktop.org/releases/dbus/dbus-1.14.10.tar.xz"
mirror "https://deb.debian.org/debian/pool/main/d/dbus/dbus_1.14.10.orig.tar.xz"
sha256 "ba1f21d2bd9d339da2d4aa8780c09df32fea87998b73da24f49ab9df1e36a50f"
url "https://dbus.freedesktop.org/releases/dbus/dbus-1.16.2.tar.xz"
mirror "https://deb.debian.org/debian/pool/main/d/dbus/dbus_1.16.2.orig.tar.xz"
sha256 "0ba2a1a4b16afe7bceb2c07e9ce99a8c2c3508e5dec290dbb643384bd6beb7e2"
license any_of: ["AFL-2.1", "GPL-2.0-or-later"]
head "https://gitlab.freedesktop.org/dbus/dbus.git", branch: "master"

livecheck do
url "https://dbus.freedesktop.org/releases/dbus/"
Expand All @@ -25,59 +26,58 @@ class Dbus < Formula
sha256 x86_64_linux: "9037402e48fc19b05f8b621e0e32efa3b4214513f0b4737894ef3d57704ce81d"
end

head do
url "https://gitlab.freedesktop.org/dbus/dbus.git", branch: "master"

depends_on "autoconf" => :build
depends_on "autoconf-archive" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end

depends_on "docbook" => :build
depends_on "docbook-xsl" => :build
depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkgconf" => :build
depends_on "xmlto" => :build

uses_from_macos "expat"

# Patch applies the config templating fixed in https://bugs.freedesktop.org/show_bug.cgi?id=94494
# Homebrew pr/issue: 50219
patch do
on_macos do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/0a8a55872e/d-bus/org.freedesktop.dbus-session.plist.osx.diff"
sha256 "a8aa6fe3f2d8f873ad3f683013491f5362d551bf5d4c3b469f1efbc5459a20dc"
end
end

def install

Check failure on line 38 in Formula/d/dbus.rb

View workflow job for this annotation

GitHub Actions / Linux

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

} ----------- Command line: `gcc-11 /tmp/dbus-20250227-5616-d1qq5b/dbus-1.16.2/build/meson-private/tmpjmiupuyr/testfile.c -o /tmp/dbus-20250227-5616-d1qq5b/dbus-1.16.2/build/meson-private/tmpjmiupuyr/output.exe -D_FILE_OFFSET_BITS=64 -O0` -> 1 stderr: /tmp/dbus-20250227-5616-d1qq5b/dbus-1.16.2/build/meson-private/tmpjmiupuyr/testfile.c: In function 'main': /tmp/dbus-20250227-5616-d1qq5b/dbus-1.16.2/build/meson-private/tmpjmiupuyr/testfile.c:5:43: error: '__int64' undeclared (first use in this function); did you mean '__int64_t'? 5 | printf("%ld\n", (long)(sizeof(__int64))); | ^~~~~~~ | __int64_t /tmp/dbus-20250227-5616-d1qq5b/dbus-1.16.2/build/meson-private/tmpjmiupuyr/testfile.c:5:43: note: each undeclared identifier is reported only once for each function it appears in ----------- Could not compile test file /tmp/dbus-20250227-5616-d1qq5b/dbus-1.16.2/build/meson-private/tmpjmiupuyr/testfile.c: 1 Checking for size of "__int64" : -1 Running compile: Working directory: /tmp/dbus-20250227-5616-d1qq5b/dbus-1.16.2/build/meson-private/tmpii46q8yi Code: #include<stddef.h> #include<stdio.h> int main(void) { printf("%ld\n", (long)(sizeof(void *))); return 0; } ----------- Command line: `gcc-11 /tmp/dbus-20250227-5616-d1qq5b/dbus-1.16.2/build/meson-private/tmpii46q8yi/testfile.c -o /tmp/dbus-20250227-5616-d1qq5b/dbus-1.16.2/build/meson-private/tmpii46q8yi/output.exe -D_FILE_OFFSET_BITS=64 -O0` -> 0 Program stdout: 8 Program stderr: Checking for size of "void *" : 8 Program xsltproc found: NO meson.build:309:11: ERROR: Program 'xsltproc' not found or not executable ::endgroup:: ==> Formula Path: /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/d/dbus.rb ==> Configuration HOMEBREW_VERSION: 4.4.22-78-g38385c8 ORIGIN: https://github.com/Homebrew/brew HEAD: 38385c8cbfc84e0f5659c274149fde0853d2b354 Last commit: 2 hours ago Branch: master Core tap HEAD: 5e134abcf4e473bfd1155e1da4f21707b883295f Core tap last commit: 5 minutes ago Core tap JSON: 27 Feb 20:53 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.7 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.7/bin/ruby CPU: quad-core 64-bit zen3 Clang: N/A Git: 2.48.1 => /usr/bin/git Curl: 7.81.0 => /usr/bin/curl Kernel: Linux 6.8.0-1021-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: N/A xorg: N/A ==> ENV HOMEBREW_CC: gcc-11 HOMEBREW_CXX: g++-11 MAKEFLAGS: -j4 CMAKE_PREFIX_PATH: /home/linuxbrew/.linuxbrew PKG_CONFIG_PATH: /home/linuxbrew/.linuxbrew/opt/pkgconf/lib/pkgconfig:/home/linuxbrew/.linuxbrew/opt/expat/lib/pkgconfig PKG_CONFIG_LIBDIR: HOMEBREW_MAKE_JOBS: 4 HOMEBREW_GIT: /usr/bin/git ACLOCAL_PATH: /home/linuxbrew/.linuxbrew/share/aclocal PATH: /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super:/home/linuxbrew/.linuxbrew/opt/docbook-xsl/bin:/home/linuxbrew/.linuxbrew/opt/meson/bin:/home/linuxbrew/.linuxbrew/opt/ninja/bin:/home/linuxbrew/.linuxbrew/opt/pkgconf/bin:/home/linuxbrew/.linuxbrew/opt/xmlto/bin:/home/linuxbrew/.linuxbrew/opt/expat/bin:/usr/bin:/bin:/usr/sbin:/sbin Logs: /github/home/bottles/logs/dbus/00.options.out /github/home/bottles/logs/dbus/01.meson /github/home/bottles/logs/dbus/01.meson.cc /github/home/bottles/logs/dbus/
# Fix the TMPDIR to one D-Bus doesn't reject due to odd symbols
ENV["TMPDIR"] = "/tmp"
ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog"

system "./autogen.sh", "--no-configure" if build.head?

args = [
"--localstatedir=#{var}",
"--sysconfdir=#{etc}",
"--enable-xml-docs",
"--disable-doxygen-docs",
"--without-x",
"--disable-tests",
args = %W[
-Dlocalstatedir=#{var}
-Dsysconfdir=#{etc}
-Dxml_docs=enabled
-Ddoxygen_docs=disabled
-Dmodular_tests=disabled
]

if OS.mac?
args << "--enable-launchd"
args << "--with-launchd-agent-dir=#{prefix}"
end
args << "-Dlaunchd_agent_dir=#{lib}/Library/LaunchAgents" if OS.mac?

system "./configure", *args, *std_configure_args
system "make", "install"
system "meson", "setup", "build", *args, *std_meson_args
system "meson", "compile", "-C", "build", "--verbose"
system "meson", "install", "-C", "build"
end

def post_install
# Generate D-Bus's UUID for this machine
system bin/"dbus-uuidgen", "--ensure=#{var}/lib/dbus/machine-id"
end

def caveats
on_macos do
<<~EOS
To load #{name} at startup, activate the included Launch Daemon:
sudo cp #{lib}/Library/LaunchDaemons/org.freedesktop.dbus-session.plist /Library/LaunchDaemons
sudo chmod 644 /Library/LaunchDaemons/org.freedesktop.dbus-session.plist
sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop.dbus-session.plist
If this is an upgrade and you already have the Launch Daemon loaded, you
have to unload the Launch Daemon before reinstalling it:
sudo launchctl unload -w /Library/LaunchDaemons/org.freedesktop.dbus-session.plist
sudo rm /Library/LaunchDaemons/org.freedesktop.dbus-session.plist
EOS
end
end

service do
name macos: "org.freedesktop.dbus-session"
end
Expand Down

0 comments on commit e9e3314

Please sign in to comment.