Skip to content

Commit

Permalink
ipmiutil: add upstream build patch
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 committed Sep 18, 2024
1 parent faafeeb commit def70c5
Showing 1 changed file with 56 additions and 1 deletion.
57 changes: 56 additions & 1 deletion Formula/i/ipmiutil.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class Ipmiutil < Formula
desc "IPMI server management utility"
homepage "https://ipmiutil.sourceforge.net/"
url "https://downloads.sourceforge.net/project/ipmiutil/ipmiutil-3.1.9.tar.gz"
sha256 "c0dacc4ad506538f59ed45373b775748deddddc36e6d3c303f5069a59cacab08"
sha256 "5ae99bdd1296a8e25cea839784ec39ebca57b0e3701b2d440b8e02e22dc4bc95"
license all_of: ["BSD-2-Clause", "BSD-3-Clause", "GPL-2.0-or-later"]

bottle do
Expand All @@ -21,7 +21,13 @@ class Ipmiutil < Formula

conflicts_with "renameutils", because: "both install `icmd` binaries"

# add upstream build patch, upstream bug report, https://sourceforge.net/p/ipmiutil/support-requests/61/
patch :DATA

def install

Check failure on line 27 in Formula/i/ipmiutil.rb

View workflow job for this annotation

GitHub Actions / Linux

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

gcc-11 -DHAVE_CONFIG_H -I. -I.. -DLINUX -DSKIP_MD2 -DSSL11 -fPIC -Wno-pointer-sign -Wno-sign-conversion -Wlto-type-mismatch -Wmaybe-uninitialized -Wformat-overflow=1 -Wformat-truncation=1 -fno-strict-aliasing -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DLOCALEDIR=\"/home/linuxbrew/.linuxbrew/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o itsol.o itsol.c gcc-11 -DHAVE_CONFIG_H -I. -I.. -DLINUX -DSKIP_MD2 -DSSL11 -fPIC -Wno-pointer-sign -Wno-sign-conversion -Wlto-type-mismatch -Wmaybe-uninitialized -Wformat-overflow=1 -Wformat-truncation=1 -fno-strict-aliasing -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DLOCALEDIR=\"/home/linuxbrew/.linuxbrew/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o idcmi.o idcmi.c gcc-11 -DHAVE_CONFIG_H -I. -I.. -DLINUX -DSKIP_MD2 -DSSL11 -fPIC -Wno-pointer-sign -Wno-sign-conversion -Wlto-type-mismatch -Wmaybe-uninitialized -Wformat-overflow=1 -Wformat-truncation=1 -fno-strict-aliasing -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DLOCALEDIR=\"/home/linuxbrew/.linuxbrew/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o iuser.o iuser.c gcc-11 -DHAVE_CONFIG_H -I. -I.. -DLINUX -DSKIP_MD2 -DSSL11 -fPIC -Wno-pointer-sign -Wno-sign-conversion -Wlto-type-mismatch -Wmaybe-uninitialized -Wformat-overflow=1 -Wformat-truncation=1 -fno-strict-aliasing -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DLOCALEDIR=\"/home/linuxbrew/.linuxbrew/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_kontron.o oem_kontron.c gcc-11 -DHAVE_CONFIG_H -I. -I.. -DLINUX -DSKIP_MD2 -DSSL11 -fPIC -Wno-pointer-sign -Wno-sign-conversion -Wlto-type-mismatch -Wmaybe-uninitialized -Wformat-overflow=1 -Wformat-truncation=1 -fno-strict-aliasing -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DLOCALEDIR=\"/home/linuxbrew/.linuxbrew/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_fujitsu.o oem_fujitsu.c gcc-11 -DHAVE_CONFIG_H -I. -I.. -DLINUX -DSKIP_MD2 -DSSL11 -fPIC -Wno-pointer-sign -Wno-sign-conversion -Wlto-type-mismatch -Wmaybe-uninitialized -Wformat-overflow=1 -Wformat-truncation=1 -fno-strict-aliasing -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DLOCALEDIR=\"/home/linuxbrew/.linuxbrew/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_intel.o oem_intel.c gcc-11 -DHAVE_CONFIG_H -I. -I.. -DLINUX -DSKIP_MD2 -DSSL11 -fPIC -Wno-pointer-sign -Wno-sign-conversion -Wlto-type-mismatch -Wmaybe-uninitialized -Wformat-overflow=1 -Wformat-truncation=1 -fno-strict-aliasing -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DLOCALEDIR=\"/home/linuxbrew/.linuxbrew/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_sun.o oem_sun.c gcc-11 -DHAVE_CONFIG_H -I. -I.. -DLINUX -DSKIP_MD2 -DSSL11 -fPIC -Wno-pointer-sign -Wno-sign-conversion -Wlto-type-mismatch -Wmaybe-uninitialized -Wformat-overflow=1 -Wformat-truncation=1 -fno-strict-aliasing -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DLOCALEDIR=\"/home/linuxbrew/.linuxbrew/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_supermicro.o oem_supermicro.c gcc-11 -DHAVE_CONFIG_H -I. -I.. -DLINUX -DSKIP_MD2 -DSSL11 -fPIC -Wno-pointer-sign -Wno-sign-conversion -Wlto-type-mismatch -Wmaybe-uninitialized -Wformat-overflow=1 -Wformat-truncation=1 -fno-strict-aliasing -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DLOCALEDIR=\"/home/linuxbrew/.linuxbrew/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_dell.o oem_dell.c oem_dell.c: In function ‘get_vFlash_compcode_str’: oem_dell.c:4835:

