Issue 14323 - .NET build needs extra wdevenv program
Summary: .NET build needs extra wdevenv program
Status: CLOSED FIXED
Alias: None
Product: Build Tools
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 Beta2
Hardware: PC Windows 2000
: P3 Trivial (vote)
Target Milestone: OOo 1.1 Beta2
Assignee: oliver.bolte
QA Contact: issues@tools
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-10 10:37 UTC by quetschke
Modified: 2004-04-13 11:49 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Patch for berkeleydb/makefile.mk (680 bytes, patch)
2003-05-11 00:23 UTC, quetschke
no flags Details | Diff
New patchfile for berkeleydb (237.79 KB, text/plain)
2003-05-11 00:24 UTC, quetschke
no flags Details
Another Oops, 4nt doesn't like ; it wants ^. Better would be && but BUILD_ACTION doesn't like it (829 bytes, patch)
2003-05-12 11:21 UTC, quetschke
no flags Details | Diff
Patch for berkeleydb/makefile.mk (2.19 KB, patch)
2003-05-14 19:09 UTC, quetschke
no flags Details | Diff
New patch for berkeleydb (234.54 KB, patch)
2003-05-14 19:11 UTC, quetschke
no flags Details | Diff
Patch for berkeleydb (994 bytes, patch)
2003-05-23 18:27 UTC, quetschke
no flags Details | Diff
Patch for icu (976 bytes, patch)
2003-05-23 18:28 UTC, quetschke
no flags Details | Diff
Fixed patch for icu (918 bytes, patch)
2003-05-23 23:36 UTC, quetschke
no flags Details | Diff
Fixed patch for berkeleydb (994 bytes, patch)
2003-05-26 22:33 UTC, quetschke
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description quetschke 2003-05-10 10:37:44 UTC
To build the projects berkeleydb and icu with .NET an extra plug-in for the
IDE is needed. See:
<http://porting.openoffice.org/servlets/BrowseList?listName=dev&by=thread&from=30906>

I would prefer a more seamless solution.

Question: .NET doesn't change files, it only creates the .sln from the .dsw and
converts the .dsp files into .msproj. Would it be OK to generate these files once
and put a patch into berkeleydb and icu to add them after unpacking the archive?

All you need to do to create them is enter:
  devenv Berkeley_DB.dsw /command SaveAll /command Exit
in the directory with the .dsw, click OK twice and then create the patch.
Comment 1 quetschke 2003-05-10 10:40:11 UTC
set target.

I forgot to mention, after these files are created
  devenv Berkeley_DB.sln /build Release /project db_buildall /useenv
  devenv Berkeley_DB.sln /build Release /project db_java /useenv
works as the msdev commands before.
Comment 2 Martin Hollmichel 2003-05-10 11:48:32 UTC
reassigned to Oliver
Comment 3 quetschke 2003-05-11 00:23:05 UTC
Created attachment 6123 [details]
Patch for berkeleydb/makefile.mk
Comment 4 quetschke 2003-05-11 00:24:39 UTC
Created attachment 6124 [details]
New patchfile for berkeleydb
Comment 5 quetschke 2003-05-11 00:30:43 UTC
The previous patches allow building berkeleydb with .NET and MSVC 6
without wdevenv.

I generated the new db-3.2.9.patch by 

1. changing the wdevenv in makefile.mk to something invalid,
   than build the module. This unpacks and patches the module
   and breaks before compiling.
2. Change the diff -rc in tg_ext.mk to diff -rcN
3. Remove the .orig files from the original patch
4. dmake create_patch

Voila, that's it.

I tested the new patch + makefile.mk with .NET and MSVC 6.
Comment 6 quetschke 2003-05-11 00:40:51 UTC
OOops, I missed step 3.5 ;-)

enter the build_win32 directory and start
  devenv Berkeley_DB.dsw /command SaveAll /command Exit
