[GNC-dev] Building 3.5 package for Disco

Stephen M. Butler kg7je at arrl.net
Fri May 3 20:52:51 EDT 2019


On 5/3/19 4:32 PM, John Ralls wrote:
>
> gnucash-design.info is built only if you have make info installed. I wouldn't bother, the document is severely obsolete. Just find it in your build description and remove it.
>
> Let's get back to gtest. I looked at gnc_gtest_configure() in common/cmake_modules/GncAddTest.cmake and was reminded that if cmake finds libgtest.a that it will ignore the source directory and use the system libgtest.a.
>
> The missing symbols are from libgtest.a, so maybe the linker is getting them in the wrong order. Open GncAddTest.cmake in an editor and at line 137 change
>    set(GTEST_LIB "${GTEST_SHARED_LIB};${GTEST_MAIN_LIB}" PARENT_SCOPE)
> to
>    set(GTEST_LIB "${GTEST_MAIN_LIB};${GTEST_SHARED_LIB}" PARENT_SCOPE)
>
> and see if that fixes the error.
>
> It's been that way for a long time so why it would suddenly matter is strange...
>
> Regards,
> John Ralls

First, here are the locations of libgtest.a on my system:

/usr/lib/x86_64-linux-gnu/libgtest.a
/home/steve/Projects/GnuCash/build/common/test-core/libgtest.a
/home/steve/Projects/GnuCash/chrislam/.build/common/test-core/libgtest.a

1.  Removed ./debian/gnucash-common.info

2.  Made the change noted above on line 137 in
./common/cmake_modules/GncAddTest.cmake

I have a debian package for 3.5 as built in 19.04 (Disco).


sudo apt install ./*3.5*.deb
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Note, selecting 'gnucash' instead of './gnucash_3.5_amd64.deb'
Note, selecting 'gnucash-common' instead of './gnucash-common_3.5_all.deb'
Note, selecting 'python3-gnucash' instead of
'./python3-gnucash_3.5_amd64.deb'
gnucash-common is already the newest version (1:3.5).
The following packages were automatically installed and are no longer
required:
  libboost-regex1.65.1 libuser1 python-libuser
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  libdbd-mysql
Recommended packages:
  pythone3-gnucash
The following NEW packages will be installed:
  python3-gnucash
The following packages will be upgraded:
  gnucash
1 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/4,229 kB of archives.
After this operation, 1,772 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 /home/steve/Projects/GnuCash/gnucash_3.5_amd64.deb gnucash amd64
1:3.5 [3,958 kB]
Get:2 /home/steve/Projects/GnuCash/python3-gnucash_3.5_amd64.deb
python3-gnucash amd64 1:3.5 [271 kB]
(Reading database ... 227873 files and directories currently installed.)
Preparing to unpack .../GnuCash/gnucash_3.5_amd64.deb ...
Unpacking gnucash (1:3.5) over (1:3.5) ...
Selecting previously unselected package python3-gnucash.
Preparing to unpack .../python3-gnucash_3.5_amd64.deb ...
Unpacking python3-gnucash (1:3.5) ...
Setting up python3-gnucash (1:3.5) ...
Setting up gnucash (1:3.5) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for gnome-menus (3.32.0-1ubuntu1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for desktop-file-utils (0.23-4ubuntu1) ...

It fired up and worked.  Let me push these up to Google Drive and make
them available.

Thanks John.  Could not have done this without your help!

--Steve

-- 
Stephen M Butler, PMP, PSM
Stephen.M.Butler51 at gmail.com
kg7je at arrl.net
253-350-0166
-------------------------------------------
GnuPG Fingerprint:  8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8




More information about the gnucash-devel mailing list