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 186238 - "Build RPM" doesn't work on fresh machine
Summary: "Build RPM" doesn't work on fresh machine
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Thomas Preisler
URL:
Keywords:
: 194029 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-17 11:26 UTC by soldatov
Modified: 2011-09-02 13:52 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 soldatov 2010-05-17 11:26:15 UTC
"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)
Comment 1 soldatov 2010-05-17 13:02:29 UTC
I deleted ~/.rpmmacros file and I can build rpm package correctly.
But IDE creates ~/.netbeans/6.8 directory
Comment 2 Thomas Preisler 2010-11-19 02:18:29 UTC
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.
Comment 3 Quality Engineering 2010-11-20 06:12:27 UTC
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
Comment 4 igor_nikiforov 2011-09-02 13:52:05 UTC
*** Bug 194029 has been marked as a duplicate of this bug. ***