2023-05-04 GnuCash IRC logs

00:19:13 *** NoobAlice has joined #gnucash
00:23:54 *** Rogach has joined #gnucash
00:38:27 *** ChanServ sets mode: +v Rogach
00:54:14 <Rogach> Hi! Question for developers: how can I build and run GnuCash without reinstalling it entirely?
00:54:32 <Rogach> Previously I've just ran it via ./bin/gnucash, but that doesn't work anymore.
00:55:03 <Rogach> I tried to do `make install` with a custom DESTDIR, but then I had to mess with LD_LIBRARY_PATH and GUILE_LOAD_PATH, and it starts, but quickly segfaults.
01:08:27 *** Cork has quit IRC
01:10:27 *** gandalf has joined #gnucash
01:15:58 *** Cork has joined #gnucash
01:18:59 *** fell has quit IRC
01:20:18 *** fell has joined #gnucash
01:20:18 *** ChanServ sets mode: +o fell
01:27:47 *** Cork has quit IRC
01:31:59 *** Cork has joined #gnucash
01:35:12 *** Cork has quit IRC
01:36:38 *** Cork has joined #gnucash
02:36:13 *** NoobAlice has quit IRC
02:51:24 *** gjanssens has joined #gnucash
02:51:24 *** ChanServ sets mode: +o gjanssens
03:08:17 *** gandalf has quit IRC
04:08:27 *** bertbob has quit IRC
04:09:52 *** bertbob has joined #gnucash
04:09:52 *** ChanServ sets mode: +v bertbob
04:29:24 *** gandalf has joined #gnucash
04:42:53 *** gandalf has quit IRC
04:43:03 *** gandalf has joined #gnucash
07:06:45 *** warlord has joined #gnucash
07:06:51 *** ChanServ sets mode: +qo warlord warlord
07:06:53 *** warlord sets mode: +o gncbot
07:32:14 <warlord> .
09:06:05 <Rogach> Hi! Question for developers: how can I build and run GnuCash without reinstalling it entirely?
09:06:09 <Rogach> Previously I've just ran it via ./bin/gnucash, but that doesn't work anymore.
09:06:14 <Rogach> I tried to do `make install` with a custom DESTDIR, but then I had to mess with LD_LIBRARY_PATH and GUILE_LOAD_PATH, and it starts, but quickly segfaults.
09:25:04 <warlord> Rogach, I... don't think you can.
09:25:22 <warlord> But jralls or gjanssens might be able to answer more accurately.
09:25:43 <Rogach> So each developer simply re-installs the whole package when wants to test a small tweak?
09:27:28 <warlord> Pretty much, yeah. I used to build with --prefix=/opt/gnucash and then I could run /opt/gnucash/bin/gnucash
09:27:49 <gjanssens> Rogach: no. I have been running gnucash straight from the build directory for years
09:28:07 <gjanssens> I don't think you have to install it.
09:28:29 <gjanssens> However I'll note it's also been years since I have tried "make". I have been using "ninja" as build tool.
09:28:30 *** gandalf1 has joined #gnucash
09:28:55 *** gandalf has quit IRC
09:28:56 *** gandalf1 is now known as gandalf
09:29:05 <gjanssens> Perhaps we have a regression in the make configuration (though I'd expect that to cause the build to fail rather than a failure to run)
09:29:26 <gjanssens> It would help to know exactly what errors you get
09:29:56 <Rogach> I'll re-run the build now and report back.
09:30:44 <Rogach> It was actually my understanding that `make`in gnucash somehow runs `ninja` under the hood, because the output is not very similar to usual make output.
09:31:18 <gjanssens> :)
09:32:22 <gjanssens> The output of "make" is largely defined by the Makefiles that are being generated. Before I believe GnuCash 4, we used autotools to generate these Makefiles.
09:32:52 <gjanssens> Since then we have switched to cmake to generate either Makefiles or a build configuration suitable for ninja.
09:33:26 <gjanssens> These cmake generated Makefiles are organized quite differently from the ones generated by autotools. Hence the different output.
09:33:45 <gjanssens> But it really is make in your case and not ninja that orchestrates the build.
09:34:36 <gjanssens> I'm probably unavailable for the coming hours. Feel free to post your errors here or on the mailing lists though.
09:34:44 <gjanssens> Someone will respond at some point.
09:36:36 <Rogach> I have to deeply apologize :( I was using cmake flags from Arch Linux build definition (`-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib -DWITH_PYTHON=ON -DCOMPILE_GSCHEMAS=OFF`), and when I compiled with them there were problems.
09:36:50 <Rogach> Only now I had the epiphany of compiling without all those flags, and now it works.
09:36:58 <Rogach> My apologies for wasting your time =(
09:37:11 <gjanssens> No problem. Happy you got it fixed :)
09:37:30 <Rogach> Thank you!
09:38:20 <Rogach> Btw, regarding the mailing list - I posted an email to gnucash-devel several days ago, it said that it would be queued for the moderation, and never got through.
11:11:48 *** palerider has joined #gnucash
11:17:16 *** jervin has joined #gnucash
11:35:59 *** ettore has joined #gnucash
11:36:37 *** palerider has left #gnucash
11:43:00 *** NoobAlice has joined #gnucash
11:55:53 *** jervin has quit IRC
11:59:17 *** jervin has joined #gnucash
12:25:28 *** palerider has joined #gnucash
12:26:12 *** palerider has left #gnucash
13:56:31 <jralls> Rogach -DCOMPILE_GSCHEMAS=OFF would be the killer. That's appropriate for building a package (apt/rpm/pacman) because the package manager will run the gschema compiler as part of installing the package. It doesn't work for a stand-alone build unless you do it by hand afterwards.
14:01:00 <jralls> Rogach You have to subscribe to the list in order to post. Visit https://lists.gnucash.org/mailman/listinfo/gnucash-devel and fill out the form under "Subscribing to gnucash-devel".
14:03:55 *** gjanssens has quit IRC
14:34:15 *** giuseppef has joined #gnucash
14:35:06 *** ChanServ sets mode: +v giuseppef
16:01:18 *** warlord has quit IRC
16:26:38 *** palerider has joined #gnucash
16:32:17 *** gandalf has quit IRC
16:55:11 *** palerider has left #gnucash
17:25:10 *** giuseppef has quit IRC
17:32:03 *** giuseppef has joined #gnucash
18:15:14 *** palerider has joined #gnucash
18:16:28 *** palerider has left #gnucash
18:54:08 *** giuseppef has quit IRC
19:03:03 *** AdrienM has quit IRC
19:03:37 *** AdrienM_ has joined #gnucash
19:25:07 <Rogach> jralls: I don't see Arch Linux running schema compiler: https://github.com/archlinux/svntogit-community/blob/packages/gnucash/trunk/PKGBUILD#L42
19:25:18 <Rogach> Perhaps that happens when it does `make check`?
19:25:33 <Rogach> Or `make install`?
22:02:50 *** mosiu_ has joined #gnucash
22:03:05 *** mosiu has quit IRC
22:03:07 *** mosiu_ is now known as mosiu