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

Summary: Debian package generation script doesn't work on MacOSX due clashing environment variable TMPDIR
Product: cnd Reporter: therefromhere <therefromhere>
Component: ProjectAssignee: Thomas Preisler <thp>
Status: RESOLVED FIXED    
Severity: normal Keywords: SIMPLEFIX
Priority: P3    
Version: 6.x   
Hardware: Macintosh (x86)   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

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