You are not logged in.

#1 2024-09-25 08:40:15

Strangiato
Member
Registered: 2020-01-10
Posts: 395

[Solved] Cannot build certain aur packages on KDE Plasma; can on Gnome

Hello

I have two Arch installs, both fully updated. I can build the aur packages listed below (using paru aur helper) on Arch + Gnome, but cannot on Arch + KDE Plasma:

libpamac-aur 11.6.4-6 - https://aur.archlinux.org/packages/libpamac-aur
gconf 3.2.6+11+g07808097-11 - https://aur.archlinux.org/packages/gconf
snapd-glib 1.65-1 - https://aur.archlinux.org/packages/snapd-glib

Partial outputs when trying to build the packages on Arch + KDE Plasma:

...
In file included from /usr/include/glib-2.0/glib/gthread.h:34,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
                 from /usr/include/glib-2.0/glib.h:34:
src/pamac-daemon.p/database.c: In function ‘pamac_database_get_type’:
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro ‘g_atomic_pointer_get’
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
src/pamac-daemon.p/database.c:18829:13: note: in expansion of macro ‘g_once_init_enter’
18829 |         if (g_once_init_enter (&pamac_database_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
src/pamac-daemon.p/database.c: At top level:
src/pamac-daemon.p/database.c:3305:1: warning: ‘block27_data_ref’ defined but not used [-Wunused-function]
 3305 | block27_data_ref (Block27Data* _data27_)
      | ^~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'libpamac-aur-11.6.4-6': 
error: packages failed to build: libpamac-aur-11.6.4-6
...
gconf-database.h:64:3: warning: ‘GTime’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
   64 |   GTime last_access;
      |   ^~~~~
  CCLD     libgconf-2.la
  CCLD     gconftool-2
  CCLD     gconfd-2
  GISCAN   GConf-2.0.gir
gconf.c:833: Error: GConf: encountered multiple return value parameters or tags for "gconf_engine_notify_add".
gconf.c:3343: Error: GConf: encountered multiple return value parameters or tags for "gconf_engine_get_schema".
gconf-dbus.c:1590: Warning: GConf: multiple comment blocks documenting 'gconf_engine_recursive_unset:' identifier (already seen at gconf.c:1457).
gconf-dbus.c:2385: Warning: GConf: multiple comment blocks documenting 'gconf_debug_shutdown:' identifier (already seen at gconf.c:2407).
gconf-dbus.c:2387: Warning: GConf: gconf_debug_shutdown: unknown parameter 'void' in documentation comment
gconf-value.h:107: Warning: GConf: gconf_value_set_list_nocopy: argument list: Missing (element-type) annotation
gconf-value.h:109: Warning: GConf: gconf_value_set_list: argument list: Missing (element-type) annotation
gconf-changeset.h:119: Warning: GConf: gconf_change_set_set_list: argument list: Missing (element-type) annotation
gconf-client.h:334: Warning: GConf: gconf_client_set_list: argument list: Missing (element-type) annotation
  GICOMP   GConf-2.0.gir

(g-ir-compiler:23543): GVFS-WARNING **: 05:23:57.027: can't init metadata tree /home/stalker/.local/share/gvfs-metadata/home: wrong magic
make[3]: *** [/usr/share/gobject-introspection-1.0/Makefile.introspection:168: GConf-2.0.typelib] Trace/breakpoint trap (core dumped)
make[3]: *** Deleting file 'GConf-2.0.typelib'
make[3]: Leaving directory '/home/stalker/.cache/paru/clone/gconf/src/gconf/gconf'
make[2]: *** [Makefile:585: all] Error 2
make[2]: Leaving directory '/home/stalker/.cache/paru/clone/gconf/src/gconf/gconf'
make[1]: *** [Makefile:594: all-recursive] Error 1
make[1]: Leaving directory '/home/stalker/.cache/paru/clone/gconf/src/gconf'
make: *** [Makefile:478: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'gconf-3.2.6+11+g07808097-11': 
error: packages failed to build: gconf-3.2.6+11+g07808097-11
...
/usr/include/glib-2.0/glib/gmacros.h:1241:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
 1241 |    if (expr)                                    \
      |        ^~~~
/usr/include/glib-2.0/glib/gmacros.h:1248:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
 1248 | #define G_LIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 1))
      |                                           ^~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
  228 |                                              if G_LIKELY (expr) ; else \
      |                                                 ^~~~~~~~
../tests/test-qt.cpp:3203:5: note: in expansion of macro ‘g_assert_true’
 3203 |     g_assert_true (slot->attribute ("slot-int-key").type () == QMetaType::LongLong);
      |     ^~~~~~~~~~~~~
../tests/test-qt.cpp:3206:62: warning: comparison between ‘enum QVariant::Type’ and ‘enum QMetaType::Type’ [-Wenum-compare]
 3206 |     g_assert_true (slot->attribute ("slot-bool-key").type () == QMetaType::Bool);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:1241:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
 1241 |    if (expr)                                    \
      |        ^~~~
/usr/include/glib-2.0/glib/gmacros.h:1248:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
 1248 | #define G_LIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 1))
      |                                           ^~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gtestutils.h:228:49: note: in expansion of macro ‘G_LIKELY’
  228 |                                              if G_LIKELY (expr) ; else \
      |                                                 ^~~~~~~~
../tests/test-qt.cpp:3206:5: note: in expansion of macro ‘g_assert_true’
 3206 |     g_assert_true (slot->attribute ("slot-bool-key").type () == QMetaType::Bool);
      |     ^~~~~~~~~~~~~
[198/205] Compiling C object tests/test-glib.p/test-glib.c.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'snapd-glib-1.65-1': 
error: packages failed to build: snapd-glib-1.65-1

Possibly a relevant info: kde-unstable and testing repos are enabled on Arch + KDE Plasma.

Any idea on what I can do to build these aur packages on Arch + KDE Plasma?
Thanks for reading.

Last edited by Strangiato (2024-09-27 15:21:48)

Offline

#2 2024-09-25 13:06:11

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,926

Re: [Solved] Cannot build certain aur packages on KDE Plasma; can on Gnome

The errors are not shown in the partial outputs, full build logs are needed .

Also aur helpers are not supported, always (try to) build with makepkg to verify whether the aur helper is the problem or not.

Possibly a relevant info: kde-unstable and testing repos are enabled on Arch + KDE Plasma.

very relevant .
If you revert kde-unstable & testing repos to official repos on the kde pasma system, do the builds work ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2024-09-25 14:19:05

Strangiato
Member
Registered: 2020-01-10
Posts: 395

Re: [Solved] Cannot build certain aur packages on KDE Plasma; can on Gnome

Also cannot build with makepkg even after disabling kde-unstable and testing repos and then downgrading all packages installed from them.

Here are the full logs after trying to build with makepkg:
https://0x0.st/XYxl.diff
https://0x0.st/XYx0.txt
https://0x0.st/XYxd.txt

Offline

#4 2024-09-26 09:43:51

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,926

Re: [Solved] Cannot build certain aur packages on KDE Plasma; can on Gnome

gconf build log

	sysconfsubdir:	gconf

        IPC:            DBus
	gtk+:		yes
	ldap:		yes
	policykit:	yes
	gsettings:	yes
	introspection:  yes

building gconf in a clean chroot :

	sysconfsubdir:	gconf

        IPC:            DBus
	gtk+:		no
	ldap:		yes
	policykit:	yes
	gsettings:	yes
	introspection:  yes

The presence of gtk+ changes what is build.
Since gnome is build on gtk and kde on qt, the kde system likely has less of gtk installed then the gnome system

Arch packages are supposed to be built in a clean chroot environment , please configure that.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2024-09-26 19:59:15

Strangiato
Member
Registered: 2020-01-10
Posts: 395

Re: [Solved] Cannot build certain aur packages on KDE Plasma; can on Gnome

Thank you very much, the builds work with a clean chroot environment. \o/
However, I need to run this every time I want to build a package after reboot/shutdown:

$ CHROOT=$HOME/build/chroot

Is this expected/intentional?

Last edited by Strangiato (2024-09-26 20:09:33)

Offline

#6 2024-09-27 09:28:29

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,926

Re: [Solved] Cannot build certain aur packages on KDE Plasma; can on Gnome

Yes, environment variables are unset by default and need to be set before they are used.

I export CHROOT in my users .bashrc , but there are plenty of other options .
https://wiki.archlinux.org/title/Environment_variables for details.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2024-09-27 15:20:49

Strangiato
Member
Registered: 2020-01-10
Posts: 395

Re: [Solved] Cannot build certain aur packages on KDE Plasma; can on Gnome

I have added this line to my ~/.bashrc file:

export CHROOT=$HOME/build/chroot

Thank you for your help, Lone_Wolf.

Offline

Board footer

Powered by FluxBB