Package Details: gtk2 2.24.33-5

Git Clone URL: https://aur.archlinux.org/gtk2.git (read-only, click to copy)
Package Base: gtk2
Description: GObject-based multi-platform GUI toolkit (legacy)
Upstream URL: https://www.gtk.org/
Licenses: LGPL-2.1-or-later
Provides: libgailutil.so, libgdk-x11-2.0.so, libgtk-x11-2.0.so
Submitter: City-busz
Maintainer: City-busz
Last Packager: City-busz
Votes: 58
Popularity: 12.91
First Submitted: 2025-10-28 08:37 (UTC)
Last Updated: 2025-10-28 09:01 (UTC)

Latest Comments

1 2 3 4 Next › Last »

andreas_baumann commented on 2026-03-01 19:43 (UTC)

https://archlinux.org/packages/core/any/base-devel/ shows autoconf being part of base-devel. pacman -Qo /usr/bin/autoreconf says /usr/bin/autoreconf is owned by autoconf 2.72-1. This should just work.. (TM) :-)

MrVulcan commented on 2026-03-01 19:28 (UTC)

I just tried to install gtk2. My attempt ended with the following error message:

~/git/aur/gtk2/PKGBUILD: line 61: autoreconf: command not found

Lone_Wolf commented on 2026-02-21 10:44 (UTC) (edited on 2026-02-21 10:44 (UTC) by Lone_Wolf)

You're correct it is needed but it shouldn't be listed as a makedep .

automake is a member of base-devel and https://wiki.archlinux.org/title/Arch_User_Repository#Prerequisites makes very clear aur packages assume you have base-devel installed.

k4lizen commented on 2026-02-20 21:35 (UTC)

missing automake as a build dep because aclocal is required

peregrinus commented on 2026-02-11 17:40 (UTC)

@fullarnoldostupi: This builds fine for me in a clean chroot, both with gcc and with clang.

How did you do the clang build? Clean chroot? What are the changes you made to build this with clang?

Can you manually see the file .libs/libgdk-x11-2.0.so actually exists on your file system?

Have you tried disabling LTO for your build? With lto enabled (LTOFLAGS="-flto=auto") plus MAKEFLAGS='-j6' the build succeeded here.

fullarnoldostupi commented on 2026-02-11 12:28 (UTC)

gtk2 2.24.33-5 fails to build on fully updated Arch (2026-02-11) in gobject-introspection step while generating Gdk-2.0.gir. Fatal error: clang: no such file or directory: ./.libs/libgdk-x11-2.0.so (from g-ir- scanner temporary link stage). I have not yet tested workarounds, but this may be related to introspection and/or LTO/toolchain interaction. Happy to retest a proposed patch.

Moire commented on 2026-01-14 09:07 (UTC)

@samsim please post instructions on how to resolve the installation error.

samsim commented on 2025-12-08 11:51 (UTC) (edited on 2025-12-08 12:00 (UTC) by samsim)

Error installing this package:

Traceback (most recent call last):
  File "/usr/bin/g-ir-scanner", line 99, in <module>
    from giscanner.utils import dll_dirs
  File "/usr/lib/gobject-introspection/giscanner/utils.py", line 385, in <module>
    import distutils.cygwinccompiler
ModuleNotFoundError: No module named 'distutils'
make[4]: *** [/usr/share/gobject-introspection-1.0/Makefile.introspection:159: Gdk-2.0.gir] Error 1
make[4]: Leaving directory '/home/sam/.cache/yay/gtk2/src/gtk/gdk'
make[3]: *** [Makefile:1415: all-recursive] Error 1
make[3]: Leaving directory '/home/sam/.cache/yay/gtk2/src/gtk/gdk'
make[2]: *** [Makefile:1191: all] Error 2
make[2]: Leaving directory '/home/sam/.cache/yay/gtk2/src/gtk/gdk'
make[1]: *** [Makefile:742: all-recursive] Error 1
make[1]: Leaving directory '/home/sam/.cache/yay/gtk2/src/gtk'
make: *** [Makefile:634: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: gtk2-exit status 4

edit: this actually was an issue with my own installation. it is fixed now.

micwoj92 commented on 2025-11-24 23:05 (UTC)

@City-busz from the still open issue pop-gtk-theme package. https://gitlab.archlinux.org/archlinux/packaging/packages/pop-gtk-theme/-/issues/1

Better probably if gtk2 optdeps were removed from it.

City-busz commented on 2025-11-24 17:16 (UTC)

@micwoj92, the pixbuf engine was always included in the gtk2 package. I can see no strong reason to add it to provides=().