Page 1 of 3

zeosdbo from cvs, lazarus and fpc

Posted: 14.12.2005, 20:11
by barko
Hi!

Patch for latest zeosdbo_rework from CVS for lazarus/fpc.

Here is howto:

1. download latest zeosdbo_rework from cvs
2. copy zeosdbo_rework.diff to zeosdbo_rework directory
3. delete files:
- zeosdbo_rework/src/dbc/ZPlainASA7.pas
- zeosdbo_rework/src/dbc/ZPlainASA8.pas
- zeosdbo_rework/src/dbc/ZPlainASA9.pas
- zeosdbo_rework/src/dbc/ZPlainASADriver.pas
4. apply patch with command:
- patch -t -p0 < zeosdbo_rework.diff
5. clean compile zcomponent.lpk and press install button
6. your zeosdbo_rework is ready for use.

lazarus: latest from svn
fpc: 2.1.1 svn (2.0.3 svn) from 09.03.2006 and above

05.01.2006 - New patch file!

zeos_dbo_rework

Posted: 21.12.2005, 15:23
by macaruchi
Hi! Barko
I am trying to do your procedure to fix zeos with Lazarus but I dont find the file zeosdbo_rework.diff
Where I can find it?
TIA

Edwin Quijada

Posted: 21.12.2005, 15:27
by btrewern
If you log in you should be able to download it. It's attached to his post.

Ben

Posted: 22.12.2005, 05:02
by bee
zeosdbo it's not work with fpc 2.0.2, 2.0.3, 2.1.X
Is there any explanation why Zeos unable to work with fpc 2.0.2? It sounds strange to me since 2.0.2 is a fix for 2.0.0.

Posted: 22.12.2005, 05:11
by barko

Posted: 28.12.2005, 23:03
by barko
new patch with $R- (range checking off), now zeos work with all fpc versions... or not... look first post!

Posted: 04.01.2006, 22:50
by jrmarino
Is this 12-28 patch already obsolete? Because I got the latest CVS today, go the zdbc.lpk error, tried to apply the patch, and 4 of the last 5 diffs failed. Only src/Zeos.inc successed in getting patched.

What's the latest on getting around this zdbc.lpk problem?

Posted: 05.01.2006, 04:10
by barko
see first post - this is without patch for Zeos.inc

to zeos devs: can anyone apply this patch to CVS?

Posted: 06.01.2006, 11:40
by jrmarino
I'm sorry, Barko, I'm too new to understand what you said to me.

It sounds like I currently can not install zeos 6.5.1 on FPC 2.0.2. Is that correct?

If so, can someone let me know when I can grab the latest CVS release to fix it?

Posted: 06.01.2006, 11:47
by barko
just grab latest cvs and apply patch now :) - for fpc 2.0.2 edit Zeos.inc and put in last line $R-

Posted: 06.01.2006, 11:50
by jrmarino
thanks! I'll do it when I get back home tonight.

Posted: 06.01.2006, 19:24
by jrmarino
Hi Barko,
I must be doing something wrong. The patch (the very latest) just doesn't apply to the CVS (just pulled). Any ideas as to what I'm doing wrong?

Code: Select all

chaos# patch -t -p0 < zeosdbo_rework.diff
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: packages/lazarus/zcomponent.lpk
|===================================================================
|RCS file: /cvsroot/zeoslib/zeosdbo_rework/packages/lazarus/zcomponent.lpk,v
|retrieving revision 1.5
|diff -U3 -r1.5 zcomponent.lpk
|--- packages/lazarus/zcomponent.lpk    6 Sep 2005 11:15:42 -0000       1.5
|+++ packages/lazarus/zcomponent.lpk    5 Jan 2006 04:14:07 -0000
--------------------------
Patching file packages/lazarus/zcomponent.lpk using Plan A...
Hunk #1 failed at 5.
Hunk #2 failed at 97.
2 out of 2 hunks failed--saving rejects to packages/lazarus/zcomponent.lpk.rej
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: packages/lazarus/zdbc.lpk
|===================================================================
|RCS file: /cvsroot/zeoslib/zeosdbo_rework/packages/lazarus/zdbc.lpk,v
|retrieving revision 1.3
|diff -U3 -r1.3 zdbc.lpk
|--- packages/lazarus/zdbc.lpk  13 Oct 2005 15:31:30 -0000      1.3
|+++ packages/lazarus/zdbc.lpk  5 Jan 2006 04:14:07 -0000
--------------------------
Patching file packages/lazarus/zdbc.lpk using Plan A...
Hunk #1 failed at 22.
Hunk #2 failed at 193.
Hunk #3 failed at 204.
3 out of 3 hunks failed--saving rejects to packages/lazarus/zdbc.lpk.rej
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: packages/lazarus/zplain.lpk
|===================================================================
|RCS file: /cvsroot/zeoslib/zeosdbo_rework/packages/lazarus/zplain.lpk,v
|retrieving revision 1.5
|diff -U3 -r1.5 zplain.lpk
|--- packages/lazarus/zplain.lpk        25 Nov 2005 21:34:09 -0000      1.5
|+++ packages/lazarus/zplain.lpk        5 Jan 2006 04:14:07 -0000
--------------------------
Patching file packages/lazarus/zplain.lpk using Plan A...
Hunk #1 failed at 22.
Hunk #2 failed at 124.
2 out of 2 hunks failed--saving rejects to packages/lazarus/zplain.lpk.rej
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: src/dbc/ZDbcASAUtils.pas
|===================================================================
|RCS file: /cvsroot/zeoslib/zeosdbo_rework/src/dbc/ZDbcASAUtils.pas,v
|retrieving revision 1.1
|diff -U3 -r1.1 ZDbcASAUtils.pas
|--- src/dbc/ZDbcASAUtils.pas   13 Oct 2005 15:33:18 -0000      1.1
|+++ src/dbc/ZDbcASAUtils.pas   5 Jan 2006 04:14:09 -0000
--------------------------
Patching file src/dbc/ZDbcASAUtils.pas using Plan A...
Hunk #1 failed at 1439.
1 out of 1 hunks failed--saving rejects to src/dbc/ZDbcASAUtils.pas.rej

Posted: 07.01.2006, 06:14
by barko
Please, do clean download from CVS (first remove old zeosdbo_rework), then apply patch. it will work. this procedure is tested and it work.

Posted: 07.01.2006, 15:33
by jrmarino
I work with Subversion, this is the first CVS project I've every used. Does the CVS client (CVSTortoise) not get the latest files automatically? I assumed if I "update repository" I automatically get the latest files.

I not, I'm glad my own projects are on subversion, because CVS seems terrible so far.

I'll delete the whole branch and reaquire it, it only takes 10 minutes.

Posted: 07.01.2006, 15:47
by jrmarino
Okay, here's the update.

I removed the entire CVS repository and reinstalled zeros_rework branch. I then applied the patch.

I got the same exact error page that I posted before. I'm not sure why this isn't working for me, because I'm following all the instructions