Package Details: pygtk 2.24.0-14

Git Clone URL: https://aur.archlinux.org/pygtk.git (read-only, click to copy)
Package Base: pygtk
Description: Python bindings for the GTK widget set
Upstream URL: https://wiki.gnome.org/Projects/PyGTK
Keywords: GTK Python widget
Licenses: LGPL-2.1-or-later
Submitter: arojas
Maintainer: creyon
Last Packager: creyon
Votes: 78
Popularity: 0.21
First Submitted: 2020-03-29 19:09 (UTC)
Last Updated: 2024-06-02 15:27 (UTC)

Pinned Comments

ragouel commented on 2022-06-11 23:26 (UTC) (edited on 2022-06-12 19:54 (UTC) by ragouel)

From official GNOME docs:

"Attention: PyGTK 2.24 will be the last release in the PyGTK series and will support the full GTK-2-24 API. PyGTK should not be used for new projects and existing PyGTK applications are recommended to be ported to PyGObject. See here for more information."

https://wiki.gnome.org/Projects/PyGTK/WhatsNew224

Please stop asking me to update this package. I only "keep" it, so that it is not messed with by others, as some older applications still rely on it to function.

Thank you.

Latest Comments

MarsSeed commented on 2024-08-15 22:28 (UTC)

@creyon, thanks for maintaining this. Here's the proper way to define the optional dependencies:

diff --git i/PKGBUILD w/PKGBUILD
index 418036b..10772d7 100644
--- i/PKGBUILD
+++ w/PKGBUILD
@@ -9,7 +9,14 @@ pkgdesc="Python bindings for the GTK widget set"
 url='https://wiki.gnome.org/Projects/PyGTK'
 arch=('x86_64' 'aarch64')
 license=('LGPL-2.1-or-later')
