1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00

Unbreak sysutils/pc-networkmanager

This is part of the TrueOS tools, and it was marked BROKEN about
a year ago; a fix appeared upstream only days later, but there's
been no udpate to the port.

The same kind of fix probably applies to sysutils/pcbsd-utils-qt5
but I don't feel like chasing it. PR listed below is for that port,
pinging maintainer(s).

(All this is because we're chasing fallout for the Qt 5.13 update)

PR:		231682
This commit is contained in:
Adriaan de Groot 2019-09-01 21:01:04 +00:00
parent fd6455bc16
commit e1223289e7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=510742
2 changed files with 17 additions and 4 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= pc-networkmanager
PORTVERSION= 201710031301
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= sysutils
MAINTAINER= jt@ixsystems.com
@ -10,15 +10,12 @@ COMMENT= TrueOS Qt based network manager
LICENSE= BSD2CLAUSE
BROKEN_FreeBSD_12= use of undeclared identifiers 'IFM_FDDI' and 'IFM_TOKEN'
BROKEN_FreeBSD_13= use of undeclared identifiers 'IFM_FDDI' and 'IFM_TOKEN'
ONLY_FOR_ARCHS= amd64
LIB_DEPENDS= libtrueos-ui.so:sysutils/trueos-libqt5
MAKE_ARGS= PREFIX=${STAGEDIR}${PREFIX}
CONFLICTS= pcbsd-utils*
MAKE_JOBS_UNSAFE= yes
USES= qmake qt:5 shebangfix tar:xz

View File

@ -0,0 +1,16 @@
diff --git src/backend/NetDevice.cpp src/backend/NetDevice.cpp
index bb3a047..eb1f320 100644
--- src/backend/NetDevice.cpp
+++ src/backend/NetDevice.cpp
@@ -169,11 +169,6 @@ QString NetDevice::mediaStatusAsString(){
QString status;
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";