Issue 42418 - build crashed on the odk/examples/CLI/C# with non-interactive build
Summary: build crashed on the odk/examples/CLI/C# with non-interactive build
Status: CLOSED DUPLICATE of issue 43561
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: 680m76
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: jsc
QA Contact: issues@porting
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-10 11:54 UTC by pmladek
Modified: 2005-03-17 15:08 UTC (History)
1 user (show)

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


Attachments
Temporary hack to fix build using a non-interactice shell. It is taken from src680_m74. (613 bytes, patch)
2005-02-10 11:56 UTC, pmladek
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description pmladek 2005-02-10 11:54:48 UTC
My build of src680_m76 eneded with the following error:

--- cut ---
rm -f
../../unxlngi4.pro/bin/odk680/examples/CLI/C#/Spreadsheet/GeneralTableSample.cs
>& /dev/null
tr -d "\015" < ../../examples/CLI/C#/Spreadsheet/GeneralTableSample.cs >
../../unxlngi4.pro/bin/odk680/examples/CLI/C#/Spreadsheet/GeneralTableSample.cs
../../examples/CLI/C: No such file or directory.
dmake:  Error code 1, while making '../../unxlngi4.pro/bin/odk680/examples/CLI/C
#/Spreadsheet/GeneralTableSample.cs'
--- cut ---


I am building OOo in a chrooted environment using the shell in a non-interactive
mode (without tty input), so the hash character '#' is taken as comment. The
following note is taken from the csh man page:

--- cut ---
       When the shell's input is not a terminal, the character `#' is taken to
       begin  a  comment.  Each `#' and the rest of the input line on which it
       appears is discarded before further parsing.
--- cut ----

I didn't catch this problem before because this subdirectory was not build on
680_m74 or earlier versions.

I'll attach a patch which disables the build again.

It would suggest to avoid '#' in the directory name as the best solution.

Another possibility would be to add a right number of backshales '\' before the
hash '#' in the related odk/examples/CLI/makefile.mk.
Comment 1 pmladek 2005-02-10 11:56:47 UTC
Created attachment 22415 [details]
Temporary hack to fix build using a non-interactice shell. It is taken from src680_m74.
Comment 2 foskey 2005-02-28 12:54:04 UTC
rebuilding this after crash and I found this:

/data2/office/odk/pack/copying
cd ../../unxlngi4.pro/bin/odk680/classes && zip -u -r
../../../bin/uno_loader_classes com/* win/*
dmake:  error: code 12, while making '../../unxlngi4.pro/bin/uno_loader_classes.zip'
'---* RULES.MK *---'

ERROR: Error 65280 occurred while making /data2/office/odk/pack/copying


Zip fails with 12 when there is nothing to do...
Comment 3 foskey 2005-02-28 13:15:42 UTC
Can we have a simple solution by renaming C# to csharp

I tried modifying the makefile with c\\\#  and this worked but... the directory
in unxlngi4.pro is c\# breaking the test :-(
Comment 4 Martin Hollmichel 2005-03-09 10:28:07 UTC
reassign
Comment 5 pmladek 2005-03-09 11:08:58 UTC
It sees that the problem was already solved as the issue #43561 and the fix is
included in sdkbugfix02.
Comment 6 jsc 2005-03-09 12:21:50 UTC
duplicate to i43561

*** This issue has been marked as a duplicate of 43561 ***
Comment 7 jsc 2005-03-17 15:08:04 UTC
closed