Package Details: glade-sharp 2.12.45-1

Git Clone URL: https://aur.archlinux.org/glade-sharp.git (read-only, click to copy)
Package Base: glade-sharp
Description: Glade bindings for C#
Upstream URL: https://www.mono-project.com/docs/gui/gtksharp/
Licenses: LGPL
Submitter: Mailaender
Maintainer: None
Last Packager: Mailaender
Votes: 1
Popularity: 0.000000
First Submitted: 2022-07-29 17:49 (UTC)
Last Updated: 2022-07-29 17:49 (UTC)

Latest Comments

bastiendurel commented on 2025-11-04 14:54 (UTC)

It also have a conflit with gtk-sharp-2:

glade-sharp : /usr/lib/libgladesharpglue-2.so est déjà présent dans le système de fichiers (appartenant à gtk-sharp-2)
glade-sharp : /usr/lib/mono/gac/glade-sharp/2.12.0.0__35e10195dab3c99f/glade-sharp.dll est déjà présent dans le système de fichiers (appartenant à gtk-sharp-2)
glade-sharp : /usr/lib/mono/gac/glade-sharp/2.12.0.0__35e10195dab3c99f/glade-sharp.dll.config est déjà présent dans le système de fichiers (appartenant à gtk-sharp-2)
glade-sharp : /usr/lib/mono/gac/policy.2.10.glade-sharp/0.0.0.0__35e10195dab3c99f/policy.2.10.glade-sharp.dll est déjà présent dans le système de fichiers (appartenant à gtk-sharp-2)
glade-sharp : /usr/lib/mono/gac/policy.2.4.glade-sharp/0.0.0.0__35e10195dab3c99f/policy.2.4.glade-sharp.dll est déjà présent dans le système de fichiers (appartenant à gtk-sharp-2)
glade-sharp : /usr/lib/mono/gac/policy.2.6.glade-sharp/0.0.0.0__35e10195dab3c99f/policy.2.6.glade-sharp.dll est déjà présent dans le système de fichiers (appartenant à gtk-sharp-2)
glade-sharp : /usr/lib/mono/gac/policy.2.8.glade-sharp/0.0.0.0__35e10195dab3c99f/policy.2.8.glade-sharp.dll est déjà présent dans le système de fichiers (appartenant à gtk-sharp-2)
glade-sharp : /usr/lib/mono/gtk-sharp-2.0/glade-sharp.dll est déjà présent dans le système de fichiers (appartenant à gtk-sharp-2)
glade-sharp : /usr/lib/mono/gtk-sharp-2.0/policy.2.10.glade-sharp.dll est déjà présent dans le système de fichiers (appartenant à gtk-sharp-2)
glade-sharp : /usr/lib/mono/gtk-sharp-2.0/policy.2.4.glade-sharp.dll est déjà présent dans le système de fichiers (appartenant à gtk-sharp-2)
glade-sharp : /usr/lib/mono/gtk-sharp-2.0/policy.2.6.glade-sharp.dll est déjà présent dans le système de fichiers (appartenant à gtk-sharp-2)
glade-sharp : /usr/lib/mono/gtk-sharp-2.0/policy.2.8.glade-sharp.dll est déjà présent dans le système de fichiers (appartenant à gtk-sharp-2)
glade-sharp : /usr/lib/pkgconfig/glade-sharp-2.0.pc est déjà présent dans le système de fichiers (appartenant à gtk-sharp-2)
glade-sharp : /usr/share/gapi-2.0/glade-api.xml est déjà présent dans le système de fichiers (appartenant à gtk-sharp-2)

bastiendurel commented on 2025-11-03 13:53 (UTC) (edited on 2025-11-04 14:55 (UTC) by bastiendurel)

Doesn't compile :

windowmanager.c: In function 'gtksharp_get_gdk_net_client_list':
windowmanager.c:113:26: error: assignment to 'gpointer' {aka 'void *'} from 'long int' makes pointer from integer without a cast [-Wint-conversion]
  113 |                 list [i] = data [i];
      |                          ^
In file included from /usr/include/glib-2.0/glib.h:64,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:36,
                 from /usr/include/gtk-2.0/gdk/gdkscreen.h:32,
                 from windowmanager.c:27:
