Package Details: ncview 2.1.11-1

Git Clone URL: https://aur.archlinux.org/ncview.git (read-only, click to copy)
Package Base: ncview
Description: A visual browser for netCDF format files
Upstream URL: https://cirrus.ucsd.edu/ncview/
Licenses: GPL3
Submitter: graziano
Maintainer: dawie
Last Packager: dawie
Votes: 17
Popularity: 0.000256
First Submitted: 2006-11-23 14:33 (UTC)
Last Updated: 2025-01-24 10:45 (UTC)

Latest Comments

1 2 3 Next › Last »

Strawpants commented on 2026-02-04 10:50 (UTC)

I've worked out the patch for this, and modified the PKGBUILD accordingly. So please consider the merging https://github.com/strawpants/ncview-aur in this aur repo.

On another note: when starting ncview on gnome + wayland. Xwayland caused the ncview-interface to be way too small (+ tiny font). I've removed the xwayland-native-scaling option from the org.gnome.mutter experimental-features and now this seems to work okay again.

dindon commented on 2025-10-16 12:09 (UTC)

@graziano could you properly format your patch?

graziano commented on 2025-09-27 11:50 (UTC)

Patch to compile with gcc 15.2.1.

diff --git a/PKGBUILD b/PKGBUILD index 6ddbdf9..427ce53 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,23 +2,27 @@

pkgname=ncview pkgver=2.1.11 -pkgrel=1 +pkgrel=2 pkgdesc="A visual browser for netCDF format files" arch=(i686 x86_64) url="https://cirrus.ucsd.edu/ncview/" license=('GPL3') depends=(netcdf udunits netpbm libxaw xorg-fonts-misc) -source=("https://cirrus.ucsd.edu/~pierce/ncview/${pkgname}-${pkgver}.tar.gz") -md5sums=('946e351ef6f50dab3d0a52092fe131d7') +source=("https://cirrus.ucsd.edu/~pierce/ncview/${pkgname}-${pkgver}.tar.gz" + "new_gcc.patch") +md5sums=('946e351ef6f50dab3d0a52092fe131d7' '57eb1b8aacb822929c153887c5239397')

prepare() { cd "$srcdir/$pkgname-$pkgver" sed -i configure -e 's/libppm/libnetpbm/g' + patch -p1 -i $srcdir/new_gcc.patch }

build() { cd "$srcdir/$pkgname-$pkgver" - CFLAGS="$CFLAGS -Wno-incompatible-pointer-types" CC="$(nc-config --cc)" CPPFLAGS="$CFLAGS" ./configure \ + CFLAGS="$CFLAGS -Wno-incompatible-pointer-types \ + -Wno-old-style-definition" \ + CC="$(nc-config --cc)" CPPFLAGS="$CFLAGS" ./configure \ --prefix=/usr \ --with-ppm_incdir=/usr/include/netpbm \ --with-ppm_libdir=/usr/lib diff --git a/new_gcc.patch b/new_gcc.patch new file mode 100644 index 0000000..a316061 --- /dev/null +++ b/new_gcc.patch @@ -0,0 +1,71 @@ +diff -Naurb a/src/interface/set_options.c b/src/interface/set_options.c +--- a/src/interface/set_options.c 2024-11-05 17:14:09.000000000 +0100 ++++ b/src/interface/set_options.c 2025-09-27 13:26:59.535886726 +0200 +@@ -111,7 +111,7 @@ + void cbsel_up_callback ( Widget w, XtPointer client_data, XtPointer call_data ); + void cbsel_down_callback ( Widget w, XtPointer client_data, XtPointer call_data ); + void cbsel_bottom_callback ( Widget w, XtPointer client_data, XtPointer call_data ); +-void expose_cbsel_cbar (); ++void expose_cbsel_cbar( Widget w, XtPointer client_data, XExposeEvent event, Boolean continue_to_dispatch ); + + static void cbsel_cmap_move ( Cmaplist pp_cmlist, int src, int dest ); + static void cmaps_set_current ( Cmaplist cmlist ); +diff -Naurb a/src/interface/x_interface.c b/src/interface/x_interface.c +--- a/src/interface/x_interface.c 2024-11-15 19:20:53.000000000 +0100 ++++ b/src/interface/x_interface.c 2025-09-27 13:25:48.852306242 +0200 +@@ -436,8 +436,8 @@ + void do_set_dataedit_place (Widget w, XButtonEvent e, String p, Cardinal n ); + void do_set_min_from_curdata(Widget w, XButtonEvent e, String p, Cardinal n ); + void do_set_max_from_curdata(Widget w, XButtonEvent e, String p, Cardinal n ); +-void expose_ccontour(); +-void expose_colorbar(); ++void expose_ccontour( Widget w, XtPointer client_data, XExposeEvent event, Boolean continue_to_dispatch ); ++void expose_colorbar( Widget w, XtPointer client_data, XExposeEvent event, Boolean continue_to_dispatch ); + + void testf(Widget w, XButtonEvent e, String p, Cardinal n ); + +@@ -611,7 +611,7 @@ + /*************/ + void x_initialize() + { +- void check_app_res(); ++ void check_app_res( AppDataPtr ad ); + void track_pointer(); + + static XtActionsRec new_actions[] = { +diff -Naurb a/src/SciPlot.c b/src/SciPlot.c +--- a/src/SciPlot.c 2024-11-05 17:14:09.000000000 +0100 ++++ b/src/SciPlot.c 2025-09-27 13:34:52.144211005 +0200 +@@ -108,21 +108,21 @@ + / + + static void Redisplay(); +-static void Resize(); ++static void Resize(SciPlotWidget w); + static Boolean SetValues(); + static void Initialize(); + static void Destroy(); + +-static void ComputeAll(); +-static void ComputeAllDimensions(); +-static void DrawAll(); +-static void ItemDrawAll(); +-static void ItemDraw(); +-static void EraseAll(); +-static void FontInit(); +-static int ColorStore(); +-static int FontStore(); +-static int FontnumReplace(); ++static void ComputeAll(SciPlotWidget w); ++static void ComputeAllDimensions(SciPlotWidget w); ++static void DrawAll(SciPlotWidget w); ++static void ItemDrawAll(SciPlotWidget w); ++static void ItemDraw(SciPlotWidget w, SciPlotItem item); ++static void EraseAll(SciPlotWidget w); ++static void FontInit(SciPlotWidget w, SciPlotFont pf); ++static int ColorStore(SciPlotWidget w, Pixel color); ++static int FontStore(SciPlotWidget w, int flag); ++static int FontnumReplace(SciPlotWidget w, int fontnum, int flag); + + +

mo0zi commented on 2025-09-25 12:26 (UTC)

Just adding some detail on the error

Error: Aborting: no font found

If you cannot use /usr/share/X11/app-defaults/Ncview as described by @lmingari, you can set

export XAPPLRESDIR=$(readlink -f ~/my/path) # relative path not allowed
echo "Ncview*font: fixed" > ${XAPPLRESDIR}/Ncview

instead.

mo0zi commented on 2025-09-14 14:47 (UTC)

Hi

yay -S ncview
...
==> Making package: ncview 2.1.11-1 (Sun 14 Sep 2025 04:45:55 PM CEST)
...
interface/x_interface.c: In function ‘x_initialize’:
interface/x_interface.c:643:9: error: too many arguments to function ‘check_app_res’; expected 0, have 1
  643 |         check_app_res( &app_data );
      |         ^~~~~~~~~~~~~  ~~~~~~~~~
interface/x_interface.c:614:19: note: declared here
  614 |         void      check_app_res();
      |                   ^~~~~~~~~~~~~
interface/x_interface.c: At top level:
interface/x_interface.c:2920:6: error: conflicting types for ‘check_app_res’; have ‘void(struct <anonymous> *)’
 2920 | void check_app_res( AppDataPtr ad )
      |      ^~~~~~~~~~~~~
interface/x_interface.c:614:19: note: previous declaration of ‘check_app_res’ with type ‘void(void)’
  614 |         void      check_app_res();
      |                   ^~~~~~~~~~~~~
interface/x_interface.c:3470:6: error: conflicting types for ‘expose_ccontour’; have ‘void(struct _WidgetRec *, void *, XExposeEvent *, Boolean *)’ {aka ‘void(struct _WidgetRec *, void *, XExposeEvent *, char *)’}
 3470 | void expose_ccontour( Widget w, XtPointer client_data, XExposeEvent *event, Boolean *continue_to_dispatch )
      |      ^~~~~~~~~~~~~~~
interface/x_interface.c:439:9: note: previous declaration of ‘expose_ccontour’ with type ‘void(void)’
  439 | void    expose_ccontour();
      |         ^~~~~~~~~~~~~~~
interface/x_interface.c:3484:6: error: conflicting types for ‘expose_colorbar’; have ‘void(struct _WidgetRec *, void *, XExposeEvent *, Boolean *)’ {aka ‘void(struct _WidgetRec *, void *, XExposeEvent *, char *)’}
 3484 | void expose_colorbar( Widget w, XtPointer client_data, XExposeEvent *event, Boolean *continue_to_dispatch )
      |      ^~~~~~~~~~~~~~~
interface/x_interface.c:440:9: note: previous declaration of ‘expose_colorbar’ with type ‘void(void)’
  440 | void    expose_colorbar();
      |         ^~~~~~~~~~~~~~~

Thanks a lot for help

lmingari commented on 2025-02-24 18:10 (UTC)

I was finally able to solve it by setting:

Ncview*font: fixed

in /usr/share/X11/app-defaults/Ncview. The font can be any of those listed by the xlsfonts command.

frepa commented on 2025-02-24 10:50 (UTC)

I got the same font error as Living. I have the package xorg-fonts-misc. What worked for me was editing /usr/share/X11/app-defaults/Ncview, and changing the line Ncview*font: -*-lucida-bold-r-*-*-14-*-*-*-*-*-*-* to Ncview*font: -*-*-bold-r-*-*-14-*-*-*-*-*-*-* I don't know which font it picks up, but it's usable.

lmingari commented on 2025-02-20 09:49 (UTC) (edited on 2025-02-20 09:52 (UTC) by lmingari)

After a recent update it no longer works. Tested in wayland+hyprland. This update required two new dependencies

  • xorg-fonts-alias-misc
  • xorg-fonts-misc

And ncview aborts with message:

Error: Aborting: no font found

dbuhl8 commented on 2025-01-31 21:05 (UTC)

I've been using ncview for a while successfully, today after updating I could no longer use it. I checked my pacman logs and saw only a few packages update (gstreamer, gst-plugin-base-libs, gst-plugin-bad-libs, gst-plugin-bad, gst-plugin-base, gst-plugin-good). I tried running ncview from a cluster (via X11 forwarding) and it also didn't work.

The error I'm getting is the exact message that Living's post shows. I already have xorg-fonts-misc installed. I'm using wayland/hyrpland. I found a similar post (https://forum.endeavouros.com/t/ncview-missing-fonts-in-wayland/63258) which seems to be unanswered.

huziy commented on 2021-11-22 13:32 (UTC)

I installed and ran ncview (2.1.8-1) ok, and got the warning about FontStruct, but the interface was in some weird language... Installing xorg-fonts-misc fixed my problem as well, although I still get the warning, the interface fonts are ok now. Thanks @OdinEidolon for sharing your fix.