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 175318 - Installer removes Info.plist and MacOS dir of a previously installed version
Summary: Installer removes Info.plist and MacOS dir of a previously installed version
Status: VERIFIED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: Mac Native (show other bugs)
Version: 6.x
Hardware: Macintosh (x86) Mac OS X
: P2 blocker (vote)
Assignee: Yulia Novozhilova
URL:
Keywords:
: 175674 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-23 17:32 UTC by claudiomassi
Modified: 2009-11-30 06:55 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
First part of log for fx bundle installation of 6.7.1 and 6.8beta: install.log.0 (22.14 KB, application/octet-stream)
2009-10-26 12:53 UTC, claudiomassi
Details
Second part of log for fx bundle installation of 6.7.1 and 6.8beta: install.log.0 (34.00 KB, application/octet-stream)
2009-10-26 12:59 UTC, claudiomassi
Details
Snapshot od NetBeans directory after installation of 6.7.1 and 6.8beta (57.06 KB, image/jpeg)
2009-10-26 14:01 UTC, claudiomassi
Details
part of install log with 6.8b installation (483.77 KB, text/plain)
2009-11-03 11:14 UTC, Lukas Hasik
Details
before pkgutil (130.51 KB, text/plain)
2009-11-03 12:26 UTC, Lukas Hasik
Details
before pkgutil (255 bytes, text/plain)
2009-11-03 12:27 UTC, Lukas Hasik
Details
before pkgutil (4.51 KB, text/plain)
2009-11-03 12:28 UTC, Lukas Hasik
Details
after pkgutil (4.51 KB, text/plain)
2009-11-03 12:31 UTC, Lukas Hasik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description claudiomassi 2009-10-23 17:32:44 UTC
It is documented in Installation Instruction of 6.8 beta that 6.8 can coexists on the same system with previous versions

http://www.netbeans.org/community/releases/68/install.html#upgrading
Upgrading and Coexisting with Previous Versions
NetBeans IDE 5.x, 6.0, 6.1, 6.5 and 6.7 can coexist with NetBeans IDE 6.8 on the same system. 
You do not have to uninstall the previous versions in order to install or run NetBeans IDE 6.8.

This is not true because during installation the Installer of 6.8beta or 6.7.1 removes Info.plist and MacOS dir of the
other version
To reproduce install netbeans-6.7.1-ml-macosx.dmg before or after netbeans-6.8beta-ml-macosx.dmg
Use "Show Package Contents" to verify the lack of Info.plist and MacOS dir

As workaround rename the NetBeans 6.x.app package of the first installation before running the second installer, then
restore to original name. Both version will work fine because they use different userdir (.netbeans/6.7 and
.netbeans/6.8beta)
Comment 1 dlipin 2009-10-23 20:24:19 UTC
Does that happen with 6.7.1 vs daily builds?
http://bits.netbeans.org/netbeans/trunk/nightly/latest/

Michael, could you please verify that it happens on our test Macs ? Thanks.
(if it really happens, please also try installing 6.7.1 and latest daily simultaneously)
Comment 2 dlipin 2009-10-23 20:27:49 UTC
claudiomassi,

please attach /var/log/install.log after you install the second NB version. thanks.
Comment 3 Yulia Novozhilova 2009-10-26 11:47:57 UTC
I can't reproduce the issue.
espb04:/Applications/NetBeans tester$ ls
NetBeans 6.7.1.app      NetBeans 6.8 Beta.app   NetBeans 6.8 M1.app
espb04:/Applications/NetBeans tester$ ls NetBeans\ 6.7.1.app/Contents/
Info.plist      MacOS           Resources
espb04:/Applications/NetBeans tester$ ls NetBeans\ 6.8\ Beta.app/Contents/
Info.plist      MacOS           Resources
espb04:/Applications/NetBeans tester$ ls NetBeans\ 6.8\ M1.app/Contents/
Info.plist      MacOS           Resources

And I can run any of these NetBeans installations.
Comment 4 claudiomassi 2009-10-26 12:53:57 UTC
Created attachment 90077 [details]
First part of log for fx bundle installation of 6.7.1 and 6.8beta: install.log.0
Comment 5 claudiomassi 2009-10-26 12:59:03 UTC
Created attachment 90078 [details]
Second part of log for fx bundle installation of 6.7.1 and 6.8beta: install.log.0
Comment 6 claudiomassi 2009-10-26 14:01:28 UTC
Created attachment 90081 [details]
Snapshot od NetBeans directory after installation of 6.7.1 and 6.8beta
Comment 7 claudiomassi 2009-10-26 14:08:21 UTC
In attachment I provided the /var/log/install.log* and a snapshot of the NetBeans folder of a new test with fx bundle
(netbeans-6.7.1-ml-javafx-macosx.dmg , netbeans-6.8beta-ml-javafx-macosx.dmg)
I can reproduce the problem:

