Search Criteria
Package Details: ncview 2.1.11-1
Package Actions
| 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) |
Dependencies (5)
- libxaw (xawmAUR)
- netcdf (netcdf-openmpi)
- netpbm
- udunitsAUR
- xorg-fonts-misc
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
If you cannot use
/usr/share/X11/app-defaults/Ncviewas described by @lmingari, you can setinstead.
mo0zi commented on 2025-09-14 14:47 (UTC)
Hi
Thanks a lot for help
lmingari commented on 2025-02-24 18:10 (UTC)
I was finally able to solve it by setting:
in
/usr/share/X11/app-defaults/Ncview. The font can be any of those listed by thexlsfontscommand.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 lineNcview*font: -*-lucida-bold-r-*-*-14-*-*-*-*-*-*-*toNcview*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
And ncview aborts with message:
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-miscfixed my problem as well, although I still get the warning, the interface fonts are ok now. Thanks @OdinEidolon for sharing your fix.1 2 3 Next › Last »