mcdonnell-john commented on pull request #2211:
URL: https://github.com/apache/netbeans/pull/2211#issuecomment-685128728
Hi @oyarzun @arusinha sorry for the delay, just got snowed under with work
recently and forgot about this :(
I took a look at building the Apache NetBeans installer from this PR in a
similar way to how I did the 12.1 installer earlier today.
Note: I had to move the build/antclasses folder as thats not in the normal
distpreparation folder which we build the installer from. If this PR was to be
approved we would need to look into making sure that folder is moved when the
distpreparation folder is created. @arusinha Do you know where this is done,
or should I ask @ebarboni.
I built this branch on JDK 8, and then I managed to build the installer
using JDK 8 and JDK 11, but while the installer which was built using JDK8
installed NetBeans just fine, the one with JDK11 failed to install, and I got
the following error.
```
2020-09-01 21:38:23+01 Johns-MacBook-Pro package_script_service[8331]:
./postinstall: Complete installation /Applications/NetBeans/Apache NetBeans
00.1.app
2020-09-01 21:38:23+01 Johns-MacBook-Pro package_script_service[8331]:
./postinstall: Result of populate_caches.sh : 0
2020-09-01 21:38:23+01 Johns-MacBook-Pro package_script_service[8331]:
./postinstall:
/tmp/PKInstallSandbox.1lZ4gG/Scripts/org.netbeans.postinstallscripts.K4Du5O/postinstall:
line 46: cd: /Applications/NetBeans/Apache NetBeans 00.1.app: No such file or
directory
2020-09-01 21:38:23+01 Johns-MacBook-Pro package_script_service[8331]:
Responsibility set back to self.
2020-09-01 21:38:23+01 Johns-MacBook-Pro install_monitor[86212]:
Re-included: /Applications, /Library, /System, /bin, /private, /sbin, /usr
2020-09-01 21:38:23+01 Johns-MacBook-Pro installd[620]: PackageKit:
releasing backupd
2020-09-01 21:38:23+01 Johns-MacBook-Pro installd[620]: PackageKit: allow
user idle system sleep
2020-09-01 21:38:23+01 Johns-MacBook-Pro installd[620]: PackageKit: Cleared
responsibility for install from 86206.
2020-09-01 21:38:23+01 Johns-MacBook-Pro installd[620]: PackageKit: Cleared
permissions on Installer.app
2020-09-01 21:38:23+01 Johns-MacBook-Pro installd[620]: PackageKit: Install
Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while
running scripts from the package “Apache NetBeans 00.1.pkg”."
UserInfo={NSFilePath=./postinstall,
NSURL=file://localhost/Volumes/Apache%20NetBeans%2000.1/Apache%20NetBeans%2000.1.pkg#postinstallscripts.pkg,
PKInstallPackageIdentifier=org.netbeans.postinstallscripts,
NSLocalizedDescription=An error occurred while running scripts from the package
“Apache NetBeans 00.1.pkg”.} {
NSFilePath = "./postinstall";
NSLocalizedDescription = "An error occurred while running scripts
from the package \U201cApache NetBeans 00.1.pkg\U201d.";
NSURL =
"file://localhost/Volumes/Apache%20NetBeans%2000.1/Apache%20NetBeans%2000.1.pkg#postinstallscripts.pkg";
PKInstallPackageIdentifier = "org.netbeans.postinstallscripts";
}
2020-09-01 21:38:23+01 Johns-MacBook-Pro installd[620]: PackageKit: Running
idle tasks
2020-09-01 21:38:23+01 Johns-MacBook-Pro Installer[86206]:
install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "An error
occurred while running scripts from the package “Apache NetBeans 00.1.pkg”."
UserInfo={NSFilePath=./postinstall,
NSURL=file://localhost/Volumes/Apache%20NetBeans%2000.1/Apache%20NetBeans%2000.1.pkg#postinstallscripts.pkg,
PKInstallPackageIdentifier=org.netbeans.postinstallscripts,
NSLocalizedDescription=An error occurred while running scripts from the package
“Apache NetBeans 00.1.pkg”.}
2020-09-01 21:38:23+01 Johns-MacBook-Pro installd[620]: PackageKit: Removing
client PKInstallDaemonClient pid=86206, uid=501
(/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer)
2020-09-01 21:38:23+01 Johns-MacBook-Pro installd[620]: PackageKit: Done
with sandbox removals
2020-09-01 21:38:23+01 Johns-MacBook-Pro Installer[86206]: Install failed:
The Installer encountered an error that caused the installation to fail.
Contact the software manufacturer for assistance.
2020-09-01 21:38:23+01 Johns-MacBook-Pro Installer[86206]:
IFDInstallController 2360E80 state = 8
2020-09-01 21:38:23+01 Johns-MacBook-Pro Installer[86206]: Displaying
'Install Failed' UI.
2020-09-01 21:38:23+01 Johns-MacBook-Pro Installer[86206]: 'Install Failed'
UI displayed message:'The Installer encountered an error that caused the
installation to fail. Contact the software manufacturer for assistance.'.
```
I've never looked into this area at all really, @oyarzun or @arusinha does
this ring a bell, could I have done something wrong? I will try to take a
closer look later on in the week if I can.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists