zeosdbo from cvs, lazarus and fpc

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

barko
Senior Boarder
Senior Boarder
Posts: 51
Joined: 07.09.2005, 13:13

zeosdbo from cvs, lazarus and fpc

Post 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!
You do not have the required permissions to view the files attached to this post.
Last edited by barko on 09.03.2006, 12:12, edited 8 times in total.
macaruchi
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 21.12.2005, 15:17

zeos_dbo_rework

Post 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
btrewern
Expert Boarder
Expert Boarder
Posts: 193
Joined: 06.10.2005, 18:51

Post by btrewern »

If you log in you should be able to download it. It's attached to his post.

Ben
bee
Fresh Boarder
Fresh Boarder
Posts: 21
Joined: 04.10.2005, 04:58

Post 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.
barko
Senior Boarder
Senior Boarder
Posts: 51
Joined: 07.09.2005, 13:13

Post by barko »

Last edited by barko on 28.12.2005, 23:05, edited 1 time in total.
barko
Senior Boarder
Senior Boarder
Posts: 51
Joined: 07.09.2005, 13:13

Post by barko »

new patch with $R- (range checking off), now zeos work with all fpc versions... or not... look first post!
jrmarino
Fresh Boarder
Fresh Boarder
Posts: 19
Joined: 04.01.2006, 22:37

Post 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?
barko
Senior Boarder
Senior Boarder
Posts: 51
Joined: 07.09.2005, 13:13

Post by barko »

see first post - this is without patch for Zeos.inc

to zeos devs: can anyone apply this patch to CVS?
jrmarino
Fresh Boarder
Fresh Boarder
Posts: 19
Joined: 04.01.2006, 22:37

Post 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?
barko
Senior Boarder
Senior Boarder
Posts: 51
Joined: 07.09.2005, 13:13

Post by barko »

just grab latest cvs and apply patch now :) - for fpc 2.0.2 edit Zeos.inc and put in last line $R-
jrmarino
Fresh Boarder
Fresh Boarder
Posts: 19
Joined: 04.01.2006, 22:37

Post by jrmarino »

thanks! I'll do it when I get back home tonight.
jrmarino
Fresh Boarder
Fresh Boarder
Posts: 19
Joined: 04.01.2006, 22:37

Post 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
barko
Senior Boarder
Senior Boarder
Posts: 51
Joined: 07.09.2005, 13:13

Post 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.
jrmarino
Fresh Boarder
Fresh Boarder
Posts: 19
Joined: 04.01.2006, 22:37

Post 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.
jrmarino
Fresh Boarder
Fresh Boarder
Posts: 19
Joined: 04.01.2006, 22:37

Post 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
Post Reply