$ ls
NetBeans 6.7.1.app    NetBeans 6.8 Beta.app
$ ls NetBeans\ 6.7.1.app/Contents/
Resources
$ ls NetBeans\ 6.8\ Beta.app/Contents/
Info.plist    MacOS        Resources 
Comment 8 Yulia Novozhilova 2009-10-26 14:11:27 UTC
Well I'll try to reproduce on Mac OS X 10.6.1 as soon as I manage to find one.
Comment 9 claudiomassi 2009-10-26 15:01:31 UTC
A new test on another MBP with 10.5.8 was successfull. 
With an existing complete installation of 6.5.1, I've installed 6.7.1 fx and 6.8 fx.
All of them can start
Only the installations on my 10.6.1 seems to have problems
Comment 10 Yulia Novozhilova 2009-10-26 15:09:47 UTC
Thank you, claudiomassi. So It looks like version-specific problem. Investigation is needed.
Comment 11 dlipin 2009-10-29 15:54:59 UTC
*** Issue 175674 has been marked as a duplicate of this issue. ***
Comment 12 _ ludo 2009-10-30 11:44:09 UTC
P2: lost of data ( nb itself) and severe regression.
Need fix for fcs.
Snow leopard is now default on macs.
Comment 13 Yulia Novozhilova 2009-11-03 10:49:01 UTC
Hello,
Unfortunately I still don't have an access to the Snow Leo. So I need your help to fix the bug.
Could you please, attach here the following files (after second NB installation):
/private/var/db/receipts/org.netbeans.ide.plist 
/private/var/db/receipts/org.netbeans.ide.bom
/Library/Receipts/InstallHistory.plist

Then, please, run in terminal:
> pkgutil --pkg-info org.netbeans.ide
> sudo pkgutil --forget org.netbeans.ide

After that, please make sure that files
/private/var/db/receipts/org.netbeans.ide.plist 
/private/var/db/receipts/org.netbeans.ide.bom
are deleted and attach updated /Library/Receipts/InstallHistory.plist 

Thanks!
Comment 14 Lukas Hasik 2009-11-03 11:13:03 UTC
-able to reproduce with 1, install 6.7.1 full then 2, install 6.8beta fx -> 6.7.1 doesn't work anymore
-able to reproduce with 6.8 beta javase distro too
-OS X 10.6.1
Comment 15 Lukas Hasik 2009-11-03 11:14:02 UTC
Created attachment 90438 [details]
part of install log with 6.8b installation
Comment 16 Yulia Novozhilova 2009-11-03 12:16:12 UTC
lhasik, thanks for the log.
Could you, please, carry out the actions I listed in my previous message and attach files:
/private/var/db/receipts/org.netbeans.ide.plist 
/private/var/db/receipts/org.netbeans.ide.bom
/Library/Receipts/InstallHistory.plist

Thanks
Comment 17 Lukas Hasik 2009-11-03 12:26:16 UTC
Created attachment 90440 [details]
before pkgutil
Comment 18 Lukas Hasik 2009-11-03 12:27:25 UTC
Created attachment 90441 [details]
before pkgutil
Comment 19 Lukas Hasik 2009-11-03 12:28:33 UTC
Created attachment 90442 [details]
before pkgutil
Comment 20 Lukas Hasik 2009-11-03 12:31:56 UTC
Created attachment 90443 [details]
after pkgutil
Comment 21 Lukas Hasik 2009-11-03 12:33:46 UTC
dhcp-eprg06-21-71:share lukas$ pkgutil --pkg-info org.netbeans.ide
package-id: org.netbeans.ide
version: 6.8 Beta
volume: /
location: Applications/NetBeans
install-time: 1257246496
dhcp-eprg06-21-71:share lukas$ sudo pkgutil --forget org.netbeans.ide
Password:
Forgot package 'org.netbeans.ide' on '/'.

dhcp-eprg06-21-71:share lukas$ ls /private/var/db/receipts/ | grep org.netbeans.ide


let me know if you need more info.
Comment 22 Yulia Novozhilova 2009-11-03 13:24:27 UTC
lhasik, thanks a lot!

Could you, please, also do:
> ls -la /Library/Receipts
> ls -la /Library/Receipts/db

Thanks!
Comment 23 Quality Engineering 2009-11-04 10:53:13 UTC
Integrated into 'main-golden', will be available in build *200911040201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/bdf478cd0114
User: Yulia Novozhilova <ynov@netbeans.org>
Log: Fix #175318  Installer removes Info.plist and MacOS dir of a previously installed version
Comment 24 Yulia Novozhilova 2009-11-17 08:43:17 UTC
http://hg.netbeans.org/main/rev/bdf478cd0114
Comment 25 Lukas Hasik 2009-11-30 06:55:44 UTC
verified with RC1