-
-
Notifications
You must be signed in to change notification settings - Fork 12.4k
Commit
Signed-off-by: Rui Chen <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 GitHub Actions / Linux`brew install --verbose --formula --build-bottle ipmiutil` failed on Linux!
Check warning on line 27 in Formula/i/ipmiutil.rb GitHub Actions / macOS 15-arm64`brew install --verbose --formula --build-bottle ipmiutil` failed on macOS Sequoia (15) on Apple Silicon!
Check warning on line 27 in Formula/i/ipmiutil.rb GitHub Actions / macOS 14-x86_64`brew install --verbose --formula --build-bottle ipmiutil` failed on macOS Sonoma (14)!
Check failure on line 27 in Formula/i/ipmiutil.rb GitHub Actions / macOS 13-x86_64`brew install --verbose --formula --build-bottle ipmiutil` failed on macOS Ventura (13)!
|
||
# 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" | ||
|
@@ -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; |