[Pkg-kde-extras] Bug#1072280: FTBFS against libmatio 1.5.27

Sébastien Villemot sebastien at debian.org
Fri May 31 11:15:29 BST 2024


Source: labplot
Version: 2.10.1-2
Severity: important
Tags: ftbfs patch upstream
Control: block 1071614 by -1

Dear Maintainer,

labplot fails to build against libmatio 1.5.27 (currently in experimental),
because the return type of the Mat_GetDir() function now has some constness.

I attach both a build log and a patch that fixes the issue.

Best wishes,

--
⢀⣴⠾⠻⢶⣦⠀  Sébastien Villemot
⣾⠁⢠⠒⠀⣿⡁  Debian Developer
⢿⡄⠘⠷⠚⠋⠀  https://sebastien.villemot.name
⠈⠳⣄⠀⠀⠀⠀  https://www.debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: labplot_2.10.1-2_amd64.build.gz
Type: application/gzip
Size: 53207 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-kde-extras/attachments/20240531/36a96747/attachment-0001.gz>
-------------- next part --------------
Description: Fix FTBFS against libmatio 1.5.27
 The return type of Mat_GetDir() now has some constness.
Author: Sébastien Villemot <sebastien at debian.org>
Bug-Debian: https://bugs.debian.org/<FIXME>
Forwarded: no
Last-Update: 2024-05-31
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/backend/datasources/filters/MatioFilter.cpp
+++ b/src/backend/datasources/filters/MatioFilter.cpp
@@ -342,7 +342,7 @@ QString MatioFilter::fileInfoString(cons
 	info += QLatin1String("<br>");
 
 	size_t n;
-	char** dir = Mat_GetDir(matfp, &n);
+	char* const* dir = Mat_GetDir(matfp, &n);
 	info += i18n("Number of variables: ") + QString::number(n);
 	info += QStringLiteral("<br>");
 	if (dir && n < 10) { // only show variable info when there are not too many
@@ -550,7 +550,7 @@ void MatioFilterPrivate::parse(const QSt
 	}
 
 	// get names of all vars
-	char** dir = Mat_GetDir(matfp, &varCount);
+	char* const* dir = Mat_GetDir(matfp, &varCount);
 	DEBUG(Q_FUNC_INFO << ", found " << varCount << " vars")
 
 	varsInfo.clear();


More information about the pkg-kde-extras mailing list