Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-06

Git mirror

13 messages · 6 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Giuseppe Luigi Punzi

Hi all,

In my Fedora 11 64bits machine, I always get errors when using svn: svn: REPORT de '/svn/lazarus/!svn/vcc/default': Could not read response body: Connection reset by peer (http://svn.freepascal.org)

I searched, and seems the problem is in server side.

I looked for others options, and see mails about a git mirror by graeme.

Is this git repository, and the wiki page
( http://wiki.lazarus.freepascal.org/git_mirrors ) updated to use as trunk "svn" checkouts?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20090629/16406b5b/attachment.html>

Reply by email

Vincent Snijders
to Giuseppe Luigi Punzi
Giuseppe Luigi Punzi wrote 8 lines
Hi all, In my Fedora 11 64bits machine, I always get errors when using svn: svn: REPORT de '/svn/lazarus/!svn/vcc/default': Could not read response body: Connection reset by peer (http://svn.freepascal.org) I searched, and seems the problem is in server side.

You can try the svn mirror from the fpc team:
http://svn2.freepascal.org/svn/lazarus/trunk

Or the one at sourceforge, less reliable, because the connection to the sf server is lost sometime when syncing and a lock remains, but the sf mirror support https too: http://lazarus.svn.sourceforge.net/svnroot/lazarus/trunk/ and
https://lazarus.svn.sourceforge.net/svnroot/lazarus/trunk/

Vincent

Reply by email

Graeme Geldenhuys
to Giuseppe Luigi Punzi: In my Fedora 11 64bits machine, I always get errors when using svn: svn: REPORT de…
Giuseppe Luigi Punzi wrote
I searched, and seems the problem is in server side.

Over the years I have had numerous problems with connections to remote SubVersion servers. We even had issues with our ISP installing a transparent proxy and blocking trafic on the port SubVersion uses. :-( Anyway, we overcame most issues with lots of effort. South Africa only has something like 2 measly connections to the rest of the world. Hopefully soon this will change with a new fire optic line being installed (running the length of Africa to Europe). Anyway, now I am way off topic.

Is this git repository, and the wiki page ( http://wiki.lazarus.freepascal.org/git_mirrors ) updated to use as trunk "svn" checkouts?

Yes, it gets sync'ed every 15 minutes. Please note that the up-to-date mirror is in the 'upstream' branch and not the 'master' branch. The master branch contains my own custom changes/fixes to the Lazarus IDE - but I don't push this to GitHub often.

Regards,
- Graeme -

_______________________________________________________ fpGUI - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Giuseppe Luigi Punzi
to Graeme Geldenhuys

El lun, 29-06-2009 a las 12:36 +0200, Graeme Geldenhuys escribi?:

Show quoted text 22 lines
Giuseppe Luigi Punzi wrote: > > I searched, and seems the problem is in server side. Over the years I have had numerous problems with connections to remote SubVersion servers. We even had issues with our ISP installing a transparent proxy and blocking trafic on the port SubVersion uses. :-( Anyway, we overcame most issues with lots of effort. South Africa only has something like 2 measly connections to the rest of the world. Hopefully soon this will change with a new fire optic line being installed (running the length of Africa to Europe). Anyway, now I am way off topic. > Is this git repository, and the wiki page ( > http://wiki.lazarus.freepascal.org/git_mirrors ) updated to use as trunk > "svn" checkouts? Yes, it gets sync'ed every 15 minutes. Please note that the up-to-date mirror is in the 'upstream' branch and not the 'master' branch. The master branch contains my own custom changes/fixes to the Lazarus IDE - but I don't push this to GitHub often.

Git worked like a charm at the first attempt.

When "git clone --depth 10 git://github.com/graemeg/lazarus.git" finished, I did "git checkout -b work origin/upstream" inside lazarus folder.

Now, I'm trying to build over QT, but this is other crazy history.

Thanks.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20090629/3fc5e9af/attachment.html>

Reply by email

Graeme Geldenhuys
to Giuseppe Luigi Punzi
Giuseppe Luigi Punzi wrote
Git worked like a charm at the first attempt.

Excellent. :-)

Show quoted text 6 lines
When "git clone --depth 10 git://github.com/graemeg/lazarus.git" finished, I did "git checkout -b work origin/upstream" inside lazarus folder. Now, I'm trying to build over QT, but this is other crazy history.

I'm not sure I understand the problem. OK, I did exactly the same as you now... to make sure my wiki instructions were correct.

$ cd /tmp
$ git clone --depth 10 git://github.com/graemeg/lazarus.git

This cloned the Lazarus repository with 10 history items per branch or tag, and created a '/tmp/lazarus' directory

$ cd lazarus

By default, if you clone a repository, you end up inside the 'master' branch. As per the wiki, we actually want the 'upstream' branch. So, lets check that out and name our new branch 'work'.

$ git checkout -b work origin/upstream

All done! We now have the latest Lazarus (trunk) code. You can confirm this by running 'gitk --all' to see all the branch. You are at the yellow dot in the tree - right at the top. And you are equal to 'origin/upstream'. See attached image.

OK, seeing that I don't know how to compile lazarus from the command line, I copied my old lazarus binary into our new directory so I can run the Lazarus IDE and compile our new version from there...

$ cp /opt/lazarus/lazarus .
$ ./lazarus --pcp=/tmp/lazarus_tmp_profile

I didn't want the new lazarus to screw with my "real" ~/.lazarus profile. As lazarus started up it complained that it couldn't find various packages. This is normal, so I just keep clicking on Ignore.

Now I go to "Environment > Options" and set the FPC Source path and click OK. Then I go to "Tools > Configure Build Lazarus" and select the "Advanced Build Options" tab.

* I set all the items (radio buttons) to the Build action (middle radio buttons) except for the Examples I set to None.

* Under "LCL Interface" I selected the Qt widgetset. I made sure

* I make sure "With Packages" is unchecked, because I want a nice small Lazarus IDE to start with and little dependencies.

* I set the "Lazarus director" to /tmp/lazarus/ just to make sure the executable ends up inside that directory and not inside the profile directory.

* Now I click "build" and wait.....

Build was successful. I quit Lazarus IDE and restart it again, which now loaded the new Qt based Lazarus IDE. I confirmed this in the About dialog. See 2nd attached image.

BTW: There seems to be some bug in the Qt widgetset and the Lazarus About dialog... The command line output scrolls like crazy and the IDE get unresponsive... Either way, the rest of the IDE works and functions fine.

I hope this helped.

PS:
To keep your repository up-to-date you can do the following (there are a few other methods as well, but the following is the easiest). While still inside the 'work' branch, you simply run the following...

$ git pull

If there was updates available, git would tell you so. If so, you can rebuild your IDE as normal.

Regards,
- Graeme -

_______________________________________________________ fpGUI - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot1.png
Type: image/png
Size: 14100 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20090629/0f57286a/attachment-0002.png> -------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot-About_Lazarus.png
Type: image/png
Size: 7631 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20090629/0f57286a/attachment-0003.png>

Reply by email

Bruce Tulloch
to Graeme Geldenhuys: Over the years I have had numerous problems with connections to remote SubVersion…
Graeme Geldenhuys wrote 12 lines
Giuseppe Luigi Punzi wrote: > Is this git repository, and the wiki page ( > http://wiki.lazarus.freepascal.org/git_mirrors ) updated to use as trunk > "svn" checkouts? > Yes, it gets sync'ed every 15 minutes. Please note that the up-to-date mirror is in the 'upstream' branch and not the 'master' branch. The master branch contains my own custom changes/fixes to the Lazarus IDE - but I don't push this to GitHub often.

And I note that Florian Klaempfl kindly maintains this mirror:

http://florianklaempfl.de:8000/

for Mercurial users.

I just noticed this too:

http://hg-git.github.com/

Has anyone on this list used it?

Looks like a nice step towards seamless Git/Mercurial interoperability.

Now, how about the same for SVN :-)

-b

Reply by email

Graeme Geldenhuys
to Bruce Tulloch
Bruce Tulloch wrote
http://florianklaempfl.de:8000/ for Mercurial users.

Ah, thanks for the URL. I was looking for that earlier when I updated the Lazarus wiki.

Now, how about the same for SVN :-)

Nah. ;-) But for fun I cloned the Git repository yesterday and checked out the very first revision (commit) of git. Eight C source code files of about 30-60 lines of code each. Just for fun I worked through it and ported most of it to Object Pascal. Who knows, maybe some day we will have a full Git release written in Object Pascal. :-) [That will show those C programmers.]

Now here comes the interesting question? If Linus just starting writing Git, how did he make that very first commit? ;-)

[The answer is actually quite simple - though I'm not sure if that's the official answer...]

Regards,
- Graeme -

_______________________________________________________ fpGUI - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Giuseppe Luigi Punzi
to Graeme Geldenhuys: Excellent. :-) I'm not sure I understand the problem. OK, I did exactly the same as you…

Hi Graeme, list...

Show quoted text 23 lines
> > When "git clone --depth 10 git://github.com/graemeg/lazarus.git" > finished, I did "git checkout -b work origin/upstream" inside lazarus > folder. > > Now, I'm trying to build over QT, but this is other crazy history. I'm not sure I understand the problem. OK, I did exactly the same as you now... to make sure my wiki instructions were correct. $ cd /tmp $ git clone --depth 10 git://github.com/graemeg/lazarus.git This cloned the Lazarus repository with 10 history items per branch or tag, and created a '/tmp/lazarus' directory $ cd lazarus By default, if you clone a repository, you end up inside the 'master' branch. As per the wiki, we actually want the 'upstream' branch. So, lets check that out and name our new branch 'work'. $ git checkout -b work origin/upstream

Yes, I did it, but this wasn't a problem :P

Show quoted text 9 lines
All done! We now have the latest Lazarus (trunk) code. You can confirm this by running 'gitk --all' to see all the branch. You are at the yellow dot in the tree - right at the top. And you are equal to 'origin/upstream'. See attached image. OK, seeing that I don't know how to compile lazarus from the command line, I copied my old lazarus binary into our new directory so I can run the Lazarus IDE and compile our new version from there...
$ make clean all
Show quoted text 14 lines
$ cp /opt/lazarus/lazarus . $ ./lazarus --pcp=/tmp/lazarus_tmp_profile I didn't want the new lazarus to screw with my "real" ~/.lazarus profile. As lazarus started up it complained that it couldn't find various packages. This is normal, so I just keep clicking on Ignore. Now I go to "Environment > Options" and set the FPC Source path and click OK. Then I go to "Tools > Configure Build Lazarus" and select the "Advanced Build Options" tab. * I set all the items (radio buttons) to the Build action (middle radio buttons) except for the Examples I set to None.

I tried to follow the wiki instructions, and there, "Set LCL to "clean +build" and everything else to "None" ".

With this instructions, The build finished instantly with an error I don't remember, and can't reproduce now. Now, this, build succesfully the LCL, but I can't get SQLDb and others pacakges.

Selecting all (but not examples) with Build&Clean, seems all goes fine, until linking lazarus, where...:
.
.
Target OS: Linux for x86-64
Compiling lazarus.pp
Linking ../lazarus
/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
/home/glpunzi/git/lazarus/lcl/units/x86_64-linux/qt/qtwidgets.o: In function `SETSELECTEDFILTER':
/home/glpunzi/git/lazarus/lcl/interfaces/qt//qtwidgets.pas:9668: undefined reference to `QFileDialog_selectFilter'
/home/glpunzi/git/lazarus/lcl/units/x86_64-linux/qt/qtwidgets.o: In function `GETFILTERS':
/home/glpunzi/git/lazarus/lcl/interfaces/qt//qtwidgets.pas:9713: undefined reference to `QFileDialog_filters'
lazarus.pp(125,1) Error: Error while linking
lazarus.pp(125,1) Fatal: There were 1 errors compiling module, stopping TMessagesView.CollectLineParts WARNING: 1812 SrcLine=lazarus.pp(125,1) Fatal: There were 1 errors compiling module, stopping TExternalToolList.Run
Exception: /home/glpunzi/git/lazarus/ide/lazarus.pp(125,1) Fatal: There were 1 errors compiling module, stopping

* I make sure "With Packages" is unchecked, because I want a nice small Lazarus IDE to start with and little dependencies.

Then how link for example the packages?

Show quoted text 10 lines
* I set the "Lazarus director" to /tmp/lazarus/ just to make sure the executable ends up inside that directory and not inside the profile directory. * Now I click "build" and wait..... Build was successful. I quit Lazarus IDE and restart it again, which now loaded the new Qt based Lazarus IDE. I confirmed this in the About dialog. See 2nd attached image.

Failed to me before :P

Show quoted text 11 lines
PS: To keep your repository up-to-date you can do the following (there are a few other methods as well, but the following is the easiest). While still inside the 'work' branch, you simply run the following... $ git pull If there was updates available, git would tell you so. If so, you can rebuild your IDE as normal.

Thanks a lot.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20090629/26c68705/attachment-0001.html>

Reply by email

Graeme Geldenhuys
to Giuseppe Luigi Punzi
Giuseppe Luigi Punzi wrote
$ make clean all

Yes, but doesn't that compile the examples as well? I only want the basic IDE compiled. Anyway, I'll clone my cloned git and try the 'make clean all' and see what it builds. I gather in my case (using Linux) it will default to the LCL-GTK2 widgetset. That's good, because I only use the LCL-GTK2 widgetset for the IDE.

I tried to follow the wiki instructions, and there, "Set LCL to "clean+build" and everything else to "None" ".

Which wiki page was that? I found this one by doing a quick search..

http://wiki.lazarus.freepascal.org/Installing_Lazarus

With this instructions, The build finished instantly with an error I don't remember, and can't reproduce now. Now, this, build succesfully the LCL, but I can't get SQLDb and others pacakges.

I normally first try and get a clean/basic IDE compiled, then install whatever packages I require afterwards. I find this works best for me - but it's been a long time since I started with a completely new setup. I just keep upgrading my system and use the previous binary to create the next binary.

Selecting all (but not examples) with Build&Clean, seems all goes fine, until linking lazarus, where...:

OK, but that has nothing to do with Git then. This is normally a sign of a FPC setup problem or you are missing development libraries. They are normally named in the format:
<package>-devel

Can you compile the IDE with the default LCL-GTK2 widgetset? I'm not very up-to-speed with the LCL-Qt widgetset. I've got it working, but never use it.

Also, can you give more information about your system. What OS, distro, version etc...?

> * I make sure "With Packages" is unchecked, because I want a nice small > Lazarus IDE to start with and little dependencies. Then how link for example the packages?

Like I mentioned earlier, I prefer to start with a very basic/clean IDE and then install only the packages I need. For example, I never use the RTTI components which I believe comes default installed in Lazarus IDE. I also never use the design-time SqlDB components, so I don't need them installed either.

As far as I know Felipe uses/developed the LCL-Qt widgetset, so he will probably be the best person to explain how you need to install Qt and get the IDE compiled with it.

Regards,
- Graeme -

_______________________________________________________ fpGUI - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Luiz Americo Pereira Camara
to Giuseppe Luigi Punzi: El lun, 29-06-2009 a las 12:36 +0200, Graeme Geldenhuys escribi?: Git worked like a charm…
Giuseppe Luigi Punzi wrote 7 lines
El lun, 29-06-2009 a las 12:36 +0200, Graeme Geldenhuys escribi?: > Yes, it gets sync'ed every 15 minutes. Please note that the up-to-date > mirror is in the 'upstream' branch and not the 'master' branch. The > master branch contains my own custom changes/fixes to the Lazarus IDE - > but I don't push this to GitHub often. > Git worked like a charm at the first attempt.

Nice to hear that. I plan to switch my Lazarus working copy from SVN to git soon and is good to know that i will have no problems (at least probably).

Thanks Graeme for setting the git repository.

Luiz

Reply by email

zeljko
to Giuseppe Luigi Punzi: Hi Graeme, list... Yes, I did it, but this wasn't a problem :P $ make clean all I tried…
Giuseppe Luigi Punzi wrote 11 lines
function `SETSELECTEDFILTER': /home/glpunzi/git/lazarus/lcl/interfaces/qt//qtwidgets.pas:9668: undefined reference to `QFileDialog_selectFilter' /home/glpunzi/git/lazarus/lcl/units/x86_64-linux/qt/qtwidgets.o: In function `GETFILTERS': /home/glpunzi/git/lazarus/lcl/interfaces/qt//qtwidgets.pas:9713: undefined reference to `QFileDialog_filters' lazarus.pp(125,1) Error: Error while linking lazarus.pp(125,1) Fatal: There were 1 errors compiling module, stopping TMessagesView.CollectLineParts WARNING: 1812 SrcLine=lazarus.pp(125,1) Fatal: There were 1 errors compiling module, stopping

you must add define because you are compiling qt45. -dUSE_QT_45 is missing, that's why linker screams.

zeljko

Reply by email

zeljko
to Giuseppe Luigi Punzi: Hi Graeme, list... Yes, I did it, but this wasn't a problem :P $ make clean all I tried…
Giuseppe Luigi Punzi wrote 20 lines
Target OS: Linux for x86-64 Compiling lazarus.pp Linking ../lazarus /usr/bin/ld: warning: ../link.res contains output sections; did you forget -T? /home/glpunzi/git/lazarus/lcl/units/x86_64-linux/qt/qtwidgets.o: In function `SETSELECTEDFILTER': /home/glpunzi/git/lazarus/lcl/interfaces/qt//qtwidgets.pas:9668: undefined reference to `QFileDialog_selectFilter' /home/glpunzi/git/lazarus/lcl/units/x86_64-linux/qt/qtwidgets.o: In function `GETFILTERS': /home/glpunzi/git/lazarus/lcl/interfaces/qt//qtwidgets.pas:9713: undefined reference to `QFileDialog_filters' lazarus.pp(125,1) Error: Error while linking lazarus.pp(125,1) Fatal: There were 1 errors compiling module, stopping TMessagesView.CollectLineParts WARNING: 1812 SrcLine=lazarus.pp(125,1) Fatal: There were 1 errors compiling module, stopping TExternalToolList.Run Exception: /home/glpunzi/git/lazarus/ide/lazarus.pp(125,1) Fatal: There were 1 errors compiling module, stopping

Sorry, it can be Qt44 also, pls. check what Qt version you have installed, if it's qt44 then -dUSE_QT_44 else if qt45 -dUSE_QT_45, for qt43 nothing is needed, but in such case bindings must be for qt43 !

Reply by email