Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - Build instructions tip
Build instructions tip
 
   NeoOffice Forum Index -> NeoOffice Development
View previous topic :: View next topic  
Author Message
toonetown
Keymaker


Joined: Apr 21, 2006
Posts: 95
Location: Utah, USA

PostPosted: Fri May 26, 2006 7:35 am    Post subject: Build instructions tip

I came across this tip (well, actually, it's just an undocumented "feature", I guess...) while reading through the makefile and trying to figure it out.

Everyone here probably already knows it, but it might be useful to put on the official build instructions page, or on the wiki build instructions.

You can avoid having to connect to the OpenOffice.org CVS site (which I occasionally have problems with) and downloading the ENTIRE tree through CVS by just downloading the source tarball from http://download.openoffice.org/2.0.2/index.html. (2.0.2 is what's currently used in the build.

You then just put OOo_2.0.2_src.tar.gz in your $NEO_HOME directory, and start the build.

It will still connect briefly (Just to double check that the last module has been checked out) - but I've found that it's a lot faster to download the tarball first.
Back to top
toonetown
Keymaker


Joined: Apr 21, 2006
Posts: 95
Location: Utah, USA

PostPosted: Fri May 26, 2006 7:38 am    Post subject:

A better link for the source tarball download (more direct) is http://download.openoffice.org/2.0.2/source.html

-Nathan
Back to top
Samwise
Captain Naiobi


Joined: Apr 25, 2006
Posts: 2315
Location: Montpellier, France

PostPosted: Mon May 29, 2006 11:22 am    Post subject:

This is actually quite interesting, as I can't always have my internet connection up for the entire duration of a build. So I just put the tarball (as is) in the $NEO_HOME directoy, next to the neojava folder, and start the build ? And then, assuming I have the latest NeoOffice source, and once the "brief connection" with the OOo CVS has been established, could it be possible to build w/out being connected to the internet ?
Back to top
jakeOSX
Ninja
Ninja


Joined: Aug 12, 2003
Posts: 1373

PostPosted: Mon May 29, 2006 2:04 pm    Post subject:

you are using the tarbill to replace the CVS download, so youwill have to un-tar it into the folder.

as for the connection, the make fill will connect to the internet as is, you would have to modify it to keep it from doing so.
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Mon May 29, 2006 9:16 pm    Post subject:

jakeOSX wrote:
you are using the tarbill to replace the CVS download, so youwill have to un-tar it into the folder.

as for the connection, the make fill will connect to the internet as is, you would have to modify it to keep it from doing so.


Not exactly. Back when James frequented these fora, he convinced me to have the makefile look for an OOo source *.tar.gz file. If such a file is found, the makefile will not try to connect to the OOo CVS server.

Patrick
Back to top
Samwise
Captain Naiobi


Joined: Apr 25, 2006
Posts: 2315
Location: Montpellier, France

PostPosted: Tue May 30, 2006 9:35 am    Post subject:

Well, thanks for your replies, but I'm even more confused. Should I un-tar the file then ? Patrick says that the makefille will look for the .tar.gz file, so I assume that it can handle all the necessary steps to un-tar it as well, but jake claims otherwise.

My internet connection would be on to allow the makefile to connect briefly to the OOo anonymous CVS, but my mother will probably turn off the router at some point ...
Back to top
toonetown
Keymaker


Joined: Apr 21, 2006
Posts: 95
Location: Utah, USA

PostPosted: Wed May 31, 2006 8:50 pm    Post subject:

No - you do not need to untar the file - the makefile will untar it for you.

And from what I've seen, it actually *does* do a quick connection to CVS after it's done untarring...that might be a problem with the makefile, it might be by design.

Here is the line from the makefile that does the connect (if the tarball exists)

Code:

# cvs seems to always fail so check that the last module has been checked out
   cd "$(BUILD_HOME)/agg" ; cvs -d "$(OO_CVSROOT)" update -r "$(OO_TAG)"


I'm guessing that on that line, we could do the "if [ ! -e "$(OO_SOURCE_TAR_GZ_FILE)" ]" magic...but I don't know if that has any other repercussions.
Back to top
Samwise
Captain Naiobi


Joined: Apr 25, 2006
Posts: 2315
Location: Montpellier, France

PostPosted: Fri Jun 02, 2006 5:03 am    Post subject:

Thanks. That answers my questions. The next time I'll attempt to build Neo, I'll check whether it does or doesn't connect to the OOo CVS.
Back to top
Samwise
Captain Naiobi


Joined: Apr 25, 2006
Posts: 2315
Location: Montpellier, France

PostPosted: Mon Jun 05, 2006 4:06 am    Post subject:

Okay. Saturday I attempted to build Alpha 3 for PPC, with the source for OOo in my $NEO_HOME folder and an internet connection up for the first few hours of the build. I logged into the OOo CVS, and although it did connect to it it didn't seem to download anything.

All went fine until this morning : Terminal was doing something with "build.neo_vcl_patch" and "build.neo_patches" when it created a "source/NeoOffice2.0_Alpha_3" and attempted to connect to Neo's anonymous CVS to retrieve something and store it there. I wasn't connected to the internet, so the build broke.

It's no big deal, but since I am not familiar with make, I'd like to know how I can resume the build where I left it now that I am connected to the net again.
Back to top
jakeOSX
Ninja
Ninja


Joined: Aug 12, 2003
Posts: 1373

PostPosted: Mon Jun 05, 2006 5:28 am    Post subject:

AFAIK all you have to do is just restart the build, it will not rebuild the already built parts.
Back to top
Samwise
Captain Naiobi


Joined: Apr 25, 2006
Posts: 2315
Location: Montpellier, France

PostPosted: Mon Jun 05, 2006 5:53 am    Post subject:

Thanks. I feared that re-launching the build would cause make to check every step of the build (to see if it had been completed) until it reached what it was doing previously, but apparently I was wrong (good news) Smile
Back to top
jakeOSX
Ninja
Ninja


Joined: Aug 12, 2003
Posts: 1373

PostPosted: Mon Jun 05, 2006 6:45 am    Post subject:

i think it will check them, but the check is much faster since it isn't building.
Back to top
Samwise
Captain Naiobi


Joined: Apr 25, 2006
Posts: 2315
Location: Montpellier, France

PostPosted: Mon Jun 05, 2006 7:11 am    Post subject:

Well it did not : the build started right where it had left as soon as I pressed enter ...
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Development All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.