Our p2 based on installer suffered performance issue when querying IUs from repositories. Though the repositories have a large number of IUs to be queried, but we find the performance of using QL is unacceptable in some special scenarios. I published several different methods to find the expected IUs. Thomas pointed …
Read More about p2 query performanceYesterday I modified an existing c++ application for Windows. And its default build environment is Makefile and MinGW. However I used a newly Windows API that is not included by header files of MinGW. First of all, I copied the constant definition from header file of Windows SDK, and defined the Windows API method as a …
Read More about Create an import library for building application in MinGWThe documentation of PDE has a chapter for this topic. Basically it's simply. Copy the template scripts what you want from templates/headless-build folder under org.eclipse.pde.build plug-in to your build configuration directory that is the folder has build.properties file. However I found the variables listed in …
Read More about Customize PDE buildI did sign the jars via reusing the existing certificate of Windows code signing several months ago. Writing it down for further reference. Whatever your purpose of reusing the existing Windows code certificate, I only document the way from technical perspective. After buying the certificate of Windows code signing …
Read More about Using the certificate of Windows code signing to sign jarsI met that firefox/thunderbird complained another its instance running even if no a running firefox/thunderbird process. Finally let them run again after removing the '.parentlock' file in their default profile. strace utility helps me a lot to find the solution. strace -f -e file firfox
Read More about Unlock the locked profile if firefox/thunderbird crashI implemented the replication tool at the end of 2009, then published it to Eclipse Marketplace in May 2010. However it's not pervasively used due to users have to install that plug-in firstly. I searched a similar request on bugzilla, then I initialized my contribution in the early of this year. Finally it was …
Read More about Eclipse P2's import/export capabilityRecently our installer met a strange bug, it didn't uninstall all legacy bundles after updating to new version. Finally I found it's due to a magic fragment is missing in the profile due to some causes. installBundle(bundle:${artifact}) uninstallBundle(bundle:${artifact}) setStartLevel(startLevel:4); It has …
Read More about Inside P2's profile (2) - the fragment matches all osgi bundlesYou would see some interesting properties at the bottom of eclipse's profile. For example, It attaches a property named 'org.eclipse.equinox.p2.internal.inclusion.rules' with value 'STRICT' on the IU 'org.eclipse.sdk.ide' with version 3.6.1.M20100909-0800. It's a very important property for the p2 engine. It means the …
Read More about Inside P2's profile (1) - inclusion rulesLatest gcc compiler enables the stack overflow protector that is since GLIBC 2.4. So the library or executable is compiled by latest gcc could be loaded or executed in RHEL4 or Solaris 9 that only have GLIBC 2.3. Hence using option '-fno-stack-protector' to compile the library or executable to make sure it could be …
Read More about stack overflow protector