be5369a0cb
* fpc is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
23 lines
842 B
Diff
23 lines
842 B
Diff
Musl, unlike glibc, provides inb/outb but only on x86.
|
|
Additionally, the iopl call is generally useless outside x86.
|
|
|
|
--- a/libfreeipmi/driver/ipmi-kcs-driver.c
|
|
+++ b/libfreeipmi/driver/ipmi-kcs-driver.c
|
|
@@ -162,7 +162,7 @@
|
|
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
|
# define _INB(port) inb (port)
|
|
# define _OUTB(data, port) outb (port, data)
|
|
-#elif defined(HAVE_IOPL)
|
|
+#elif defined(HAVE_IOPL) && (defined(__x86_64__) || defined(__i386__))
|
|
# define _INB(port) inb (port)
|
|
# define _OUTB(data, port) outb (data, port)
|
|
#else
|
|
@@ -509,7 +508,7 @@ ipmi_kcs_ctx_io_init (ipmi_kcs_ctx_t ctx)
|
|
}
|
|
#endif /* !USE_IOPERM */
|
|
#else /* !__FreeBSD__ */
|
|
-#if HAVE_IOPL
|
|
+#if defined(HAVE_IOPL) && (defined(__x86_64__) || defined(__i386__))
|
|
if (iopl (3) < 0)
|
|
{
|
|
KCS_ERRNO_TO_KCS_ERRNUM (ctx, errno);
|