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 179294 - Debian package generation script doesn't work on MacOSX due clashing environment variable TMPDIR
Summary: Debian package generation script doesn't work on MacOSX due clashing environm...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: Macintosh (x86) Mac OS X
: P3 normal (vote)
Assignee: Thomas Preisler
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2010-01-07 11:29 UTC by therefromhere
Modified: 2010-03-24 05:20 UTC (History)
0 users

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 therefromhere 2010-01-07 11:29:56 UTC
The bash Debian Package script generated by C/C++ projects uses a variable called TMPDIR.  This clashes with a standard environment variable on MacOSX ( http://lists.apple.com/archives/darwin-userlevel/2008/Sep/msg00004.html ), also with the variable expected by dpkg-deb.

The result is that package generation fails with the error "failed to make tmpfile (control): No such file or directory"


--------------------
Steps to recreate:
--------------------

On MacOSX 10.6, using dbpg-deb from fink (64 bit build).

1) Create a new C/C++ Application project.
2) In project properties, set Build->Packaging->Package Type = Debian Package
3) From the project context menu, Select Build Package.  You should see the above error message.

-------------
Suggested Fix
-------------
Change the name of the TMPDIR variable in the generated bash script to something else (eg NBTMPDIR).
Comment 1 Thomas Preisler 2010-03-23 00:58:37 UTC
Fixed. Change TMPDIR to NBTMPDIR.
Comment 2 Quality Engineering 2010-03-24 05:20:26 UTC
Integrated into 'main-golden', will be available in build *201003240200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/cd409982e967
User: Thomas Preisler <thp@netbeans.org>
Log: #179294 - Debian package generation script doesn't work on MacOSX due clashing environment variable TMPDIR