-depends=('python2-cairo' 'python2-gobject2' 'gtk2' 'python2-numpy' 'libglade')
+depends=('python2-gobject2'
+         'gtk2')
+makedepends=('libglade'
+             'python2-cairo'
+             'python2-numpy')
+optdepends=('libglade: glade interface bindings'
+            'python2-cairo: cairo grahics bindings'
+            'python2-numpy: support for numeric Python features')
 source=("${pkgname}-${pkgver}.tar.bz2::https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2"
         'drop-pangofont.patch'
         'python27.patch'

creyon commented on 2024-06-02 15:33 (UTC)

Hopefully those issues are fixed now.

creyon commented on 2024-05-30 15:11 (UTC)

@micwoj92 Ah, thank you, I understand. I will look into fixing that.

micwoj92 commented on 2024-05-28 18:47 (UTC)

This is because in order for the to become "optdepends" they need to be present at compile time.

If you compile pygtk, then install libglade and/or python2-numpy you will not get anything extra and will have to recompile pygtk. This is not how software is packaged for Arch Linux.

creyon commented on 2024-05-26 20:34 (UTC)

@patlefort I'm not sure I understand. The README on the PyGTK archive repo lists gtk2, libglade and numpy as optional dependencies, and the package compiles without any of them installed.

gtk2 is indeed missing entirely, so I should at least add that to optdepends, but I'm wondering what you mean by "required at compile time". In what way are they required?

--- https://gitlab.gnome.org/Archive/pygtk/-/blob/master/README

Requirements
  • C compiler (GCC, MSVC and mingw supported)
  • Python 2.3.5 or higher
  • PyGObject 2.21.3 or higher
  • Pycairo 1.0.2 or higher
  • Glib 2.8.0 or higher
  • GTK+ 2.8.0 or higher (optional) or GTK+ 2.10.0 or higher for 2.10 API [...] GTK+ 2.22.0 or higher for 2.22 API GTK+ 2.24.0 or higher for 2.24 API
  • libglade 2.5.0 or higher (optional)
  • pycairo 1.0.2 or higher (optional)
  • numpy (optional)

patlefort commented on 2024-05-25 20:11 (UTC)

Missing gtk2 in dependencies. Also both optdepends shouldn't be optional since they are required at compile time.

creyon commented on 2024-05-19 23:02 (UTC)

Okay, I applied -fpermissive. I also fixed the license identifier to be SPDX-compliant (thank you @HurricanePootis again for the suggestion), and removed some (hopefully) unnecessary dependencies. I tried to build in a clean chroot, but I'm very tired and didn't want to wrangle python2 dependencies so I gave up. Let me know if you experience any issues.

creyon commented on 2024-05-19 18:34 (UTC)

Hi all. I will get around to resolving this issue soon.

It seems that GCC14 upgraded some warnings into errors, namely -Wint-conversion and -Wimplicit-function-declaration. https://gcc.gnu.org/gcc-14/porting_to.html#warnings-as-errors

The article above does indeed suggest to use -fpermissive for old code, so that's what I'll do, rather than patching the source to fix the issue directly or using GCC13. Thank you @HurricanePootis for the suggestion.

HurricanePootis commented on 2024-05-17 14:37 (UTC)

Hello, I have fixed compilation of this package

diff --git a/PKGBUILD b/PKGBUILD
index 524015e..6c910ab 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -38,7 +38,7 @@ prepare() {

 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
-  PYTHON=/usr/bin/python2 ./configure --prefix=/usr --build=unknown-unknown-linux --disable-docs
+  PYTHON=/usr/bin/python2 CFLAGS+=" -fpermissive" CXXFLAGS+=" -fpermissive" ./configure --prefix=/usr --build=unknown-unknown-linux --disable-docs
   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
 }

The flag -fpermissive needs to be added to the cflags and cxxflags.

nolemretaw commented on 2024-05-17 13:46 (UTC)

Same issue, source code which pygtk is built from is probably outdated, and needs to be fixed.

Felixoid commented on 2024-05-15 20:10 (UTC)

I have the same issues building it with gcc14 =\

micwoj92 commented on 2024-05-13 20:32 (UTC)

Fails to build due to changes in gcc14:

pango.c: In function ‘_wrap_PangoFont__proxy_do_get_metrics’:
pango.c:3986:16: error: implicit declaration of function ‘pango_font_metrics_new’; did you mean ‘pango_font_metrics_ref’? [-Wimplicit-function-declaration]
 3986 |         return pango_font_metrics_new();
      |                ^~~~~~~~~~~~~~~~~~~~~~
      |                pango_font_metrics_ref
pango.c:3986:16: error: returning ‘int’ from a function with return type ‘PangoFontMetrics *’ {aka ‘struct _PangoFontMetrics *’} makes pointer from integer without a cast [-Wint-conversion]
 3986 |         return pango_font_metrics_new();
      |                ^~~~~~~~~~~~~~~~~~~~~~~~
pango.c:4000:16: error: returning ‘int’ from a function with return type ‘PangoFontMetrics *’ {aka ‘struct _PangoFontMetrics *’} makes pointer from integer without a cast [-Wint-conversion]
 4000 |         return pango_font_metrics_new();
      |                ^~~~~~~~~~~~~~~~~~~~~~~~
pango.c:4011:16: error: returning ‘int’ from a function with return type ‘PangoFontMetrics *’ {aka ‘struct _PangoFontMetrics *’} makes pointer from integer without a cast [-Wint-conversion]
 4011 |         return pango_font_metrics_new();
      |                ^~~~~~~~~~~~~~~~~~~~~~~~
pango.c:4021:16: error: returning ‘int’ from a function with return type ‘PangoFontMetrics *’ {aka ‘struct _PangoFontMetrics *’} makes pointer from integer without a cast [-Wint-conversion]
 4021 |         return pango_font_metrics_new();
      |                ^~~~~~~~~~~~~~~~~~~~~~~~
pango.c: In function ‘_wrap_pango_font_map_get_shape_engine_type’:
atk.override: In function ‘_wrap_atk_component_get_position’:
pango.c:4710:11: error: implicit declaration of function ‘pango_font_map_get_shape_engine_type’; did you mean ‘_wrap_pango_font_map_get_shape_engine_type’? [-Wimplicit-function-declaration]
 4710 |     ret = pango_font_map_get_shape_engine_type(PANGO_FONT_MAP(self->obj));
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |           _wrap_pango_font_map_get_shape_engine_type
atk.override:142:5: warning: ‘atk_component_get_position’ is deprecated: Use 'atk_component_get_extents' instead [-Wdeprecated-declarations]
  142 |     atk_component_get_position(ATK_COMPONENT(self->obj), &x, &y, coord_type);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/atk-1.0/atk/atk.h:27:
/usr/include/atk-1.0/atk/atkcomponent.h:250:6: note: declared here
  250 | void atk_component_get_position (AtkComponent *component,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
atk.override: In function ‘_wrap_atk_component_get_size’:
atk.override:152:5: warning: ‘atk_component_get_size’ is deprecated: Use 'atk_component_get_extents' instead [-Wdeprecated-declarations]
  152 |     atk_component_get_size(ATK_COMPONENT(self->obj), &width, &height);
      |     ^~~~~~~~~~~~~~~~~~~~~~
pango.c:4710:9: error: assignment to ‘const gchar *’ {aka ‘const char *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
 4710 |     ret = pango_font_map_get_shape_engine_type(PANGO_FONT_MAP(self->obj));
      |         ^
/usr/include/atk-1.0/atk/atkcomponent.h:255:6: note: declared here
  255 | void atk_component_get_size (AtkComponent *component,
      |      ^~~~~~~~~~~~~~~~~~~~~~
atk.c: In function ‘_wrap_atk_component_remove_focus_handler’:
atk.c:5833:5: warning: ‘atk_component_remove_focus_handler’ is deprecated [-Wdeprecated-declarations]
 5833 |     atk_component_remove_focus_handler(ATK_COMPONENT(self->obj), handler_id);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/atk-1.0/atk/atkcomponent.h:265:6: note: declared here
  265 | void atk_component_remove_focus_handler (AtkComponent *component,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pango.c: In function ‘_wrap_PangoFontset__proxy_do_get_metrics’:
pango.c:5382:16: error: returning ‘int’ from a function with return type ‘PangoFontMetrics *’ {aka ‘struct _PangoFontMetrics *’} makes pointer from integer without a cast [-Wint-conversion]
 5382 |         return pango_font_metrics_new();
      |                ^~~~~~~~~~~~~~~~~~~~~~~~
pango.c:5392:16: error: returning ‘int’ from a function with return type ‘PangoFontMetrics *’ {aka ‘struct _PangoFontMetrics *’} makes pointer from integer without a cast [-Wint-conversion]
 5392 |         return pango_font_metrics_new();
      |                ^~~~~~~~~~~~~~~~~~~~~~~~
pango.c:5402:16: error: returning ‘int’ from a function with return type ‘PangoFontMetrics *’ {aka ‘struct _PangoFontMetrics *’} makes pointer from integer without a cast [-Wint-conversion]
 5402 |         return pango_font_metrics_new();
      |                ^~~~~~~~~~~~~~~~~~~~~~~~
pango.c:5411:16: error: returning ‘int’ from a function with return type ‘PangoFontMetrics *’ {aka ‘struct _PangoFontMetrics *’} makes pointer from integer without a cast [-Wint-conversion]
 5411 |         return pango_font_metrics_new();
      |                ^~~~~~~~~~~~~~~~~~~~~~~~

Lucas.Sichardt commented on 2024-05-12 07:12 (UTC)

Hello and thanks for that fast reply.

You are right. Happens when trying things out late when it's dark and you have just installed from live system rapidly ;)

Sorry to bother...

pygtk Package works fine indeed.

lxgr commented on 2024-05-11 21:42 (UTC)

Hey, just install fakeroot: sudo pacman -S fakeroot fakeroot is needed for all packaging. You might have forgotten to install the base-devel group, which contains "Basic tools to build Arch Linux packages". So this issue is not at all related to this package.

Lucas.Sichardt commented on 2024-05-11 20:14 (UTC)

Hello,

this package does not seem to work for me. When trying to build it I get the following error when building python2 is supposed to be done:

Cannot find the fakeroot binary.

Any idea how to solve this?

creyon commented on 2023-11-15 14:54 (UTC)

Adopted. I don't think there are any major changes to be made, but I'll keep track of this package for anything that needs to be fixed.

I think the arch should be updated to 'any', since it's a Python library. I'll do that soon. https://wiki.archlinux.org/title/Python_package_guidelines

Alad commented on 2022-06-12 13:05 (UTC)

You should update the upstream URL to that link, since the current one (which points to pygobject) is confusing at best...

ragouel commented on 2022-06-11 23:26 (UTC) (edited on 2022-06-12 19:54 (UTC) by ragouel)

From official GNOME docs:

"Attention: PyGTK 2.24 will be the last release in the PyGTK series and will support the full GTK-2-24 API. PyGTK should not be used for new projects and existing PyGTK applications are recommended to be ported to PyGObject. See here for more information."

https://wiki.gnome.org/Projects/PyGTK/WhatsNew224

Please stop asking me to update this package. I only "keep" it, so that it is not messed with by others, as some older applications still rely on it to function.

Thank you.

ostroffjh commented on 2022-01-24 23:31 (UTC)

Never mind on my last comment. I'm using Artix, not Arch, which is why I didn't see it in the main repos.

ostroffjh commented on 2022-01-24 18:33 (UTC)

python2-cairo (a listed dep) is no longer in AUR. That leaves it so pygtk can't be built.

robson commented on 2021-05-22 22:33 (UTC) (edited on 2021-05-22 22:35 (UTC) by robson)

An identical replacement for fslint-gui is czkawka-gui-bin https://aur.archlinux.org/packages/czkawka-gui-bin/ which does not need pygtk.

Rhinoceros commented on 2021-05-12 23:15 (UTC) (edited on 2021-05-12 23:15 (UTC) by Rhinoceros)

Forum post regarding missing libglade.

atescula commented on 2021-05-12 19:22 (UTC)

pygtk is a dependency for fslint-gui package for example. pygtk cannot be installed due to libglade missing fslint-gui cannot be started

class101 commented on 2021-05-10 15:54 (UTC) (edited on 2021-05-10 15:55 (UTC) by class101)

I think libglade has been removed from extra/ because the official page mention it is deprecated and shouldn't be used anymore

This module is heading towards planned deprecation. It will continue to be supported and API/ABI stable throughout the GNOME 2.x series, but we do not recommend using it in new applications unless you require functionality that has not already been moved elsewhere.

https://developer.gnome.org/libglade/

ArthurBorsboom commented on 2021-05-10 14:47 (UTC)

The dependency 'libglade' does not exist anymore in the AUR, according to the package manager 'yay'.

ragouel commented on 2021-01-16 00:37 (UTC)

Apologies for the delay. I added support for aarch64 thanks to gameslayer's suggestion.

gameslayer commented on 2021-01-09 11:47 (UTC) (edited on 2021-01-09 11:47 (UTC) by gameslayer)

Works on Arm64 (Raspberry pi 4)

Just edited the pkgbuild file and added aarch64 to the arch and to fix the compiling issue with pygtk I added --build=unknown-unknown-linux to the end of ./configure to make it work.

grumpymatt commented on 2020-12-25 21:41 (UTC)

I was able to compile on a raspberry pi 4 using http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD and modifying the pkgbuild to allow ARM architecture.

ragouel commented on 2020-11-11 21:19 (UTC) (edited on 2021-01-16 00:38 (UTC) by ragouel)

If anyone has an ARM device and is willing to help me test this on it, let me know so I can provide support for ARM architecture as well.

eschwartz commented on 2020-08-16 21:50 (UTC)

This was already discussed around https://aur.archlinux.org/packages/pygtk/?PP=250#comment-740369

The ONLY correct solution for updating config.guess is re-running autoreconf -fi. However, the arch=('x86_64') in the PKGBUILD does suggest it isn't tested on ARM, and it may or may not work or need additional workarounds to compile on such architectures. It is up to the maintainer to decide whether to add/test this support.

lxgr commented on 2020-08-16 21:42 (UTC)

This package causes problems compiling on archlinux arm aarch64, because the config.guess in the sourcecode is way out of date. This can be worked around by including a file called 'config.guess' with this http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD content and copying it to the builddir. I did this by adding 'config.guess' to source, 'Skip' to sha256sums and 'cp ../config.guess ./' at the end of prepare in the PKGBUILD.

daniel_shub commented on 2020-05-19 00:29 (UTC)

@zman0900 I think the point is that it is unlikely that someone maliciously replaces the patches but does not modify the PKGBUILD since they are downloaded as a bundle. Silent corruption should be caught when you clone the git repository, but is probably technically a possibility. Ideally the patches and the PKGBUILD would be signed, but in practice, the Arch way is buyer beware. You should be reading the PKGBUILD and associated files and make sure you know what they are doing.

zman0900 commented on 2020-05-18 23:58 (UTC)

How so? Without them, file integrity is not checked. Patches could be silently corrupted or maliciously replaced and it would go unnoticed.

ragouel commented on 2020-05-18 23:43 (UTC)

@zman0900 because they are redundant.

zman0900 commented on 2020-05-18 17:05 (UTC)

Why are checksums skipped on the patch files?

eschwartz commented on 2020-04-26 08:37 (UTC)

What's the actual command you ran?

ragouel commented on 2020-04-26 08:14 (UTC)

What Operating System are you using ?

thumbless commented on 2020-04-26 08:07 (UTC)

I just get error: missing package metadata When trying to install this.

eschwartz commented on 2020-04-21 15:12 (UTC)

Hmm, this could be because gitlab generated patches have the server's running git version embedded in the footer, and they've updated their server. Kind of silly... :(

If the current version of the patch is git added to the AUR repository it should continue to work with no modifications to the PKGBUILD, and be proof against this in the future.

spdyn1 commented on 2020-04-21 13:29 (UTC)

@fdo10 : in order to compile, you need to : sha512sum 4aaa48eb80c6802aec6d03e5695d2a0ff20e0fc2.patch if you decide to trust it, and edit the PKGBUILD file accordingly (replace the 2nd "sha512sums") Hope it helps. sp

fdo10 commented on 2020-04-21 12:02 (UTC)

I'm getting this error while trying to install:

user@hostname git clone https://aur.archlinux.org/pygtk.git

user@hostname ~/pygtk $ makepkg -si
==> Making package: pygtk 2.24.0-12 (di 21 apr 2020 13:21:20)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found pygtk-2.24.0.tar.bz2
  -> Found 4aaa48eb80c6802aec6d03e5695d2a0ff20e0fc2.patch
  -> Found python27.patch
  -> Found fix-leaks-of-pango-objects.patch
==> Validating source files with sha512sums...
    pygtk-2.24.0.tar.bz2 ... Passed
    4aaa48eb80c6802aec6d03e5695d2a0ff20e0fc2.patch ... FAILED
    python27.patch ... Passed
    fix-leaks-of-pango-objects.patch ... Passed
==> ERROR: One or more files did not pass the validity check!

Peach commented on 2020-04-19 09:55 (UTC)

FYI I've created a thread on the forums re the issue with pango-font.h https://bbs.archlinux.org/viewtopic.php?pid=1899239#p1899239

ragouel commented on 2020-04-19 06:33 (UTC)

OK, I reverted back the changes.

eschwartz commented on 2020-04-19 05:07 (UTC)

@Trillien,

Can you really not suggest downloading completely random, unchecksummed code during prepare()? Especially over http without even SSL to protect users against this utter trash malware vector?

config.guess and config.sub come from automake, and if you need to regenerate them, rerun autoreconf -fi.

Not that this is a problem anyway, unless you're on archlinuxarm. While it is of course permissible at the maintainer's discretion to support architectures other than x86_64, the current arch=() variable lists x86_64 only which indicates that yes, there may be problems on architectures the maintainer has not tested.

@ragouel,

I object most strongly to the use of wget in prepare for essentially any purposes whatsoever, and even moreso for code which is executed during build(), and demand in the most certain terms possible, this must be removed. Immediately.

If you wish to officially support ARM architectures for this package, please do so by adding the relevant architectures to the arch=() array, and testing that they work with any needed modifications such as autoreconf, not wget.

gok commented on 2020-04-18 09:41 (UTC) (edited on 2020-04-18 09:42 (UTC) by gok)

@ragouel: is there a specific reason why you switched the integrity checks from sha256sums to md5sums? If not, it would be great if you could switch back to sha256sums, because the MD5 algorithm isn't secure anymore (see 1), and upstream provides the reference checksums using SHA256 (see 2).

Thanks for taking the time to maintain this package :-)

ragouel commented on 2020-04-17 21:26 (UTC)

Done.

Trillien commented on 2020-04-17 07:01 (UTC)

On prepare section of PKGBUILD, could you please add the latest config.guess and config.sub from Savannah so they detect latest architecture?

wget 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD' -O config.guess
wget 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' -O config.sub

ragouel commented on 2020-04-16 20:19 (UTC)

I cannot reproduce your issue. Make a forum post.

Peach commented on 2020-04-16 19:52 (UTC)

as Bearbonez reported, I also have base-devel installed and the following comes up when trying to run pacman -S base-devel

warning: autoconf-2.69-7 is up to date -- reinstalling
warning: automake-1.16.2-1 is up to date -- reinstalling
warning: binutils-2.34-2 is up to date -- reinstalling
warning: bison-3.5.4-1 is up to date -- reinstalling
warning: fakeroot-1.24-2 is up to date -- reinstalling
warning: file-5.38-3 is up to date -- reinstalling
warning: findutils-4.7.0-2 is up to date -- reinstalling
warning: flex-2.6.4-3 is up to date -- reinstalling
warning: gawk-5.0.1-2 is up to date -- reinstalling
warning: gcc-9.3.0-1 is up to date -- reinstalling
warning: gettext-0.20.1-3 is up to date -- reinstalling
warning: grep-3.4-1 is up to date -- reinstalling
warning: groff-1.22.4-3 is up to date -- reinstalling
warning: gzip-1.10-3 is up to date -- reinstalling
warning: libtool-2.4.6+42+gb88cebd5-11 is up to date -- reinstalling
warning: m4-1.4.18-3 is up to date -- reinstalling
warning: make-4.3-3 is up to date -- reinstalling
warning: pacman-5.2.1-4 is up to date -- reinstalling
warning: patch-2.7.6-8 is up to date -- reinstalling
warning: pkgconf-1.6.3-3 is up to date -- reinstalling
warning: sed-4.8-1 is up to date -- reinstalling
warning: sudo-1.8.31.p1-1 is up to date -- reinstalling
warning: texinfo-6.7-2 is up to date -- reinstalling
warning: which-2.21-5 is up to date -- reinstalling

Tried to clean the build and reinstall, still same error

ragouel commented on 2020-04-16 10:45 (UTC)

pango was missing from makedepends array, install with latest pkgbuild.

Bearbonez commented on 2020-04-16 10:22 (UTC)

Installed meta-base-devel and ran the update, which still fails at the same point.

pangomodule.c:28:10: fatal error: pango/pango-font.h: No such file or directory 28 | #include <pango/pango-font.h> | ^~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:623: pango_la-pangomodule.lo] Error 1 ==> ERROR: A failure occurred in build(). Aborting...

ragouel commented on 2020-04-14 23:34 (UTC)

pygobject-devel provides bindings for GTK. Upstream moved pygtk to pygobject.

xantares commented on 2020-04-14 17:54 (UTC)

would it be possible to update to python 3.x instead of 2.7 ?

ragouel commented on 2020-04-12 14:37 (UTC) (edited on 2020-04-12 14:59 (UTC) by ragouel)

I've tested this on a clean Arch Linux Docker Image, it builds and installs fine. Make sure base-devel is installed and your system is up to date.

FROM imrehg/archlinux-makepkg:latest
RUN sudo pacman -Syu --noconfirm
RUN yay -S --noconfirm pygtk
RUN yay -Qi pygtk

Peach commented on 2020-04-12 08:33 (UTC)

Currently compilation keeps on failing with the error

pangomodule.c:28:10: fatal error: pango/pango-font.h: No such file or directory
   28 | #include <pango/pango-font.h>                                                   
      |          ^~~~~~~~~~~~~~~~~~~~                                                   
compilation terminated.  
make: *** [Makefile:623: pango_la-pangomodule.lo] Error 1
==> ERROR: A failure occurred in build().
    Aborting...                             
Error making: pygtk

dustball commented on 2020-04-10 20:09 (UTC)

@rkelly: That's a pikaur specific error, nothing to do with this package. Ask the programmer, in the meantime use makepkg, as is intended.

rkelly commented on 2020-04-10 18:14 (UTC) (edited on 2020-04-10 18:21 (UTC) by rkelly)

Have been seeing this error for some time now. Seems similar to other reports, but I have yet to find where my cache directory is.

Can't pull 'pygtk' in '/home/user/.local/share/pikaur/aur_repos/pygtk' from AUR:

error: Pulling is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.

:: Try recovering?
[c] git checkout -- '*'
[r] remove dir and clone again
[s] skip this package
[a] abort

eschwartz commented on 2020-04-07 19:16 (UTC)

No.

Is it possible for you to read the documentation on how to use makepkg? https://wiki.archlinux.org/index.php/Makepkg#Usage

That being said, I'm extremely curious how you failed to install the prerequisites, but didn't have errors after installing pkgconf but still failing to have patch, gcc, make, or fakeroot installed.

rado84 commented on 2020-04-07 19:11 (UTC)

Is it possible for pkg-config ( https://pkg-config.freedesktop.org/releases/?C=M;O=D ) to be added as a dependency for pygtk? A few days ago when an update of pygtk was released, I was unable to update it because the building process failed every time I tried. After installing pkg-config from the the above link (0.29.2) the building process succeeded. It seems pkg-config is a dependency that is not listed here.

danbruegge commented on 2020-04-05 09:22 (UTC)

Thanks @telmo, that helped. :)

telmo commented on 2020-04-03 13:11 (UTC) (edited on 2020-04-03 13:12 (UTC) by telmo)

Was getting error merging pygtk, had to rm -rf ~/.cache/yay/pygtk before I could update the package. Of course that applies only if you use yay.

zrhoffman commented on 2020-04-02 15:12 (UTC)

Looks like my local repo had merge conflicts for some reason, so the git checkout . had no effect. Builds fine for me.

eschwartz commented on 2020-04-02 14:57 (UTC)

git log -p

View errors, note who committed them.

Then

git reset --hard origin/master

zrhoffman commented on 2020-04-02 14:33 (UTC) (edited on 2020-04-02 14:34 (UTC) by zrhoffman)

When I try to build this:

git checkout . && makepkg;
/home/user/.cache/yay/pygtk/PKGBUILD: line 6: syntax error near unexpected token `<<<'
/home/user/.cache/yay/pygtk/PKGBUILD: line 6: `<<<<<<< HEAD'
==> ERROR: Failed to source /home/user/.cache/yay/pygtk/PKGBUILD

archuser0119 commented on 2020-04-01 11:18 (UTC)

Successfully installed after installing missing dependency "pkg-config" Error example:

checking for python module thread... yes checking whether to enable threading in pygtk... yes checking for pkg-config... no checking for GLIB - version >= 2.8.0... no A new enough version of pkg-config was not found. See http://www.freedesktop.org/software/pkgconfig/ configure: error: gobject is required to build pygtk? ==> ERROR: A failure occurred in build(). Aborting... Error making: pygtk ""

Bearbonez commented on 2020-04-01 08:32 (UTC)

Failing to build on mine

In file included from pangomodule.c:26: /usr/include/pygtk-2.0/pygobject.h:187:40: warning: ‘GParameter’ is deprecated [-Wdeprecated-declarations] 187 | GParameter parameters); | ^~~~~~~~~~ In file included from /usr/include/glib-2.0/gobject/gobject.h:26, from /usr/include/glib-2.0/gobject/gbinding.h:29, from /usr/include/glib-2.0/glib-object.h:22, from /usr/include/pygtk-2.0/pygobject.h:8, from pangomodule.c:26: /usr/include/glib-2.0/gobject/gparam.h:271:8: note: declared here 271 | struct _GParameter / auxiliary structure for _setv() variants / | ^~~~~~~~~~~ pangomodule.c:28:10: fatal error: pango/pango-font.h: No such file or directory 28 | #include <pango/pango-font.h> | ^~~~~~~~~~~~~~~~~~~~ compilation terminated. make: ** [Makefile:623: pango_la-pangomodule.lo] Error 1 ==> ERROR: A failure occurred in build(). Aborting...

eschwartz commented on 2020-03-31 18:41 (UTC)

And upstream pygtk even has a commit which fixes this, so I backported it and this builds perfectly in a clean chroot.

eschwartz commented on 2020-03-31 17:26 (UTC) (edited on 2020-03-31 18:29 (UTC) by eschwartz)

I don't care, your account has now been suspended for vandalism and deliberate rulebreaking and that commit was rolled back via a moderator action.

Discuss on the aur-general mailing list if you like.

digitalone commented on 2020-03-31 17:24 (UTC)

The file in the archive will be deleted and next year people will complain it's missing. Many packages depend on pygtk, maybe it shouldn't even be deleted from upstream.

I think it's not even supposed to upload a script that not compile. This is the only reasonable solution. Otherwise, provide a working compiling script, I can't do that.

loathingkernel commented on 2020-03-31 17:13 (UTC) (edited on 2020-03-31 17:23 (UTC) by loathingkernel)

You are not supposed to do this in AUR. Read this and also this. Providing the source instead of linking to it falls under the 5th point in the second link which states

The AUR should not contain the binary tarball created by makepkg, nor should it contain the filelist.

EDIT: Well, this is even worse, you are providing a prebuilt arch package, this is certainly prohibited.

RainmakerRaw commented on 2020-03-31 16:25 (UTC)

digitalone, thanks so much!

digitalone commented on 2020-03-31 15:04 (UTC)

It's working now. Updated with the binary package from archive.

I had to split it 4 parts. Sha256sum: 1c5392dfe239197a9ab8c12d71c7102593b9074b8cf97c6857c8a9a358eadc19

robson commented on 2020-03-31 10:53 (UTC)

@RainmakerRaw You must first build a downgrade https://aur.archlinux.org/packages/downgrade/ And then issue the command sudo downgrade pygtk. And it will download and install the current version here.

digitalone commented on 2020-03-31 08:28 (UTC)

I can update a working PKGBUILD from archive binary, but I'm not able to upload it because the file is greater than 250 KB. I'm trying to split it in smaller files, but makepkg seems not accepting them.

The alternative is to use the archive URL, but it expires after one year and I don't want people to complain in April 2021 that the package is missing.

RainmakerRaw commented on 2020-03-30 23:04 (UTC)

@robson, how? I'm on a new install and as far as I can see this package was only submitted yesterday. The Wiki only refers to downgrading in respect to official packages (which have a separate official archive). I guess I'm missing something (I don't pretend to be an expert).

robson commented on 2020-03-30 22:56 (UTC)

Install pygtk via downgrade.

RainmakerRaw commented on 2020-03-30 16:55 (UTC) (edited on 2020-03-31 17:30 (UTC) by eschwartz)

This is failing to build for me (I needed it for fahcontrol). The output is huge but I've included what I think are the relevant sections below:

/usr/include/glib-2.0/gobject/gparam.h:271:8: note: declared here
271 | struct _GParameter /* auxiliary structure for _setv() variants */
|        ^~~~~~~~~~~
pango.c: In function ‘_wrap_PangoFont__do_find_shaper’:
pango.c:3822:32: error: ‘PangoFontClass’ {aka ‘struct _PangoFontClass’} has no member named ‘find_shaper’
3822 |     if (PANGO_FONT_CLASS(klass)->find_shaper)
|                                ^~
pango.c:3823:38: error: ‘PangoFontClass’ {aka ‘struct _PangoFontClass’} has no member named ‘find_shaper’
3823 |         ret = PANGO_FONT_CLASS(klass)->find_shaper(PANGO_FONT(self->obj), lang, ch);
|                                      ^~
pango.c: In function ‘_wrap_PangoFont__proxy_do_get_metrics’:
pango.c:4026:16: warning: implicit declaration of function ‘pango_font_metrics_new’; did you mean ‘pango_font_metrics_ref’? [-Wimplicit-function-declaration]
4026 |         return pango_font_metrics_new();
|                ^~~~~~~~~~~~~~~~~~~~~~
.....
libtool: link: mv -f ".libs/pangocairo.expT" ".libs/pangocairo.exp"
libtool: link: echo "{ global:" > .libs/pangocairo.ver
libtool: link:  cat .libs/pangocairo.exp | sed -e "s/\(.*\)/\1;/" >> .libs/pangocairo.ver
libtool: link:  echo "local: *; };" >> .libs/pangocairo.ver
libtool: link:  gcc -Wl,-O1,--as-needed -shared  .libs/pangocairo_la-pangocairomodule.o .libs/pangocairo_la-pangocairo.o   -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz -lcairo  -march=x86-64 -mtune=native -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-z -Wl,now   -Wl,-soname -Wl,pangocairo.so -Wl,-version-script -Wl,.libs/pangocairo.ver -o .libs/pangocairo.so
libtool: link: ( cd ".libs" && rm -f "pangocairo.la" && ln -s "../pangocairo.la" "pangocairo.la" )
mv -f .deps/atk_la-atk.Tpo .deps/atk_la-atk.Plo
==> ERROR: A failure occurred in build().
Aborting...
Error making: pygtk