Re: [GNC-dev] WSL 2 and GnuCash

2023-11-30 Thread Sherlock
If you haven’t recently, you may want to evaluate WSL again.

I’ve been successful using the distribution GnuCash (4.8), the flatpack GnuCash 
(5.4.1), and a GnuCash build environment on the default WSL distro (ubuntu) 
without any additional software or configuration required on Windows 
10.0.19045.  The Linux VM’s X GUIs are displayed to the Window VM's Remote 
Desktop out of the box and a Windows GnuCash Start menu shortcut even appeared 
after I installed the distributed GnuCash.


Here are my installation notes:


Install WSL as Administrator:

wsl —install


Install distributed GnuCash:

sudo apt -y update
sudo apt -y upgrade
sudo apt -y install python3-gi python3-gi-cairo gir1.2-gtk-3.0
sudo apt -y install adwaita-icon-theme-full
sudo apt -y install gnucash

sudo apt -y install make gcc
sudo gnc-fq-update


Install flatpack GnuCash:

sudo apt -y install flatpak
sudo flatpak remote-add --if-not-exists flathub 
https://flathub.org/repo/flathub.flatpakrepo
sudo flatpak install --system flathub org.gnucash.GnuCash


Set up build environment:

sudo sed -i "s/^# deb-src/deb-src/" /etc/apt/sources.list
sudo apt -y update
sudo apt -y upgrade
sudo apt -y build-dep gnucash
sudo apt -y install git
sudo apt -y install p7zip-full
sudo apt install at-spi2-core

mkdir -p ~/Documents/gnucash/source
mkdir -p ~/Documents/gnucash/build

git clone https://github.com/Gnucash/gnucash.git ~/Documents/gnucash/source

cd ~/Documents/gnucash/source
git checkout 5.4


Build instructions:

cd ~/Documents/gnucash/build
cmake -DCMAKE_INSTALL_PREFIX=/opt/gnucash ~/Documents/gnucash/source
make
sudo make install

sudo /opt/gnucash/bin/gnc-fq-update



