Bug 244390

Summary: sysutils/gdisk: build failure after update to 1.0.5: 'ncursesw/ncurses.h' file not found
Product: Ports & Packages Reporter: John Hein <jcfyecrayz>
Component: Individual Port(s)Assignee: Po-Chuan Hsieh <sunpoet>
Status: Closed FIXED    
Severity: Affects Some People CC: jcfyecrayz
Priority: --- Keywords: needs-qa, regression
Version: LatestFlags: bugzilla: maintainer-feedback? (sunpoet)
koobs: maintainer-feedback? (bapt)
Hardware: Any   
OS: Any   

Description John Hein 2020-02-25 02:18:00 UTC
If CGDISK=on, 1.0.5 triggers a compile error:

--- gptcurses.o ---
gptcurses.cc:29:10: fatal error: 'ncursesw/ncurses.h' file not found
#include <ncursesw/ncurses.h>
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
*** [gptcurses.o] Error code 1
Comment 1 John Hein 2020-02-25 02:19:53 UTC
upstream difference from 1.0.4 to 1.0.5:

--- gptfdisk-1.0.4/gptcurses.cc 2018-07-05 14:19:46.000000000 -0600
+++ gptfdisk-1.0.5/gptcurses.cc 2020-02-17 15:34:11.000000000 -0700
@@ -19,10 +19,15 @@
  *
  */
 
+#include <clocale>
 #include <iostream>
 #include <string>
 #include <sstream>
+#ifdef __APPLE__
 #include <ncurses.h>
+#else
+#include <ncursesw/ncurses.h>
+#endif
 #include "gptcurses.h"
 #include "support.h"
Comment 2 commit-hook freebsd_committer freebsd_triage 2020-02-25 20:55:45 UTC
A commit references this bug:

Author: sunpoet
Date: Tue Feb 25 20:55:26 UTC 2020
New revision: 527130
URL: https://svnweb.freebsd.org/changeset/ports/527130

Log:
  Fix build with CGDISK enabled

  PR:		244390
  Reported by:	John Hein <jcfyecrayz@liamekaens.com>

Changes:
  head/sysutils/gdisk/files/patch-gptcurses.cc
Comment 3 Po-Chuan Hsieh freebsd_committer freebsd_triage 2020-02-25 20:56:24 UTC
Committed. Thanks!