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.
"Build RMP" worked correctly, but today I deleted /home/vs157455/.netbeans/6.7 and /home/vs157455/.netbeans/6.7. And build fails. Scenario: - Launch IDE on SUSE - Create Wecome project - Set Build|Packaging|Package Type = RPM Package - Build project - Build Package ===> "/usr/bin/gmake" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf gmake[1]: Entering directory `/export/NB/Welcome_1' "/usr/bin/gmake" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/welcome_1 gmake[2]: Entering directory `/export/NB/Welcome_1' gmake[2]: `dist/Debug/GNU-Linux-x86/welcome_1' is up to date. gmake[2]: Leaving directory `/export/NB/Welcome_1' gmake[1]: Leaving directory `/export/NB/Welcome_1' BUILD SUCCESSFUL (total time: 73ms) ++ pwd + TOP=/export/NB/Welcome_1 + CND_PLATFORM=GNU-Linux-x86 + CND_CONF=Debug + CND_DISTDIR=dist + NBTMPDIR=build/Debug/GNU-Linux-x86/tmp-packaging + TMPDIRNAME=tmp-packaging + OUTPUT_PATH=dist/Debug/GNU-Linux-x86/welcome_1 + OUTPUT_BASENAME=welcome_1 + PACKAGE_TOP_DIR=/usr/ + cd /export/NB/Welcome_1 + mkdir -p dist/Debug/GNU-Linux-x86/package + rm -rf build/Debug/GNU-Linux-x86/tmp-packaging + mkdir -p build/Debug/GNU-Linux-x86/tmp-packaging + cd /export/NB/Welcome_1 + makeDirectory build/Debug/GNU-Linux-x86/tmp-packaging//usr/bin + mkdir -p build/Debug/GNU-Linux-x86/tmp-packaging//usr/bin + checkReturnCode + rc=0 + '[' 0 '!=' 0 ']' + '[' '' '!=' '' ']' + copyFileToTmpDir dist/Debug/GNU-Linux-x86/welcome_1 build/Debug/GNU-Linux-x86/tmp-packaging//usr/bin/welcome_1 0755 + cp dist/Debug/GNU-Linux-x86/welcome_1 build/Debug/GNU-Linux-x86/tmp-packaging//usr/bin/welcome_1 + checkReturnCode + rc=0 + '[' 0 '!=' 0 ']' + '[' 0755 '!=' '' ']' + chmod 0755 build/Debug/GNU-Linux-x86/tmp-packaging//usr/bin/welcome_1 + checkReturnCode + rc=0 + '[' 0 '!=' 0 ']' + RPMMACROS=/home/vs157455/.rpmmacros + NBTOPDIR=/home/vs157455/.netbeans/6.8/cnd3/rpms + '[' '!' -f /home/vs157455/.rpmmacros ']' ++ grep _topdir /home/vs157455/.rpmmacros + TOPDIR='%_topdir /home/vs157455/.netbeans/6.7/cnd2/rpms' + '[' '%_topdir /home/vs157455/.netbeans/6.7/cnd2/rpms' == '' ']' + mkdir -p /home/vs157455/.netbeans/6.8/cnd3/rpms/RPMS + cd /export/NB/Welcome_1 + SPEC_FILE=build/Debug/GNU-Linux-x86/tmp-packaging/../welcome_1.spec + rm -f build/Debug/GNU-Linux-x86/tmp-packaging/../welcome_1.spec + cd /export/NB/Welcome_1 + echo BuildRoot: /export/NB/Welcome_1/build/Debug/GNU-Linux-x86/tmp-packaging + echo Summary: Sumary... + echo Name: welcome1 + echo Version: 1.0 + echo Release: 1 + echo Group: Applications/System + echo License: BSD-type + echo %description + echo Description... + echo + echo %files + echo '"//usr/bin/welcome_1"' + echo %dir + cd /export/NB/Welcome_1 + LOG_FILE=build/Debug/GNU-Linux-x86/tmp-packaging/../welcome_1.log + rpmbuild -bb build/Debug/GNU-Linux-x86/tmp-packaging/../welcome_1.spec error: cannot create /home/vs157455/.netbeans/6.7/cnd2/rpms/RPMS/x86_64: No such file or directory error: Could not open /home/vs157455/.netbeans/6.7/cnd2/rpms/RPMS/x86_64/welcome1-1.0-1.x86_64.rpm: No such file or directory cannot create /home/vs157455/.netbeans/6.7/cnd2/rpms/RPMS/x86_64: No such file or directory Could not open /home/vs157455/.netbeans/6.7/cnd2/rpms/RPMS/x86_64/welcome1-1.0-1.x86_64.rpm: No such file or directory + checkReturnCode + rc=1 + '[' 1 '!=' 0 ']' + exit 1 BUILD FAILED (exit value 1, total time: 396ms)
I deleted ~/.rpmmacros file and I can build rpm package correctly. But IDE creates ~/.netbeans/6.8 directory
Fixed: using /tmp instead of ~/.netbeans for tmp files. Please note: building rpms on Ubuntu is very flaky: http://ubuntuforums.org. Debian packages should work fine.
Integrated into 'main-golden', will be available in build *201011200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/f9de839cd982 User: Thomas Preisler <thp@netbeans.org> Log: #186238 - "Build RPM" doesn't work on fresh machine
*** Bug 194029 has been marked as a duplicate of this bug. ***