Re: [dev] Build fails with Cygwin 1.7.1

2010-01-12 Thread Hans-Joachim Lankenau - Sun Germany - ham02 - Hamburg

hi!

see http://qa.openoffice.org/issues/show_bug.cgi?id=108254 and cws 
aus112 (http://hg.services.openoffice.org/cws/aus112/).


tschau...

ause

On 01/11/10 15:15, Daniel B. wrote:

Hi,

did anyone on this list manage to complete an OOo build using the new
Cygwin version 1.7.1?

I tried building OOO310m19, which was working for me using Cygwin
1.5.25, and after the update it fails. Looks like no files are copied
to the solver directory which leads to an error while making the
soltools module because the file stlport_vc71.lib could not be found
by the linker. We dug a little deeper and found out that the problem
lies in the deliver.pl script which indeed does not copy any files to
the solver directory because copy_if_newer always returns 0. To make a
long story short the ultimate cause of the problem seems to lie in the
following hack for Cygwin on line 113 of deliver.pl:

if ($^O ne 'cygwin') {  # iz59477 - cygwin needes a dot
. at the end of filenames to disable
  $maybedot = '';   # some .exe transformation magic.
} else {
  $maybedot = '.';
}


The explanation why this hack is there can be found in
http://qa.openoffice.org/issues/show_bug.cgi?id=59477. In short,
appending a dot to the filenames in some cases prevents Cygwin from
erroneously thinking files are there which really aren't (because the
file foo and foo.exe are in some cases treated as the same file by
Cygwin). Sadly, it looks like this hack does no longer work in Cygwin
1.7.x (as has also been noted by tml in the last comment for issue
59477), which I gues means that OOo can't be build with Cygwin 1.7.x
at the moment.
I tried just removing the hack but since the underlying problem in
Cygwin with the .exe transformation magic still exists this doesn't
fix the problem.

So, just a heads up for anyone trying to use the new Cygwin version.
Or maybe someone already has a solution for this?

I will also open a new OOo issue for this problem.


Regards,
Daniel

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org




-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] Build fails with Cygwin 1.7.1

2010-01-12 Thread Daniel B.
Thanks Hans and Tor for your quick help!
I will try to get it to work with these patches.


Regards,
Daniel


On Tue, Jan 12, 2010 at 1:46 PM, Hans-Joachim Lankenau - Sun Germany -
ham02 - Hamburg a...@sun.com wrote:
 hi!

 see http://qa.openoffice.org/issues/show_bug.cgi?id=108254 and cws aus112
 (http://hg.services.openoffice.org/cws/aus112/).

 tschau...

 ause

 On 01/11/10 15:15, Daniel B. wrote:

 Hi,

 did anyone on this list manage to complete an OOo build using the new
 Cygwin version 1.7.1?

 I tried building OOO310m19, which was working for me using Cygwin
 1.5.25, and after the update it fails. Looks like no files are copied
 to the solver directory which leads to an error while making the
 soltools module because the file stlport_vc71.lib could not be found
 by the linker. We dug a little deeper and found out that the problem
 lies in the deliver.pl script which indeed does not copy any files to
 the solver directory because copy_if_newer always returns 0. To make a
 long story short the ultimate cause of the problem seems to lie in the
 following hack for Cygwin on line 113 of deliver.pl:

 if ($^O ne 'cygwin') {              # iz59477 - cygwin needes a dot
 . at the end of filenames to disable
  $maybedot     = '';               # some .exe transformation magic.
 } else {
  $maybedot     = '.';
 }


 The explanation why this hack is there can be found in
 http://qa.openoffice.org/issues/show_bug.cgi?id=59477. In short,
 appending a dot to the filenames in some cases prevents Cygwin from
 erroneously thinking files are there which really aren't (because the
 file foo and foo.exe are in some cases treated as the same file by
 Cygwin). Sadly, it looks like this hack does no longer work in Cygwin
 1.7.x (as has also been noted by tml in the last comment for issue
 59477), which I gues means that OOo can't be build with Cygwin 1.7.x
 at the moment.
 I tried just removing the hack but since the underlying problem in
 Cygwin with the .exe transformation magic still exists this doesn't
 fix the problem.

 So, just a heads up for anyone trying to use the new Cygwin version.
 Or maybe someone already has a solution for this?

 I will also open a new OOo issue for this problem.


 Regards,
 Daniel

 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
 For additional commands, e-mail: dev-h...@openoffice.org



 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
 For additional commands, e-mail: dev-h...@openoffice.org



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] Build fails with Cygwin 1.7.1

2010-01-11 Thread Tor Lillqvist
 Or maybe someone already has a solution for this?

This helped me:
http://cgit.freedesktop.org/ooo-build/ooo-build/tree/patches/dev300/win32-cygwin-1.7.diff
 , and its log 
http://cgit.freedesktop.org/ooo-build/ooo-build/log/patches/dev300/win32-cygwin-1.7.diff
 

I don't run a bleeding edge Cygwin, though, but basically what was bleeding 
edge back in September when I re-constructed my build environment, so it might 
be that less or more changes are needed now.

--tml


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org