Created attachment 184624 [details]
suggested patch to qstorageinfo__unix.cpp
QStorageInfo::mountedVolumes() returns an empty list.
See filelight (https://github.com/KDE/filelight) as a testcase. Particularly, src/localLister.cpp there.
It looked like patching /usr/ports/devel/qt5-core/files/patch-src_corelib_io_qstorageinfo__unix.cpp should have helped, but it doesn't.
It calls getfsstat which returns a non-empty list, but QStorageInfo::mountedVolumes() still returns an empty list.
Created attachment 184625 [details]
Please disregard my previous message.
The attached patch solves the problem.
we have already upstreamed that change recently:
But it seems we forgot to add it to the propper ports tree :D
A commit references this bug:
Date: Sun Jul 23 10:56:03 UTC 2017
New revision: 446462
Fix QStorageInfo in devel/qt5-core.
QStorageInfo did not return any valid data on FreeBSD.
Add upstreamed patch:
getmntinfo() was wrongly called with flag 0. This changes it to use MNT_NOWAIT.