Here is a TESTED & WORKING procedure for building GnuCash 3.7 on Ubuntu Bionic
REQUIREMENTS
An Ubuntu Bionic installation with bionic-backports activated. (I used a minimal Xubuntu VM for this setup)
1) Create a source directory
Code:
$ mkdir bionic37
$ cd bionic37
2) Get the latest Ubuntu package
Code:
$ dget https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/gnucash/1:3.7-1ubuntu1/gnucash_3.7-1ubuntu1.dsc
2b) Move into the directory created by the source package
3) Comment out a build flag line in debian/rules so it will build in Bionic
Code:
$ sed -i 's/export DEB_CXXFLAGS/#export DEB_CXXFLAGS/' debian/rules
4) Make this your custom version
4b) Edit the new version at the top so it reads something like gnucash (1:3.7-1ubuntu18.04~1)
4c) Add a comment under your name saying something like "Commented out DEB_CXXFLAGS instruction in debian/rules"
4d) Save and exit the editor.
5) Upgrade debhelper
Code:
$ sudo apt install debhelper/bionic-backports
6) Build the package
Code:
$ dpkg-buildpackage
7) You will see the package files in the bionic37 directory, ready to install.
Code:
$ sudo dpkg -i *.deb *.ddeb
$ sudo apt install -f
The dpkg -i command attempts to install gnucash .deb files and the .ddeb debugging files. In a fresh installation, the dpkg -i command will fail because of missing dependencies, so the second command will install the missing dependencies and finish installing gnucash.
Bookmarks