[Git][debian-gis-team/ncview][master] 2 commits: Add patch to fix FTBFS due to incompatible-pointer-types.

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Sat Nov 2 07:17:22 GMT 2024



Bas Couwenberg pushed to branch master at Debian GIS Project / ncview


Commits:
997c0807 by Bas Couwenberg at 2024-11-02T08:13:40+01:00
Add patch to fix FTBFS due to incompatible-pointer-types.

- - - - -
b071787b by Bas Couwenberg at 2024-11-02T08:14:15+01:00
Set distribution to unstable.

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/incompatible-pointer-types.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,8 +1,9 @@
-ncview (2.1.10+ds-2) UNRELEASED; urgency=medium
+ncview (2.1.10+ds-2) unstable; urgency=medium
 
   * Bump Standards-Version to 4.7.0, no changes.
+  * Add patch to fix FTBFS due to incompatible-pointer-types.
 
- -- Bas Couwenberg <sebastic at debian.org>  Sun, 28 Jul 2024 19:46:35 +0200
+ -- Bas Couwenberg <sebastic at debian.org>  Sat, 02 Nov 2024 08:13:44 +0100
 
 ncview (2.1.10+ds-1) unstable; urgency=medium
 


=====================================
debian/patches/incompatible-pointer-types.patch
=====================================
@@ -0,0 +1,48 @@
+Description: Fix incompatible-pointer-types error.
+ interface/dataedit.c: In function 'dataedit_callback':
+ interface/dataedit.c:212:46: error: passing argument 2 of 'XawListChange' from incompatible pointer type [-Wincompatible-pointer-types]
+   212 |         XawListChange( dataedit_list_widget, (const char **)list_text, 0, 0, True );
+       |                                              ^~~~~~~~~~~~~~~~~~~~~~~~
+       |                                              |
+       |                                              const char **
+ In file included from interface/../ncview.includes.h:57,
+                  from interface/dataedit.c:23:
+ /usr/include/X11/Xaw/List.h:170:26: note: expected 'char **' but argument is of type 'const char **'
+   170 |  String                 *list,
+       |  ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
+ .
+ interface/filesel.c:244:25: error: passing argument 2 of 'XawListChange' from incompatible pointer type [-Wincompatible-pointer-types]
+   244 |                         (const char **)stringlist_to_Xawlist( files_and_dirs ),
+       |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+       |                         |
+       |                         const char **
+ In file included from interface/../ncview.includes.h:57,
+                  from interface/filesel.c:28:
+ /usr/include/X11/Xaw/List.h:170:26: note: expected 'char **' but argument is of type 'const char **'
+   170 |  String                 *list,
+       |  ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: yes, mailto:dpierce at ucsd.edu
+
+--- a/src/interface/dataedit.c
++++ b/src/interface/dataedit.c
+@@ -209,7 +209,7 @@ XtPointer call_data;
+ 	index = (size_t)list->list_index;
+ 	in_change_dat( index, new_val );
+ 	strcpy( *(list_text+list->list_index), line );
+-	XawListChange( dataedit_list_widget, (const char **)list_text, 0, 0, True );
++	XawListChange( dataedit_list_widget, (char **)list_text, 0, 0, True );
+ 	XawListHighlight( dataedit_list_widget, list->list_index );
+ }
+ 
+--- a/src/interface/filesel.c
++++ b/src/interface/filesel.c
+@@ -241,7 +241,7 @@ fs_double_click(Widget w, XButtonEvent *
+ 			fprintf( stderr, "Error when trying to chdir to %s\n", highlited_entry->string );
+ 		fs_get_file_dir_list( &files_and_dirs );
+ 		XawListChange( fs_list_widget, 
+-			(const char **)stringlist_to_Xawlist( files_and_dirs ),
++			(char **)stringlist_to_Xawlist( files_and_dirs ),
+ 			0, 0, False );
+ 		XtVaSetValues( fs_pathname_text_widget, 
+ 			XtNstring, fs_cwd(), NULL );


=====================================
debian/patches/series
=====================================
@@ -2,3 +2,4 @@ manpage.patch
 autoreconf.patch
 netcdf-cc.patch
 spelling-errors.patch
+incompatible-pointer-types.patch



View it on GitLab: https://salsa.debian.org/debian-gis-team/ncview/-/compare/ce95ea26aea43fc0b1446bc57906c54567548b96...b071787ba713abb93662fab07ea71dfe40d2bdea

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/ncview/-/compare/ce95ea26aea43fc0b1446bc57906c54567548b96...b071787ba713abb93662fab07ea71dfe40d2bdea
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20241102/acc5cd42/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list