[Bug 286176] x11-toolkits/rubygem-gtk2: Fix build with rubygem-glib2-4.2.7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 18 Apr 2025 10:07:27 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286176
Bug ID: 286176
Summary: x11-toolkits/rubygem-gtk2: Fix build with
rubygem-glib2-4.2.7
Product: Ports & Packages
Version: Latest
Hardware: amd64
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: sunpoet@FreeBSD.org
Reporter: dinoex@FreeBSD.org
Assignee: sunpoet@FreeBSD.org
Flags: maintainer-feedback?(sunpoet@FreeBSD.org)
Created attachment 259667
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=259667&action=edit
suggested patch
ports fails to build:
```
rbgtkcontainer.c:510:12: warning: call to undeclared function
'rbgobj_gobject_new'; ISO C99 and later do not support implicit function
declarations [-Wimplicit-function-declaration]
510 | gobj = rbgobj_gobject_new(RVAL2GTYPE(self), params_hash);
| ^
```
See report:
https://lists.freebsd.org/archives/freebsd-pkg-fallout/2025-February/729794.html
The attached patch fixed the build for me.
Obtained from: Fedora
git clone https://src.fedoraproject.org/rpms/rubygem-gtk2.git
file: rubygem-gtk2/gtk2-3.4.3-c23-port-to-glib2_426.patch
Tested with a small ruby application, GUI comes up.
--
You are receiving this mail because:
You are the assignee for the bug.