windowmanager.c:114:28: warning: format '%d' expects argument of type 'int', but argument 4 has type 'gpointer' {aka 'void *'} [-Wformat=]
  114 |                 g_message ("WinID: %d", list [i]);
      |                            ^~~~~~~~~~~  ~~~~~~~~
      |                                              |
      |                                              gpointer {aka void *}
/usr/include/glib-2.0/glib/gmessages.h:361:32: note: in definition of macro 'g_message'
  361 |                                __VA_ARGS__)
      |                                ^~~~~~~~~~~
windowmanager.c:114:37: note: format string is defined here
  114 |                 g_message ("WinID: %d", list [i]);
      |                                    ~^
      |                                     |
      |                                     int
      |                                    %p

The patch is trivial:

--- src/gtk-sharp-2.12.45/gdk/glue/windowmanager.c.orig 2025-11-04 15:50:05.670241017 +0100
+++ src/gtk-sharp-2.12.45/gdk/glue/windowmanager.c  2025-11-04 15:51:14.511715520 +0100
@@ -110,7 +110,7 @@
    list = g_malloc (*count * sizeof (gpointer));
    /* Put all of the windows into a GList to return */
    for (i = 0; i < *count; i ++) {
-       list [i] = data [i];
+       list [i] = (gpointer)data [i];
        g_message ("WinID: %d", list [i]);
    }

Nyyr commented on 2023-12-28 12:38 (UTC) (edited on 2023-12-28 12:47 (UTC) by Nyyr)

On EndeavourOS Galileo the installation fails:

== Tests result: FAILURE ==

366 tests OK.

4 tests failed:
    test_macpath test_ntpath test_pep277 test_posixpath

25 tests skipped:
    test_aepack test_al test_applesingle test_bsddb test_bsddb185
    test_bsddb3 test_cd test_cl test_dl test_gl test_imageop
    test_imgfile test_kqueue test_linuxaudiodev test_macos
    test_macostools test_msilib test_ossaudiodev test_py3kwarn
    test_scriptpackages test_startfile test_sunaudiodev test_winreg
    test_winsound test_zipfile64
2 skips unexpected on linux2:
    test_bsddb test_bsddb3

Total duration: 5 min 36 sec
Tests result: FAILURE
==> CHYBA: Došlo k chybě v check().
    Rušení...
 -> chyba při vytváření: python2-exit status 4
==> Vytváří se balíček: libglade 2.6.4-8 (Čt 28. prosince 2023, 11:17:41)
==> Kontrola runtime závislostí...
==> Kontrola buildtime závislostí...
==> Chybějící závislosti: 
  -> python2
==> CHYBA: Nelze vyřešit všechny závislosti.
 -> chyba při vytváření: libglade-exit status 8
==> Vytváří se balíček: glade-sharp 2.12.45-1 (Čt 28. prosince 2023, 11:17:42)
==> Kontrola runtime závislostí...
==> Chybějící závislosti: 
  -> libglade
==> Kontrola buildtime závislostí...
==> CHYBA: Nelze vyřešit všechny závislosti.
 -> chyba při vytváření: glade-sharp-exit status 8
 -> Selhala instalace těchto balíčků. Ruční zásah je vyžadován.
python2 - exit status 4
libglade - exit status 8
glade-sharp - exit status 8

It seems to be part of Python 2.7.18:

======================================================================
ERROR: test_nonascii_abspath (test.test_macpath.MacCommonTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jirka/.cache/yay/python2/src/Python-2.7.18/Lib/test/test_genericpath.py", line 276, in test_nonascii_abspath
    with test_support.temp_cwd('\xe7w\xf0'):
  File "/home/jirka/.cache/yay/python2/src/Python-2.7.18/Lib/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/home/jirka/.cache/yay/python2/src/Python-2.7.18/Lib/test/support/__init__.py", line 819, in temp_cwd
    with temp_dir(path=name, quiet=quiet) as temp_path:
  File "/home/jirka/.cache/yay/python2/src/Python-2.7.18/Lib/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/home/jirka/.cache/yay/python2/src/Python-2.7.18/Lib/test/support/__init__.py", line 760, in temp_dir
    os.mkdir(path)
OSError: [Errno 84] Invalid or incomplete multibyte or wide character: '\xe7w\xf0'

NOTE: I am running it on ZFS with normalization=formD (forced utf-8 only). So you should skip these tests entirely or at least on such environments.