Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 919249

Summary: x11-wm/notion-4.0.2_p20220613 - frame.c: error: passing argument 1 of ioncore_grab_establish from incompatible pointer type [-Wincompatible-pointer-ty
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: David Seifert <soap>
Status: RESOLVED FIXED    
Severity: normal Keywords: PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/36498
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
emerge-history.txt.xz
environment
etc.clang.tar.xz
etc.portage.tar.xz
qlist-info.txt.xz
temp.tar.xz
x11-wm:notion-4.0.2_p20220613:20231205-010157.log

Description Toralf Förster gentoo-dev 2023-12-05 08:08:41 UTC
      |            ^~~~~~~
frame.c: In function numbers_grab_handler:
frame.c:781:55: warning: unused parameter xev [-Wunused-parameter]
  781 | static int numbers_grab_handler(WRegion *reg, XEvent *xev)
      |                                               ~~~~~~~~^~~
frame.c: In function frame_set_numbers_extl:
frame.c:799:32: error: passing argument 1 of ioncore_grab_establish from incompatible pointer type [-Wincompatible-pointer-types]
  799 |         ioncore_grab_establish(frame, numbers_grab_handler, NULL,
      |                                ^~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_systemd_merged_usr-20231128-165524

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.6
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.73.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.21.4 linux/amd64

  HEAD of ::gentoo
commit 5b02a855dbc36be0c5b64fda493fa0853b0ca988
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Dec 4 23:17:02 2023 +0000

    2023-12-04 23:17:02 UTC

emerge -qpvO x11-wm/notion
[ebuild  N    ] x11-wm/notion-4.0.2_p20220613  USE="nls xinerama xrandr" LUA_SINGLE_TARGET="lua5-4"
Comment 1 Toralf Förster gentoo-dev 2023-12-05 08:08:42 UTC
Created attachment 877259 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-05 08:08:44 UTC
Created attachment 877260 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2023-12-05 08:08:45 UTC
Created attachment 877261 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-05 08:08:45 UTC
Created attachment 877262 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-05 08:08:47 UTC
Created attachment 877263 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-05 08:08:48 UTC
Created attachment 877264 [details]
qlist-info.txt.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-05 08:08:49 UTC
Created attachment 877265 [details]
temp.tar.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-05 08:08:50 UTC
Created attachment 877266 [details]
x11-wm:notion-4.0.2_p20220613:20231205-010157.log
Comment 9 Larry the Git Cow gentoo-dev 2024-05-02 03:55:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b37553a9c5af8e400cd23a2dd79ecdf4b32812e

commit 5b37553a9c5af8e400cd23a2dd79ecdf4b32812e
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2024-05-01 08:48:39 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-05-02 03:54:25 +0000

    x11-wm/notion: Fix passing of incompatible pointer type
    
    TODO:
    According to developer/s, frame->mplex->win would be a more type-safe way to
    achieve the same, but then it becomes less clear whether this is an 'is' or a
    'has' relationship.
    
    Closes: https://bugs.gentoo.org/919249
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/36498
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/notion-4.0.2-gcc14-build-fix.patch       | 49 +++++++++++
 x11-wm/notion/notion-4.0.2_p20220613-r1.ebuild     | 97 ++++++++++++++++++++++
 x11-wm/notion/notion-9999.ebuild                   |  6 +-
 3 files changed, 151 insertions(+), 1 deletion(-)