Index: head/sysutils/freeipmi/Makefile =================================================================== --- head/sysutils/freeipmi/Makefile (revision 497889) +++ head/sysutils/freeipmi/Makefile (revision 497890) @@ -1,68 +1,67 @@ # Created by: Dmitry Frolov # $FreeBSD$ PORTNAME= freeipmi PORTVERSION= 1.6.3 CATEGORIES= sysutils MASTER_SITES= GNU MAINTAINER= sunpoet@FreeBSD.org COMMENT= Library and tools to support IPMI-capable hardware LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_aarch64= invokes x86 assembler BROKEN_armv6= invokes x86 assembler BROKEN_armv7= invokes x86 assembler BROKEN_mips= invokes x86 assembler BROKEN_mips64= invokes x86 assembler BROKEN_sparc64= invokes x86 assembler -BROKEN_powerpc64= invokes x86 assembler LIB_DEPENDS= libargp.so:devel/argp-standalone \ libgcrypt.so:security/libgcrypt OPTIONS_DEFINE= DEBUG DOCS IOPERM IPV6 IOPERM_DESC= Use i386_set_ioperm CFLAGS+= -D_WANT_SEMUN CONFIGURE_ARGS= --disable-init-scripts \ --sysconfdir=${ETCDIR} \ --with-ipmi-monitoring-sdr-cache-dir=${CACHE_DIR}/ipmimonitoringsdrcache \ --with-ipmiseld-cache-dir=${CACHE_DIR}/ipmiseld \ --with-pkgconfig-dir=${PREFIX}/libdata/pkgconfig CONFIGURE_ENV= PTHREAD_LIBS=-lpthread ac_cv_path_CPP=${CPP} GNU_CONFIGURE= yes USE_LDCONFIG= yes USES= gmake libtool localbase shebangfix INFO= freeipmi-faq PLIST_SUB= CACHE_DIR=${CACHE_DIR} PORTDOCS= * CACHE_DIR?= /var/db/${PORTNAME} SHEBANG_FILES= contrib/ganglia/ganglia_ipmi_sensors.pl \ contrib/nagios/nagios_ipmi_sensors.pl \ contrib/pet/check_rmcpping \ contrib/pet/petalert.pl DEBUG_CONFIGURE_ARGS= --enable-debug --enable-trace DEBUG_INSTALL_TARGET= install DEBUG_INSTALL_TARGET_OFF= install-strip IOPERM_CPPFLAGS= -DUSE_IOPERM IPV6_CPPFLAGS= -DIPV6 post-patch: @${FIND} ${WRKSRC} -name '*.man' -o -name '*.pre.in' | ${XARGS} -I % ${REINPLACE_CMD} -e '/^\.\\\"/ s|$$|"|' % @${REINPLACE_CMD} \ -e '/^FREEIPMI_SYSCONFDIR/ s|/freeipmi/$$||' \ -e '/FREEIPMI_CONFIG_FILE_DEFAULT_TMP1=/ s|freeipmi.conf|&.sample|' \ ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|\($$(LN_S) -f \)$$(sbindir)/|\1|' ${WRKSRC}/*/Makefile.in post-install: ${MKDIR} -m 0700 -p ${STAGEDIR}${CACHE_DIR}/ipmimonitoringsdrcache/ ${STAGEDIR}${CACHE_DIR}/ipmiseld/ ${STAGEDIR}/var/lib/freeipmi/ ${STAGEDIR}/var/run/freeipmi/ .include Index: head/sysutils/freeipmi/files/patch-libfreeipmi-driver-ipmi-kcs-driver.c =================================================================== --- head/sysutils/freeipmi/files/patch-libfreeipmi-driver-ipmi-kcs-driver.c (revision 497889) +++ head/sysutils/freeipmi/files/patch-libfreeipmi-driver-ipmi-kcs-driver.c (revision 497890) @@ -1,11 +1,21 @@ ---- libfreeipmi/driver/ipmi-kcs-driver.c.orig 2014-01-03 23:45:22 UTC +--- libfreeipmi/driver/ipmi-kcs-driver.c.orig 2018-07-30 23:07:27 UTC +++ libfreeipmi/driver/ipmi-kcs-driver.c -@@ -491,7 +491,7 @@ ipmi_kcs_ctx_io_init (ipmi_kcs_ctx_t ctx +@@ -148,6 +148,9 @@ + #if defined(__FreeBSD__) + # include + # include ++#if defined(__powerpc__) ++# include /* inb/outb */ ++#endif + #elif defined(__NetBSD__) || defined(__OpenBSD__) + # include /* inb/outb */ + # include /* sysarch call */ +@@ -495,7 +498,7 @@ ipmi_kcs_ctx_io_init (ipmi_kcs_ctx_t ctx #ifdef __FreeBSD__ #ifdef USE_IOPERM /* i386_set_ioperm has known problems on FBSD 5.x (bus errors). */ - if (i386_set_ioperm (ctx->driver_address, 0x02, 0x01)) + if (sysarch (I386_SET_IOPERM, (void *) (ctx->driver_address, 0x02, 0x01))) { KCS_ERRNO_TO_KCS_ERRNUM (ctx, errno); return (-1);