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.
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'
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.
This takes place only in the case SunStudio tool chain is used. With GNU tool chain project builds OK.
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
The proposed fix (erroneously attached to another issue) https://netbeans.org/bugzilla/attachment.cgi?id=91282
The bug is critical for SSIDE so it need to be fixed in NB6.8
http://hg.netbeans.org/cnd-main/rev/1e8c6b7fe0a1 http://hg.netbeans.org/cnd-main/rev/da2488ce4c93 http://hg.netbeans.org/cnd-main/rev/8a5463729fea
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
Verified in RC2 build 2009-12-02_22-00-34