Brian Morrison via Pan-users posted on Thu, 24 Oct 2024 22:02:13 +0100 as excerpted:
> On Mon, 21 Oct 2024 23:08:15 -0000 (UTC) > Duncan <1i5t5.dun...@cox.net> wrote: > >> > $ pan --debug >> [...snip...] >> icon.cc:43:load_icon_from_path) >> > Unable to load icon icon_pan.png from /usr/local/share/pan/icons: >> > Failed to open file “/usr/local/share/pan/icons/icon_pan.png”: No >> > such file or directory > > OK, so in the Fedora packages, the icons are put in /usr/share/pan/icons > so what is the easiest way to fix this up? It has broken with the change > over to cmake but I'm not sure whether to just hack it into load-icon.cc > or do something cleverer and make it find the correct > PAN_SYSTEM_ICON_PATH instead. Absolutely no claims at cmake expertise here, but this give me an excuse to look things up, given I've been meaning to learn a bit more about it (see the last paragraph). First thing I looked up, this is what gentoo does (among other options) for its configure-time cmake invoke (-D (re)defines the given variable): -DCMAKE_INSTALL_PREFIX=/usr I could tell you how gentoo invokes cmake and where to plug the above in for cmake-based configures and builds here (basically the cmake eclass handles it automatically, so all a cmake-based package ebuild has to do is inherit that eclass... but what does the /eclass/ do?), but of course that won't help much for fedora, so that bit's on you or someone else on fedora... =:^) Then, I found the cmake-variables (7) manpage, which is quite long so you may wish to search it for CMAKE_INSTALL_PREFIX, or simply CMAKE_INSTALL if you're interested in other install-related vars. I also discovered /usr/share/cmake/Help/variable/CMAKE_INSTALL_PREFIX.rst (gentoo path, fedora's package is likely the same if it installs those). Alternatively, the cmake (1) manpage has --install-prefix (since cmake 3.21), which it says is used to set the above CMAKE_INSTALL_PREFIX variable. Apparently there's also a qt-based (qt5 or qt6 depending on what it's built against, gentoo can build against either ATM, tho it's deprecating qt5 so that'll go away at some point) cmake-gui available, cmake-gui (1) manpage, that can be used to configure cmake using a GUI instead of scripting it, but I've never used it. I imagine it'd be able to configure the option too (and at a guess would display that help rst file mentioned above for this option), but of course can't check since I have that build/ package option turned off for my cmake package via gentoo USE flag. (Since I'm a kde user, and that's also qt-based, it appears I already have the extra deps for cmake-gui installed, so maybe one of these days I'll flip that USE flag and install it to play around with and learn more about cmake. Given that kde uses cmake too, and I run live-git kde from the gentoo/kde overlay, there's certainly times when upstream kde changes haven't made it to the overlay ebuilds yet so I have to do manual changes, and I'm running live-git pan too, so the cmake-gui "helper" and the additional cmake knowledge I'd likely gain with it should definitely be helpful!) -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman _______________________________________________ Pan-users mailing list Pan-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/pan-users