Package Details: libglade 2.6.4-8

Git Clone URL: (read-only, click to copy)
Package Base: libglade
Description: Allows you to load glade interface files in a program at runtime
Upstream URL:
Licenses: LGPL
Submitter: yan12125
Maintainer: xuanruiqi
Last Packager: xuanruiqi
Votes: 54
Popularity: 4.52
First Submitted: 2021-05-13 12:47 (UTC)
Last Updated: 2021-07-12 21:02 (UTC)

Latest Comments

Lone_Wolf commented on 2022-02-19 12:06 (UTC) (edited on 2022-02-19 12:07 (UTC) by Lone_Wolf)

Full content of glade.install below .

If you look at the libglade.spec file (from upstream and intended to be used in creating rpm builds) in the source ptarball you see similar commands in %post section .

I'm inclined to interpret that as : upstream wants downstream to run those commands at postinstall , not at build or packaging stage .

The commands themselves LOOK like they could be done in the PKGBUILD though. Feel free to test if it works that way and inform us.

post_install() {
  if [ ! -d etc/xml ]; then
    mkdir -p etc/xml
  if [ ! -e etc/xml/catalog ]; then
    xmlcatalog --noout --create etc/xml/catalog
  xmlcatalog --noout --add "system" \
    "" \
    /usr/share/xml/libglade/glade-2.0.dtd etc/xml/catalog

pre_upgrade() {

post_upgrade() {
  post_install $1

# arg 1:  the old package version
post_remove() {
  xmlcatalog --noout --del \
    /usr/share/xml/libglade/glade-2.0.dtd etc/xml/catalog

xuanruiqi commented on 2022-02-18 15:28 (UTC)

I can't answer this because I have no idea about the libglade build process. Maybe someone more knowledgeable about libglade could answer.

Synthead commented on 2022-02-18 06:37 (UTC)

In the .install file, you have:

  xmlcatalog --noout --add "system" \
    "" \
    /usr/share/xml/libglade/glade-2.0.dtd etc/xml/catalog

Is this something that could be installed via the PKGBUILD and tracked in the package instead?

katt commented on 2021-11-08 13:50 (UTC)

@thebombzen You're expected to have base-devel installed when using AUR, so patch shouldn't be included as makedepends.

thebombzen commented on 2021-11-08 13:46 (UTC)

You're missing patch as a makedepends. I got dinged by this today on a minimal-ish system.

bobfin21 commented on 2021-07-25 16:34 (UTC) (edited on 2021-07-25 16:36 (UTC) by bobfin21)

I realized that I have -fuse-ld=lld added to CFLAGS in makepkg.conf and if I remove that, this package builds fine. So the issue is only when using lld.




Lone_Wolf commented on 2021-07-25 09:58 (UTC)

No issues here, run makepkg --log and post the logfiles using a pastebin_service

bobfin21 commented on 2021-07-24 23:44 (UTC)

Build fails with

ld.lld: error: glade/.libs/ undefined reference to g_module_close [--no-allow-shlib-undefined]
ld.lld: error: glade/.libs/ undefined reference to g_module_build_path [--no-allow-shlib-undefined]
ld.lld: error: glade/.libs/ undefined reference to g_module_make_resident [--no-allow-shlib-undefined]
ld.lld: error: glade/.libs/ undefined reference to g_module_symbol [--no-allow-shlib-undefined]
ld.lld: error: glade/.libs/ undefined reference to g_module_supported [--no-allow-shlib-undefined]
ld.lld: error: glade/.libs/ undefined reference to g_module_open [--no-allow-shlib-undefined]
ld.lld: error: glade/.libs/ undefined reference to g_module_error [--no-allow-shlib-undefined]

xuanruiqi commented on 2021-07-12 21:02 (UTC)


Lone_Wolf commented on 2021-06-22 11:14 (UTC)

I added options=(lto) to the PKGBUILD and get the same error as you, so you are correct this sw doesn't work with lto .

keep in mind though that lto is still off by default on archlinux systems.

taken from pacman 6.0.0-3 /etc/makepkg.conf file :

Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto)

For this package I agree it would be a good idea to block lto specifically in the PKGBUILD .

xuanruiqi , the aurweb issue that blocked changes to packages moved from repos to aur should be solved now.

katt commented on 2021-06-22 10:27 (UTC)

@Lone_Wolf It's the defaults as of pacman 6, which I use in my chroot via aurutils. The ones in devtools haven't been updated for pacman 6.

Lone_Wolf commented on 2021-06-22 09:37 (UTC)

No issues building with makepkg or in a clean chroot, your build failure is not LTO related.

==> ERROR: Build failed, check /var/lib/aurbuild/x86_64/katt/build

That line suggests you may be using an aur helper, do you get same error when building with makepkg ?

While old libglade is used by many aur packages, including one maintained by me.

katt commented on 2021-06-02 21:49 (UTC)

Fails to build with LTO, could options=(!lto) be added? I assume no one wants to work on this old piece of software :p

 gcc -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"libglade\" -I.. -I/usr/include/libxml2 -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -pthread -DGLADE_LIBDIR=\"/usr/lib\" -DGLADE_PREFIX=\"/usr\" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -fvar-tracking-assignments -fdebug-prefix-map=/build/libglade/src=/usr/src/debug -flto -Wall -std=c9x -MT glade-parser.lo -MD -MP -MF .deps/glade-parser.Tpo -c glade-parser.c -o glade-parser.o >/dev/null 2>&1
mv -f .deps/glade-init.Tpo .deps/glade-init.Plo
mv -f .deps/glade-gtk.Tpo .deps/glade-gtk.Plo
mv -f .deps/glade-xml.Tpo .deps/glade-xml.Plo
mv -f .deps/glade-parser.Tpo .deps/glade-parser.Plo
/bin/sh ../libtool --tag=CC   --mode=link gcc  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -fvar-tracking-assignments -fdebug-prefix-map=/build/libglade/src=/usr/src/debug -flto -Wall -std=c9x -version-info 0:7:0 -export-symbols-regex "^[^_].*" -no-undefined -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o -rpath /usr/lib glade-init.lo glade-xml.lo glade-parser.lo glade-gtk.lo -lxml2 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lharfbuzz -lfontconfig -lfreetype -lglib-2.0  
generating symbol list for `'
/usr/bin/nm -B  .libs/glade-init.o .libs/glade-xml.o .libs/glade-parser.o .libs/glade-gtk.o  |  | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libglade-2.0.exp
../libtool: eval: line 4373: syntax error near unexpected token `|'
../libtool: eval: line 4373: `/usr/bin/nm -B  .libs/glade-init.o .libs/glade-xml.o .libs/glade-parser.o .libs/glade-gtk.o  |  | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libglade-2.0.exp'
make[2]: *** [Makefile:329:] Error 2
make[2]: Leaving directory '/build/libglade/src/libglade-2.6.4/glade'
make[1]: *** [Makefile:457: all-recursive] Error 1
make[1]: Leaving directory '/build/libglade/src/libglade-2.6.4'
make: *** [Makefile:284: all] Error 2
==> ERROR: A failure occurred in build().
==> ERROR: Build failed, check /var/lib/aurbuild/x86_64/katt/build