| 11 Nov 2021 |
| EdLin left the room. | 08:02:47 |
| Artturin joined the room. | 20:49:18 |
Artturin | gtk2 cross fails with
no --force --ignore-theme-index \
--include-image-data \
--source builtin_icons stock-icons > gtkbuiltincache.h.tmp && \
mv gtkbuiltincache.h.tmp gtkbuiltincache.h
/nix/store/phqa311klldrcbwid1i22dwnpfc9dnma-bash-5.1-p8/bin/bash: line 1: no: command not found
| 20:52:37 |
Artturin | https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-2-24/gtk/Makefile.am#L1444 | 20:52:44 |
Artturin | its no because of https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-2-24/configure.ac#L917 | 20:53:33 |
Artturin | it should probably be false? | 20:58:12 |
Rick (Mindavi) | In reply to @artturin:matrix.org
gtk2 cross fails with
no --force --ignore-theme-index \
--include-image-data \
--source builtin_icons stock-icons > gtkbuiltincache.h.tmp && \
mv gtkbuiltincache.h.tmp gtkbuiltincache.h
/nix/store/phqa311klldrcbwid1i22dwnpfc9dnma-bash-5.1-p8/bin/bash: line 1: no: command not found
I do have some patches that may help in my pinephone-patches-3 tree | 20:58:17 |
Artturin | * it should probably be true? | 20:58:19 |
Rick (Mindavi) | IIRC I build gtk2 natively and use the gtk-update-icon-cache from that | 20:59:50 |
Rick (Mindavi) | Which is not ideal, but works | 21:00:00 |
Rick (Mindavi) | And I think that was what's intended with that code anyway | 21:01:04 |
Artturin | found yours https://github.com/Mindavi/nixpkgs/commit/e05bb81d64e41ab2ee590805ce6c9f91ce0a2d62 | 21:02:34 |
Artturin | https://mail.gnome.org/archives/gtk-app-devel-list/2014-June/msg00018.html | 21:04:28 |
Rick (Mindavi) | In reply to @artturin:matrix.org found yours https://github.com/Mindavi/nixpkgs/commit/e05bb81d64e41ab2ee590805ce6c9f91ce0a2d62 The commit message should be enough warning, I guess 😜 | 21:08:13 |
Artturin | https://mail.gnome.org/archives/commits-list/2013-January/msg02389.html | 21:12:21 |
Artturin | testing adding buildPackages.stdenv.cc and pkg-config to depsBuildBuild | 21:12:36 |
Rick (Mindavi) | Oh, it should actually build gtk-update-icon-cache for the build system? | 21:13:53 |
Rick (Mindavi) | That would be a lot nicer :) | 21:14:05 |
Artturin | doesn't work | 21:17:23 |
Artturin | same error | 21:17:27 |
Artturin | configure.ac
dnl Look for a host system's gdk-pixbuf-csource if we are cross-compiling
AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes)
if test $cross_compiling = yes; then
AC_PATH_PROG(GTK_UPDATE_ICON_CACHE, gtk-update-icon-cache, no)
if test x$GTK_UPDATE_ICON_CACHE = xno; then
REBUILD_PNGS=#
fi
fi
AC_PATH_PROG(GDK_PIXBUF_CSOURCE, gdk-pixbuf-csource, no)
if test ! -f $srcdir/gtk/gtkbuiltincache.h &&
test "x$REBUILD_PNGS" = "x#" ; then
AC_MSG_ERROR([
*** gtkbuiltincache.h is not in the tree, and cannot be built
*** because you don't have libpng, or (when cross-compiling) you
*** don't have a prebuilt gtk-update-icon-cache on the build system.])
fi
| 21:17:48 |
Artturin | prebuilt gtk-update-icon-cache on the build system | 21:17:58 |
Artturin | weird | 21:17:59 |
Artturin | we dont hit that error though | 21:18:07 |
Artturin | because we dont reconfigure? | 21:19:04 |
Artturin | trying autoreconfHook | 21:19:07 |
Artturin | fail https://gist.github.com/Artturin/c0229dc69cbc3f9f47d3a800b592c2a2 | 21:22:00 |
Rick (Mindavi) | All kind of gtk_doc stuff, hmm | 21:23:53 |
Rick (Mindavi) | I'm not very familiar with automake or configure as a build system, I typically do some hacks here and there, but don't actually properly understand it | 21:24:30 |
Rick (Mindavi) | But I remember there's a tool in the suite that tries to 'modernize' the script, maybe that's an option? | 21:24:57 |