On Jul 26, 2020, at 11:38 AM, John Ralls  wrote:
> Oh. I thought that WSL2 didn't require the XServer. I did look at the WSL2 
> installation page 
> (https://docs.microsoft.com/en-us/windows/wsl/install-win10) yesterday and 
> it's indeed a geeks-only undertaking at this point.
> 
> It looks like we'll be stuck with MinGW for the foreseeable future.
> 
> Regards,
> John Ralls
> 
> 
> > On Jul 26, 2020, at 7:42 AM, Chris Graves  wrote:
> > 
> > 
> > From memory...
> > and unfortunately at this point,not user friendly.
> > 
> > With Windows 10 version 2004 installed:
> > Open the Turn Windows Features on or off dialog
> > Select Windows Subsystem for Linux and Virtual Machine Platform options
> > Installed to WSL, a very striped down Fedora from 
> > https://github.com/yosukes-dev/FedoraWSL
> > Used wsl to convert FedoraWSL from version 1 to version 2 "wsl 
> > --set-version fedora32 2"
> > Logged into Fedora via the command "wsl"
> > used dnf to install xfce, gnucash and several other utilities
> > created a user account with the name matching my windows username
> > in .bashrc set the DISPLAY variable "export DISPLAY=localhost:0"
> > Back in windows, installed a windows X server: 
> > https://sourceforge.net/projects/vcxsrv/
> > Launched the X server with the display set to 0
> > Created a shortcut with target: C:\Windows\System32\wsl.exe -u chris bash 
> > -l -c gnucash
> > (when logging in to fedora via the wsl command, the .bashrc was not being 
> > executed so DISPLAY wasn't being set
> > thus - bash -l -c gnucash)
> > Double clicked the shortcut and voila -- GnuCash
> > Used the file->open dialog to open my data file -- BTW, the default 
> > directory here was my Windows user directory
> > 
> > The process is a bit tedious and not something a typical user should be 
> > asked to do, but it did work and was a fun exercise. Note that all the GC 
> > config and AQB stuff lives in the users Linux home dir.
> > 
> > 
> > 
> > 
> > 
> > On Sat, Jul 25, 2020 at 12:05 PM John Ralls  wrote:
> > 
> > 
> > > On Jul 25, 2020, at 10:32 AM, Chris Graves  
> > > wrote:
> > > 
> > > GnuCash on Fedora in WSL2 on Windows 10. Launched from desktop shortcut.
> > > 
> > > https://imgur.com/a/ORivN9q
> > > ___
> > 
> > Cool. How did you install it?
> > 
> > Regards,
> > John Ralls
> > 
> >


___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Windows Build VM

2023-11-15 Thread Sherlock


> On Nov 15, 2023, at 3:15 PM, Manfred Usselmann  wrote:
> 
> Hi,
> 
> Am 2023-11-12 01:19, schrieb Sherlock:
> 
>> For what it may be worth, I have been successful building and packaging 
>> GnuCash 5.4 on Windows 10 with mingw-w64-i686-webkitgtk3-2.4.11-999.5-any in 
>> a recent (2023-07-18) MSYS2 MINGW32 environment.
> 
> Did you include the Python bindings as well?

No. 

> 
>> 1. Missing gcrypt
>> pacman -S mingw-w64-i686-libgcrypt --noconfirm --needed
>> 2. Missing xmlsec1
>> pacman -S mingw-w64-i686-xmlsec --noconfirm --needed
>> 3. Install the latest mingw-w64-i686-webkitgtk3 and the versions of it's 
>> dependencies:
>> cd /c/gcdev64/msys2/var/cache/pacman/pkg/
>> wget 
>> https://downloads.sourceforge.net/gnucash/Dependencies/jralls_public_signing_key.asc
>> pacman-key --add jralls_public_signing_key.asc
>> pacman-key --lsign C1F4DE993CF5835F
>> wget 
>> https://sourceforge.net/projects/gnucash/files/Dependencies/mingw-w64-i686-webkitgtk3-2.4.11-999.5-any.pkg.tar.zst
>> wget 
>> https://sourceforge.net/projects/gnucash/files/Dependencies/mingw-w64-i686-webkitgtk3-2.4.11-999.5-any.pkg.tar.zst.sig
>> pacman -U 
>> https://sourceforge.net/projects/gnucash/files/Dependencies/mingw-w64-i686-webkitgtk3-2.4.11-999.5-any.pkg.tar.zst
>>  --noconfirm --needed
>> wget 
>> https://repo.msys2.org/mingw/mingw32/mingw-w64-i686-icu-69.1-1-any.pkg.tar.zst
>> wget 
>> https://repo.msys2.org/mingw/mingw32/mingw-w64-i686-gcc-libs-12.2.0-10-any.pkg.tar.zst
>> cd /c/gcdev64/msys2
>> zstdcat 
>> /c/gcdev64/msys2/var/cache/pacman/pkg/mingw-w64-i686-icu-69.1-1-any.pkg.tar.zst
>>  | tar xf - mingw32/bin/libicudt69.dll mingw32/bin/libicuin69.dll 
>> mingw32/bin/libicuuc69.dll
>> zstdcat 
>> /c/gcdev64/msys2/var/cache/pacman/pkg/mingw-w64-i686-gcc-libs-12.2.0-10-any.pkg.tar.zst
>>  | tar xf - mingw32/bin/libssp-0.dll
> 
> I executed your commands above and it did work for me as well. Thanks! :-)
> 
> Regards,
> Manfred

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] WebKitGtk now defaults to Gtk4

2023-11-19 Thread Sherlock
CEF?

> On Nov 18, 2023, at 8:00 PM, john  wrote:
> 
> I spent some time this afternoon poking at webkit replacement. The options I 
> found are:
> * Keep using WebKitGtk
> * Figure out how to wrap a native (meaning Apple AppKit or Microsoft) WebView 
> in a GtkWidget
> * Send the HTML/JS/CSS to the default browser. This will lose the links to 
> GnuCash objects like transactions
> * Configure a GtkTextView to understand HTML tags. This doesn't support 
> charts, printing, or PDF export.
> * Write reports directly to PDF. There are libraries out there but I didn't 
> find any FLOSS ones that mention CSS styling or drawing charts in their 
> feature sets.
> 
> Any other ideas?
> 
> Regards,
> John Ralls
> 
>> On Nov 18, 2023, at 11:03, john  wrote:
>> 
>> 
>> WebKitGtk. When I wrote that I was thinking Gtk4, but that won't work on 
>> Windows because WebKitGtk 2.4, the last release before they ripped out all 
>> of the Windows support code, obviously doesn't support Gtk4.
>> 
>> I don't know that we have until 2026 because I don't know what are the other 
>> WebKitGtk based applications Carlos referred to so I don't know where they 
>> are on migrating. We know from experience that nobody's going to wait for us.
>> 
>> I couldn't find the earlier discussion about release cycles either. The 
>> options are to keep doing what we're doing or to switch to a more continuous 
>> model where stable is the only central branch and feature branches are 
>> merged in when they're ready. We'd switch to a year-based versioning similar 
>> to Ubuntu's; I proposed -n, e.g. 2024-1, 2024-2, etc. on the same 
>> quarterly schedule. There would be no beta releases; the few users willing 
>> to test could do so with nightly builds.
>> 
>> If we don't change to the continuous model, 6.0 would drop 29 March 2026, 
>> see https://wiki.gnucash.org/wiki/Release_Schedule#Goals_for_6.0. 8 March is 
>> string freeze.
>> 
>> Regards,
>> John Ralls
>> 
>> 
>>> On Nov 18, 2023, at 02:54, Robert Fewell <14ubo...@gmail.com> wrote:
>>> 
>>> Can I get clarification, is that migrating to Gtk4 or move away from 
>>> WebKitGtk ?
>>> 
>>> I suppose either change would be a major one so that would be version 6.0 I 
>>> assume.
>>> I seem to recall there was a question on release cycles but can not find 
>>> where, so if 6.0 is that still 08/03/2026 ?
>>> 
>>> Regards,
>>> Bob
>>> 
>>> On Fri, 17 Nov 2023 at 17:15, john >> > wrote:
 WebKitGtk 2.43.1 was just released and one of its changes is that it's 
 Gtk4 by default and one must specify a build option, -DGTK4=OFF, to use it 
 with Gtk3. I asked on the webkitgtk mailing list if there's a schedule for 
 dropping Gtk3 support. Carlos Garcia Campos replied "No, but it will take 
 a while I'm afraid. Most of the WebKitGTK based
 applications are still GTK3, I think."
 
 So we don't have a firm deadline yet, but this is a warning that we need 
 to get serious about migrating.
 
 Regards,
 John Ralls
 
 ___
 gnucash-devel mailing list
 gnucash-devel@gnucash.org 
 https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>> 
