Summary: | app-text/xdvik-22.87.06-r1: fails to compile (error: passing argument 2 of ‘XawListChange’ from incompatible pointer type [-Wincompatible-pointer-types]) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sam James <sam> |
Component: | Current packages | Assignee: | CJK Team <cjk> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | csfore, flow, tex |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://github.com/TeX-Live/texlive-source/pull/64 https://github.com/gentoo/gentoo/pull/35546 https://bugs.gentoo.org/show_bug.cgi?id=927341 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 870412 | ||
Attachments: |
build.log
Patch to cast char** to const char** |
Description
Sam James
2023-12-02 21:09:05 UTC
Created attachment 885058 [details, diff]
Patch to cast char** to const char**
This patch should fix the error.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=281631c0ee38b5793bd4bc30e9dcde99905e41b9 commit 281631c0ee38b5793bd4bc30e9dcde99905e41b9 Author: Christopher Fore <csfore@posteo.net> AuthorDate: 2024-02-27 02:18:16 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2024-02-27 15:17:04 +0000 app-text/xdvik: Fix compilation on GCC 14 - Casts page_info.page_labels to _Xconst char** to correct an incompatible pointer type - Moves patches into an array gui/pagesel.c: In function ‘xaw_update_list’: gui/pagesel.c:541:41: error: passing argument 2 of ‘XawListChange’ from incompatible pointer type [-Wincompatible-pointer-types] 541 | XawListChange(LIST_WIDGET, page_info.page_labels, 0, | ~~~~~~~~~^~~~~~~~~~~~ | | | char ** https://wiki.gentoo.org/wiki/Modern_C_porting Unfortunately upstream rejected the PR due to backwards compatability issues Upstream PR: https://github.com/TeX-Live/texlive-source/pull/64 Mailing List: https://tug.org/pipermail/tex-k/2024-February/004008.html Closes: https://bugs.gentoo.org/919069 Signed-off-by: Christopher Fore <csfore@posteo.net> Closes: https://github.com/gentoo/gentoo/pull/35546 Signed-off-by: Florian Schmaus <flow@gentoo.org> app-text/xdvik/files/xdvik-22.87.06-c99-fix.patch | 40 +++++++++++++++++++++++ app-text/xdvik/xdvik-22.87.06-r1.ebuild | 6 +++- 2 files changed, 45 insertions(+), 1 deletion(-) |