then go back to the project directory
Comment 7 quetschke 2003-05-12 11:21:55 UTC
Created attachment 6139 [details]
Another Oops, 4nt doesn't like ; it wants ^. Better would be && but BUILD_ACTION doesn't like it
Comment 8 oliver.bolte 2003-05-14 11:57:03 UTC
There is no chance to include this task into RC.
I've changed the target.
Comment 9 quetschke 2003-05-14 19:08:36 UTC
ause told me the correct way to do such a patch, don't change tg_ext.mk,
use ADDITIONAL_FILES, see the new patch for berkeleydb/makefile.mk
and the new generated db-3.2.9.patch

1. dmake patch
2. genrate the new files
3. dmake create_patch.

The new files are following, if there is a chance to get this accepted
I will also create the files/patches for icu, even for RC.
Comment 10 quetschke 2003-05-14 19:09:56 UTC
Created attachment 6202 [details]
Patch for berkeleydb/makefile.mk
Comment 11 quetschke 2003-05-14 19:11:05 UTC
Created attachment 6204 [details]
New patch for berkeleydb
Comment 12 quetschke 2003-05-18 16:27:36 UTC
Hi Oliver, ause,

as OOo 1.1 RC is probably a bit soon for a problem free wdevenv, what
do you think about putting the "build" patches for berkeleydb and icu
into the coming cws_srx644... and getting them into 1.1 RC.
We can even use db-3.2.9.ms_net.patch only for COMEX=8 builds.

This way we get a compilable W32 - .NET version of RC, and 1.1 release.

This would be very good to have to attract a few more windows developers.

And we back out the special .slo patches once wdevenv is released.

Volker
Comment 13 quetschke 2003-05-23 18:26:29 UTC
The following two patches allow to build berkeleydb and icu with .NET
(with 4NT or tcsh) with Olivers new wdevenv. No problems, no delays.

I would like to get both in cws...beta2.
Comment 14 quetschke 2003-05-23 18:27:19 UTC
Created attachment 6357 [details]
Patch for berkeleydb
Comment 15 quetschke 2003-05-23 18:28:04 UTC
Created attachment 6358 [details]
Patch for icu
Comment 16 quetschke 2003-05-23 18:32:32 UTC
Oops, patch wdevenv_icu.diff withdrawn!!!!

wdevenv is only needed for COMEX=8. Sorry, will post a new one.
Comment 17 quetschke 2003-05-23 23:36:17 UTC
Created attachment 6362 [details]
Fixed patch for icu
Comment 18 quetschke 2003-05-24 00:06:29 UTC
Hmm, OK, on my first try wdevenv worked for berkeleydb and icu without
delay.

Now I got:
----
./tools/pkgdata/pkgdata.dsp
./tools/toolutil/toolutil.dsp
Wait....
Timeout
dmake:  Error code 1, while making
'./wntmsci8.pro/misc/build/so_configured_so_icu'
echo: No match.

ERROR: Error 65280 occurred while making /v1/cws_srx644_ooo11beta2cyg/icu
----
And I had a devenv process zombie running afterwards!?

After I removed the zombie it worked again.
Comment 19 oliver.bolte 2003-05-26 09:54:24 UTC
Hi Volker,

I've changed the timeout to 120 sec. . I think this will prevent a
timeout during conversion.

Oliver.
Comment 20 quetschke 2003-05-26 22:33:43 UTC
Created attachment 6453 [details]
Fixed patch for berkeleydb
Comment 21 quetschke 2003-05-26 22:37:26 UTC
I just started a VC 6 build with wdevenv_icu_v2.diff and
wdevenv_berkeleydb.diff, and found an error in my berkeleydb patch.

The new wdevenv_berkeleydb_v2.diff version is hopefully correct.

OK to commit the wdevenv_*_v2.diff paches to cws...beta2 ?
Comment 22 oliver.bolte 2003-05-27 09:12:04 UTC
Ok. We'll use this patches for berkeleydb and icu. These will be added
to oo11beta2.
Comment 23 oliver.bolte 2003-05-27 11:16:49 UTC
Verified and commited.
Comment 24 oliver.bolte 2003-05-27 11:18:07 UTC
.
Comment 25 oliver.bolte 2003-06-04 11:07:54 UTC
.
Comment 26 oliver.bolte 2004-04-13 11:49:42 UTC
*** Issue 27657 has been marked as a duplicate of this issue. ***