WIki Page discrepancies

2018-01-29 Thread David T. via gnucash-devel
Hello,

More on the two Git pages (“Git” and “An Introduction to Git”)(Thanks, Geert!).

I notice that “An Introduction to Git” says that there are 2 important 
branches: master and maint, whereas “Git” says that there are three: master, 
maint, and unstable, with the note that unstable only exists when a new major 
release is imminent. I will assume that the latter is more right (insofar as it 
goes into more technical detail about the git branching that the project uses), 
but should the Intro page be changed to be more in line with the main Git page? 
Something like this:

There are two primary branches in the GnuCash repositories:
 master 
   is the default branch in git. New features and their documentation should be 
based on this branch.
 maint
   is the second important branch. Bugfixes, translations, and improvements to 
the documentation should usually be applied on this branch.

A third branch, unstable will exist when a major release is imminent, but is 
used for beta releases.

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


Re: WIki Page discrepancies

2018-01-29 Thread Geert Janssens
Op maandag 29 januari 2018 17:42:01 CET schreef David T. via gnucash-devel:
> Hello,
> 
> More on the two Git pages (“Git” and “An Introduction to Git”)(Thanks,
> Geert!).
> 
> I notice that “An Introduction to Git” says that there are 2 important
> branches: master and maint, whereas “Git” says that there are three:
> master, maint, and unstable, with the note that unstable only exists when a
> new major release is imminent. I will assume that the latter is more right
> (insofar as it goes into more technical detail about the git branching that
> the project uses), but should the Intro page be changed to be more in line
> with the main Git page? Something like this:
> 
> There are two primary branches in the GnuCash repositories:
>  master
>is the default branch in git. New features and their documentation should
> be based on this branch. maint
>is the second important branch. Bugfixes, translations, and improvements
> to the documentation should usually be applied on this branch.
> 
> A third branch, unstable will exist when a major release is imminent, but is
> used for beta releases.
> 
> Cheers,
> David
> ___
> gnucash-devel mailing list
> gnucash-devel@gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel

David,

Thanks for reviewing this.

Yes, I would keep this information similar on both pages. I think new 
contributors would probably be very confused if the pages didn't state the 
same and not know which one to believe.

Geert



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


Building unstable on Mac

2018-01-29 Thread R. Victor Klassen
So, the wiki is less than clear on how to do this.

First I tried going through the instructions under Building for Development 
beginning with

jhbuild shell
cd $PREFIX/../src/gnucash-2.6.17
But it turned out that there was no path with the prefix $PREFIX/../src

No src directory had yet been created under $PREFIX - this is a clean user 
account, with most of an attempt at building stable as the only thing in it.

So I skipped the uninstall, and made a guess as to where I was supposed to go 
with the cd ..

Then I ran

git clone -b maint https://github.com/Gnucash/gnucash.git
Nearly giving up after a dozen or so failures to get the whole thing in one 
gulp.  Early morning seems best.

When I tried the autopen.sh && configure, it became clear that many 
dependencies weren’t in place.
Many of the early dependencies complained about were to be found in my 
gnucash-stable tree, and as they were external tools I just linked them to the 
corresponding location, which got me somewhat further, but not everything was 
found still.

So I skipped to “Building Unstable Versions” and did the commenting and 
uncommenting recommended. 

I did a 

Jhbuild bootstrap

And then jhbuild build.

Which complained:

jhbuild build: A module called ''meta-gnucash-unstable'' could not be found.


At this point I tried 

$ jhbuild shell
$ echo $PREFIX
/Users/gnucashdev/gnucash-unstable
$ cd $PREFIX/gnucash

$ ./configure --prefix=$PREFIX --enable-ofx --enable-aqbanking 
--enable-binreloc --enable-dbi --with-dbi-dbd-dir=$PREFIX/lib/dbd

This worked for awhile, but then I got a configure error:

configure: error: 
You are building from git but swig was not found or too old.
To build gnucash you need at least swig version 2.0.10.




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


Re: Building unstable on Mac

2018-01-29 Thread John Ralls
To build unstable:

1. Retrieve the latest .jhbuildrc-custom from the gnucash-on-osx repository.
2. Edit ~/.jhbuildrc-custom to comment out the gnucash-stable prefix and 
modules and to uncomment the gnucash-unstable ones.
3. Run jhbuild bootstrap
4. Run jhbuild build

If you want a git checkout, uncomment the gnucash-git module instead of the 
gnucash-unstable module. That will build ‘master’, though be sure to look at 
https://github.com/jralls/gnucash-on-osx/blob/master/modulesets/gnucash.modules 

 and note the instructions for boost; jhbuild doesn’t know how to build that. 
After running `jhbuild build` you can

1. cd ~/gtk/source/gnucash-git
2. git clean -fdx
2. git checkout -b unstable -t origin/unstable
3. jhbuild shell
4. cd $PREFIX/..
5. mkdir build/gnucash-git && cd build/gnucash-git
6. cmake -DCMAKE_INSTALL_PREFIX=$PREFIX 
-DGTEST_ROOT=$JHBUILD_SOURCE/googletest/googletest 
-DGMOCK_ROOT=$JHBUILD_SOURCE/googletest/googlemock $JHBUILD_SOURCE/gnucash-git
7. make && make install

To run tests, run 
  make check

Regards,
John Ralls

> On Jan 29, 2018, at 3:33 PM, R. Victor Klassen  wrote:
> 
> So, the wiki is less than clear on how to do this.
> 
> First I tried going through the instructions under Building for Development 
> beginning with
> 
> jhbuild shell
> cd $PREFIX/../src/gnucash-2.6.17
> But it turned out that there was no path with the prefix $PREFIX/../src
> 
> No src directory had yet been created under $PREFIX - this is a clean user 
> account, with most of an attempt at building stable as the only thing in it.
> 
> So I skipped the uninstall, and made a guess as to where I was supposed to go 
> with the cd ..
> 
> Then I ran
> 
> git clone -b maint https://github.com/Gnucash/gnucash.git
> Nearly giving up after a dozen or so failures to get the whole thing in one 
> gulp.  Early morning seems best.
> 
> When I tried the autopen.sh && configure, it became clear that many 
> dependencies weren’t in place.
> Many of the early dependencies complained about were to be found in my 
> gnucash-stable tree, and as they were external tools I just linked them to 
> the corresponding location, which got me somewhat further, but not everything 
> was found still.
> 
> So I skipped to “Building Unstable Versions” and did the commenting and 
> uncommenting recommended. 
> 
> I did a 
> 
> Jhbuild bootstrap
> 
> And then jhbuild build.
> 
> Which complained:
> 
> jhbuild build: A module called ''meta-gnucash-unstable'' could not be found.
> 
> 
> At this point I tried 
> 
> $ jhbuild shell
> $ echo $PREFIX
> /Users/gnucashdev/gnucash-unstable
> $ cd $PREFIX/gnucash
> 
> $ ./configure --prefix=$PREFIX --enable-ofx --enable-aqbanking 
> --enable-binreloc --enable-dbi --with-dbi-dbd-dir=$PREFIX/lib/dbd
> 
> This worked for awhile, but then I got a configure error:
> 
> configure: error: 
>You are building from git but swig was not found or too old.
>To build gnucash you need at least swig version 2.0.10.
> 
> 
> 
> 
> ___
> 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