Bug 247009 - sysutils/kio-fuse: fix build on GCC architectures
Summary: sysutils/kio-fuse: fix build on GCC architectures
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-05 17:03 UTC by Piotr Kubaj
Modified: 2020-06-05 20:46 UTC (History)
1 user (show)

See Also:
tcberner: maintainer-feedback+


Attachments
patch (1.14 KB, patch)
2020-06-05 17:03 UTC, Piotr Kubaj
tcberner: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj freebsd_committer freebsd_triage 2020-06-05 17:03:09 UTC
Created attachment 215261 [details]
patch

ENODATA is not defined on GCC systems:
/wrkdirs/usr/ports/sysutils/kio-fuse/work/kio-fuse-4.95.0/kiofusevfs.cpp: In static member function 'static int KIOFuseVFS::kioErrorToFuseError(int)':
/wrkdirs/usr/ports/sysutils/kio-fuse/work/kio-fuse-4.95.0/kiofusevfs.cpp:2323:55: error: 'ENODATA' was not declared in this scope
 2323 |   case KIO::ERR_NO_CONTENT                   : return ENODATA;
      |                                                       ^~~~~~~


Guard it behind ifdef.
Comment 1 Tobias C. Berner freebsd_committer freebsd_triage 2020-06-05 17:14:37 UTC
Ship it.
Comment 2 commit-hook freebsd_committer freebsd_triage 2020-06-05 20:46:45 UTC
A commit references this bug:

Author: pkubaj
Date: Fri Jun  5 20:46:33 UTC 2020
New revision: 538056
URL: https://svnweb.freebsd.org/changeset/ports/538056

Log:
  sysutils/kio-fuse: fix build on GCC architectures

  ENODATA is not defined on GCC systems:
  /wrkdirs/usr/ports/sysutils/kio-fuse/work/kio-fuse-4.95.0/kiofusevfs.cpp: In static member function 'static int KIOFuseVFS::kioErrorToFuseError(int)':
  /wrkdirs/usr/ports/sysutils/kio-fuse/work/kio-fuse-4.95.0/kiofusevfs.cpp:2323:55: error: 'ENODATA' was not declared in this scope
   2323 |   case KIO::ERR_NO_CONTENT                   : return ENODATA;

  Guard it behind ifdef.

  PR:		247009
  Approved by:	tcberner (maintainer)

Changes:
  head/sysutils/kio-fuse/files/patch-kiofusevfs.cpp