Check warning on line 27 in Formula/i/ipmiutil.rb

View workflow job for this annotation

GitHub Actions / macOS 15-arm64

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

clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/opt/homebrew/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DSTUB_IO -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o iuser.o iuser.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/opt/homebrew/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DSTUB_IO -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_kontron.o oem_kontron.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/opt/homebrew/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DSTUB_IO -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_fujitsu.o oem_fujitsu.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/opt/homebrew/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DSTUB_IO -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_intel.o oem_intel.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/opt/homebrew/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DSTUB_IO -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_sun.o oem_sun.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/opt/homebrew/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DSTUB_IO -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_supermicro.o oem_supermicro.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/opt/homebrew/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DSTUB_IO -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_dell.o oem_dell.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/opt/homebrew/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DSTUB_IO -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_quanta.o oem_quanta.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/opt/homebrew/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DSTUB_IO -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_hp.o oem_hp.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/opt/homebrew/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DSTUB_IO -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_newisys.o oem_newisys.c oem_dell.c:4835:13: error: no member named 'val' in 'vFlashstr' 4835 | if (vs[i].val == vflashcompcode) | ~~~~~ ^ 1 error generated. make[2]: *** [oem_dell.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 ==> Formula Path: /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/i/ipmiutil.rb ==> Configuration HOMEBREW_VERSION: 4.3.23-25-ge1ff668 ORIGIN: https://github.com/Homebrew/brew HEAD: e1ff668957dd8a66304c0290dfa66083e6c7444e Last commit: 2 hours ago Core tap HEAD: 7f127b93fbc9e62a2f170f34efd5414a0ddbd4d6 Core tap last commit: 6 minutes ago Core tap JSON: 18 Sep 21:10 UTC Core cask tap JSON: 18 Sep 21:10 UTC HOMEBREW_PREFIX: /opt/homebrew 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 Ruby: 3.3.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ru

Check warning on line 27 in Formula/i/ipmiutil.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

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

clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/usr/local/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o idcmi.o idcmi.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/usr/local/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o iuser.o iuser.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/usr/local/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_kontron.o oem_kontron.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/usr/local/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_fujitsu.o oem_fujitsu.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/usr/local/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_intel.o oem_intel.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/usr/local/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_sun.o oem_sun.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/usr/local/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_supermicro.o oem_supermicro.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/usr/local/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_dell.o oem_dell.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/usr/local/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_quanta.o oem_quanta.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/usr/local/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_hp.o oem_hp.c oem_dell.c:4835:13: error: no member named 'val' in 'vFlashstr' if (vs[i].val == vflashcompcode) ~~~~~ ^ 1 error generated. make[2]: *** [oem_dell.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 ==> Formula Path: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/i/ipmiutil.rb ==> Configuration HOMEBREW_VERSION: 4.3.23-25-ge1ff668 ORIGIN: https://github.com/Homebrew/brew HEAD: e1ff668957dd8a66304c0290dfa66083e6c7444e Last commit: 2 hours ago Core tap HEAD: 7f127b93fbc9e62a2f170f34efd5414a0ddbd4d6 Core tap last commit: 8 minutes ago Core tap JSON: 18 Sep 21:11 UTC Core cask tap JSON: 18 Sep 21:11 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 Ruby: 3.3.4 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.4_1/bin/ruby CPU: hexa-core 64-bit penryn Clang: 15.0.0 build 1500 Git: 2.39.3 => /usr/bin/git Curl: 8.4.0 => /usr/bin/

Check failure on line 27 in Formula/i/ipmiutil.rb

View workflow job for this annotation

GitHub Actions / macOS 13-x86_64

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

clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/usr/local/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o iuser.o iuser.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/usr/local/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_kontron.o oem_kontron.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/usr/local/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_fujitsu.o oem_fujitsu.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/usr/local/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_intel.o oem_intel.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/usr/local/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_sun.o oem_sun.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/usr/local/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_supermicro.o oem_supermicro.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/usr/local/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_dell.o oem_dell.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/usr/local/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_quanta.o oem_quanta.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/usr/local/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_hp.o oem_hp.c clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/usr/local/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_newisys.o oem_newisys.c oem_dell.c:4835:13: error: no member named 'val' in 'vFlashstr' if (vs[i].val == vflashcompcode) ~~~~~ ^ clang -Wno-implicit-function-declaration -DHAVE_CONFIG_H -I. -I.. -DMACOS -DSKIP_MD2 -fPIC -DLOCALEDIR=\"/usr/local/Cellar/ipmiutil/3.1.9/share/locale\" -I.. -DALLOW_GPL -I. -I.. -DMETACOMMAND -DHAVE_SHA256 -g -O2 -c -o oem_lenovo.o oem_lenovo.c 1 error generated. make[2]: *** [oem_dell.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 ==> Formula Path: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/i/ipmiutil.rb ==> Configuration HOMEBREW_VERSION: 4.3.23-25-ge1ff668 ORIGIN: https://github.com/Homebrew/brew HEAD: e1ff668957dd8a66304c0290dfa66083e6c7444e Last commit: 2 hours ago Core tap HEAD: 7f127b93fbc9e62a2f170f34efd5414a0ddbd4d6 Core tap last commit: 8 minutes ago Core tap JSON: 18 Sep 21:11 UTC Core cask tap JSON: 18 Sep 21:11 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 HOME
# Workaround for newer Clang
ENV.append "CC", "-Wno-implicit-function-declaration" if DevelopmentTools.clang_build_version >= 1403

# Darwin does not exist only on PowerPC
if OS.mac?
inreplace "configure.ac", "test \"$archp\" = \"powerpc\"", "true"
Expand All @@ -48,3 +54,52 @@ def install
system bin/"ipmiutil", "delloem", "help"
end
end

__END__
diff --git a/util/oem_dell.c b/util/oem_dell.c
index b474ee3..9c918bf 100644
--- a/util/oem_dell.c
+++ b/util/oem_dell.c
@@ -4,6 +4,7 @@
*
* Change history:
* 08/17/2011 ARCress - included in ipmiutil source tree
+ * 09/18/2024 ARCress - fix macos compile error with vFlashstr
*
*/
/******************************************************************
@@ -157,8 +158,14 @@ static uint8_t SetLEDSupported=0;

volatile uint8_t IMC_Type = IMC_IDRAC_10G;

+typedef struct
+{
+ int value;
+ char *str;
+} vFlashstr;

-const struct vFlashstr vFlash_completion_code_vals[] = {
+// const struct vFlashstr vFlash_completion_code_vals[] = {
+const vFlashstr vFlash_completion_code_vals[] = {
{0x00, "SUCCESS"},
{0x01, "NO_SD_CARD"},
{0x63, "UNKNOWN_ERROR"},
@@ -250,7 +257,8 @@ static void ipmi_powermonitor_usage(void);

/* vFlash Function prototypes */
static int ipmi_delloem_vFlash_main(void * intf, int argc, char ** argv);
-const char * get_vFlash_compcode_str(uint8_t vflashcompcode, const struct vFlashstr *vs);
+// const char * get_vFlash_compcode_str(uint8_t vflashcompcode, const struct vFlashstr *vs);
+const char * get_vFlash_compcode_str(uint8_t vflashcompcode, const vFlashstr *vs);
static int ipmi_get_sd_card_info(void* intf);
static int ipmi_delloem_vFlash_process(void* intf, int current_arg, char ** argv);
static void ipmi_vFlash_usage(void);
@@ -4818,7 +4826,7 @@ static int ipmi_delloem_vFlash_main (void * intf, int argc, char ** argv)
*
******************************************************************/
const char *
-get_vFlash_compcode_str(uint8_t vflashcompcode, const struct vFlashstr *vs)
+get_vFlash_compcode_str(uint8_t vflashcompcode, const vFlashstr *vs)
{
static char un_str[32];
int i;

0 comments on commit def70c5

Please sign in to comment.