>> ___
>> gnucash-devel mailing list
>> gnucash-devel@gnucash.org
>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
> 
> ___
> gnucash-devel mailing list
> gnucash-devel@gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Windows Build VM

2023-11-11 Thread Sherlock
public_signing_key.asc
pacman-key --add jralls_public_signing_key.asc
pacman-key --lsign C1F4DE993CF5835F
wget 
https://sourceforge.net/projects/gnucash/files/Dependencies/mingw-w64-i686-webkitgtk3-2.4.11-999.5-any.pkg.tar.zst
wget 
https://sourceforge.net/projects/gnucash/files/Dependencies/mingw-w64-i686-webkitgtk3-2.4.11-999.5-any.pkg.tar.zst.sig
pacman -U 
https://sourceforge.net/projects/gnucash/files/Dependencies/mingw-w64-i686-webkitgtk3-2.4.11-999.5-any.pkg.tar.zst
 --noconfirm --needed
wget 
https://repo.msys2.org/mingw/mingw32/mingw-w64-i686-icu-69.1-1-any.pkg.tar.zst
wget 
https://repo.msys2.org/mingw/mingw32/mingw-w64-i686-gcc-libs-12.2.0-10-any.pkg.tar.zst
cd /c/gcdev64/msys2
zstdcat 
/c/gcdev64/msys2/var/cache/pacman/pkg/mingw-w64-i686-icu-69.1-1-any.pkg.tar.zst 
| tar xf - mingw32/bin/libicudt69.dll mingw32/bin/libicuin69.dll 
mingw32/bin/libicuuc69.dll
zstdcat 
/c/gcdev64/msys2/var/cache/pacman/pkg/mingw-w64-i686-gcc-libs-12.2.0-10-any.pkg.tar.zst
 | tar xf - mingw32/bin/libssp-0.dll

In addition to including these dependencies in the build environment, I found 
it necessary to apply the manifest patch and a rename patch to jhbuild. as well 
as a packaging patch.

Sherlock
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Porting to Apple silicon

2024-04-23 Thread Sherlock
I have a webkitgtk-2.32.0 patch that enables reports to work (included below).

The crash reported in https://bugs.webkit.org/show_bug.cgi?id=248802
occurs because Apple Silicon builds enforces their Hardened Runtime by default 
(see 
https://developer.apple.com/documentation/apple-silicon/porting-just-in-time-compilers-to-apple-silicon).


*** PlatformUse.h.orig  Tue Apr 23 13:54:25 2024
--- PlatformUse.h   Tue Apr 23 14:15:31 2024
***
*** 313,320 
--- 313,323 
 #define USE_LEGACY_CFNETWORK_DOWNLOADS 1
 #endif

+ /*
 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 11) \
 || (PLATFORM(MACCATALYST) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 14)
+ */
+ #if OS(MAC_OS_X)
 #if USE(APPLE_INTERNAL_SDK)
 /* Always use the macro on internal builds */
 #define USE_PTHREAD_JIT_PERMISSIONS_API 0___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel