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 45175 - RPM packages should not contain unnecessary files
Summary: RPM packages should not contain unnecessary files
Status: RESOLVED INVALID
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
: 36761 (view as bug list)
Depends on:
Blocks: 32081
  Show dependency tree
 
Reported: 2004-06-18 15:00 UTC by Jaroslav Tulach
Modified: 2005-09-06 19:03 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Layout for the platform (2.48 KB, text/plain)
2004-06-18 15:01 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2004-06-18 15:00:57 UTC
nbexec.exe should be removed. update_tracking/* as
well. jh*.jar should be removed. At least on JDS.
Comment 1 Jaroslav Tulach 2004-06-18 15:01:50 UTC
Created attachment 15834 [details]
Layout for the platform
Comment 2 Jaroslav Tulach 2004-06-23 14:05:40 UTC
*** Issue 36761 has been marked as a duplicate of this issue. ***
Comment 3 Jaroslav Tulach 2004-06-25 08:15:07 UTC
Please update the scripts for building RPMs so the default install
location on JDS is /opt/sun/netbeans. But it would be nice if the
location could be easily customized so other distributions can easily
change it.
Comment 4 rbalada 2005-02-09 13:35:34 UTC
Reassigning to installer module and actual owner.
Comment 5 Martin Krauskopf 2005-02-09 15:53:53 UTC
I think we are not building separated RPM packages for other Linux
distros. So I think we could leave the jh*.jar in the package so our
packages can be used by others distribution as well without need to
download jh*.jar separately. Lowering at least to P3 - everything
works ok.
Comment 6 Jaroslav Tulach 2005-02-10 18:43:46 UTC
If we provide our own javahelp, we will not pass internal Sun release
criteria. This blocks our release, so at least p2.
Comment 7 Martin Krauskopf 2005-02-11 06:53:23 UTC
Fixed in trunk.

Jardo, please take a look at the excluded files. I do not delete
directories (not sure if it is perfect with platform5/modules/ext/ -
it's empty now)

Ecluded files:
 platform5/lib/nbexec.cmd
 platform5/lib/nbexec.exe
 platform5/update_tracking/*
 enterprise1/update_tracking/*
 ide5/update_tracking/*
 nb4.1/update_tracking/*
 platform5/modules/ext/jh-2.0_02.jar
 $MOBILITY/update_tracking/*

Checking in installer/packages/linux/bin/buildnbrpm;
new revision: 1.3; previous revision: 1.2
Comment 8 Jaroslav Tulach 2005-02-11 07:55:58 UTC
Empty modules/ext is ugly, but it cannot hurt anything I am aware of,
but empty update_tracking could cause problems. Autoupdate is very
likely using the directory to decide whether it is possible to install
as global or not (should not be possible with RPMs).

Try to install the RPM, run as root and upgrade via Autoupdate and
check "global" box. If it works, then something is broken. I would try
it myself, but I do not know where to get the RPM.
Comment 9 Martin Krauskopf 2005-02-11 09:09:45 UTC
Ok, I will try it. BTW I deduced to keep update_tracking dirs from
your first comment "update_tracking/* as well". That asterix :) I can
exclude whole dirs as well of course. I thought that modules/ext could
be used for something other than jh*.jar.
You can build RPMs by running buildnbrpm script. I don't know if it is
used by RE yet.
Comment 10 Michal Mocnak 2005-07-12 10:45:17 UTC
I have tested new rpms from cinnabar build 38. There are still the strange files
such as nbexec.exe and so on.
Comment 11 Martin Krauskopf 2005-09-06 14:27:52 UTC
Which is not so critical as original problem -> at least P3. I'll try to get to
it for 5.0.
Comment 12 rbalada 2005-09-06 14:43:11 UTC
Martin, RPMs are not built for 5.0.
Comment 13 Martin Krauskopf 2005-09-06 14:57:55 UTC
Rudolf gave me some information I didn't realize. RPM for 5.0 are not being
builded (yet) and actually cannot be fixed for 4.1, it's frozen.
RPMs for 5.0 will not contain nbexec.
Comment 14 Jesse Glick 2005-09-06 19:03:09 UTC
Rather than excluding nbexec.exe I suggest that the NBM contain the "correct"
contents, and the Auto Update client be the one to quietly skip unpacking this
file. After, all we want

for i in ..../*.nbm; do unzip $i; done; rm -r Info META-INF

to work to make us a build, right?
Comment 15 Jesse Glick 2005-09-06 19:03:53 UTC
Oops, ignore the last comment, thought you were talking about NBMs.