From b0173207e690843ecd86e51a419722dd95dc36a9 Mon Sep 17 00:00:00 2001 From: Steve Wills Date: Mon, 4 Feb 2019 19:23:07 +0000 Subject: [PATCH] sysutils/trueos-libqt5: fix build While here, pet portlint PR: 233102 Approved by: maintainer timeout (jt@ixsystems.com, >2 weeks) --- sysutils/trueos-libqt5/Makefile | 5 +++-- .../files/patch-libtrueos_utils_netif.cpp | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 sysutils/trueos-libqt5/files/patch-libtrueos_utils_netif.cpp diff --git a/sysutils/trueos-libqt5/Makefile b/sysutils/trueos-libqt5/Makefile index e48e32ef8a13..8e5b15bf27c1 100644 --- a/sysutils/trueos-libqt5/Makefile +++ b/sysutils/trueos-libqt5/Makefile @@ -2,7 +2,7 @@ PORTNAME= trueos-libqt5 PORTVERSION= 20171003 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MAINTAINER= jt@ixsystems.com @@ -12,11 +12,12 @@ LICENSE= BSD2CLAUSE ONLY_FOR_ARCHS= amd64 +USES= gl qmake qt:5 shebangfix tar:xz + MAKE_ARGS= PREFIX=${STAGEDIR}${PREFIX} MAKE_JOBS_UNSAFE= yes -USES= qmake qt:5 shebangfix tar:xz USE_LDCONFIG= yes USE_QT= core gui network svg linguist \ buildtools x11extras widgets diff --git a/sysutils/trueos-libqt5/files/patch-libtrueos_utils_netif.cpp b/sysutils/trueos-libqt5/files/patch-libtrueos_utils_netif.cpp new file mode 100644 index 000000000000..c9ce9d654ca2 --- /dev/null +++ b/sysutils/trueos-libqt5/files/patch-libtrueos_utils_netif.cpp @@ -0,0 +1,14 @@ +--- libtrueos/utils/netif.cpp.orig 2017-08-21 16:44:14 UTC ++++ libtrueos/utils/netif.cpp +@@ -146,11 +146,6 @@ QString NetworkInterface::mediaStatusAsString() + + switch (IFM_TYPE(ifm.ifm_active)) + { +- case IFM_FDDI: +- case IFM_TOKEN: +- if (ifm.ifm_status & IFM_ACTIVE) status = "inserted"; +- else status = "no ring"; +- break; + case IFM_IEEE80211: + if (ifm.ifm_status & IFM_ACTIVE) status = "associated"; + else status = "no carrier";