This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 176967 - Remote build fails if I add a shell script to the build
Summary: Remote build fails if I add a shell script to the build
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 6.x
Hardware: PC Solaris
: P1 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-17 00:59 UTC by Vladimir Kvashin
Modified: 2009-12-03 05:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2009-11-17 00:59:18 UTC
I created a managed project, added a .sh script to it, manually  set execution permissions , added it into .build-pre: makefile target. Everything is ok.

Then  I switched project to remote host.
Build failed with messages:

./prepare.sh
sh: : cannot open
*** Error code 1
dmake: Fatal error: Command failed for target `.build-pre'
Comment 1 Vladimir Kvashin 2009-11-17 01:02:17 UTC
After build falied, I saw that the prepare.sh file is delivered ok, execution permissions are set.

When I build second time, it builds ok.

If I remove correspondent line from timestamps file (nbproject/private/timestamps...), build fails again, but second time runs ok.
Comment 2 Vladimir Kvashin 2009-11-17 05:59:15 UTC
This takes place only in the case SunStudio tool chain is used. With GNU tool chain project builds OK.
Comment 3 Vladimir Kvashin 2009-11-17 09:43:15 UTC
truss says that the difference between GNU and SunStudio make is that when executing sh SunStudio make specifies -ce options, while GNU make calls sh without that options.

Experiment shows that it's -c option that makes rfs fail
Comment 4 Vladimir Kvashin 2009-11-18 15:11:11 UTC
The proposed fix (erroneously attached to another issue)
https://netbeans.org/bugzilla/attachment.cgi?id=91282
Comment 5 Alexander Pepin 2009-11-19 10:46:27 UTC
The bug is critical for SSIDE so it need to be fixed in NB6.8
Comment 7 Quality Engineering 2009-11-20 15:42:13 UTC
Integrated into 'main-golden', will be available in build *200911201401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/1e8c6b7fe0a1
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixing #176967 Remote build fails if I add a shell script to the build: refactoring + minor changes in trace
Comment 8 soldatov 2009-12-03 05:13:24 UTC
Verified in RC2 build 2009-12-02_22-00-34