Bug 422261 - p2-site generated by PDE-build extracts binary files twice on mac in bundled mode.
Summary: p2-site generated by PDE-build extracts binary files twice on mac in bundled ...
Status: NEW
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 3.8.1   Edit
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-21 10:35 EST by Tobias Bertelsen CLA
Modified: 2022-11-19 20:32 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Bertelsen CLA 2013-11-21 10:35:26 EST
==Setup==
We are building a p2-site with pde-build and using it to install/update our Eclipse-RCP based products. On mac we are using the bundled mode, by having the foldername end with '.app'. This structures the product as a proper mac-application, with everything in one folder that can be drag/dropped into the application directory.


==Problem==
The problem is that inside the specified folder, another .app folder is generated, so the structure looks like this.

MyProduct.app
  ..
  Contents/
    ...
  Plugins/
    ...
  MyProduct.app/
    ...
    Content/
      ...


That extra folder is just garbage. It doesn't even has its executable bit set. The structure should look like:

MyProduct.app
  ..
  Contents/
    ...
  Plugins/
    ...

==Reason==
In the generated context.xml file in the update site, there is an iu responsible for extracting the binary files. It is called something like MyProduct.product_root.cocoa.macosx.x86_64-bundled
It contains two groups of install-instructions

  <instruction key='install'>
    unzip(source:@artifact, target:${installFolder});
  </instruction>

  <instruction key='install'>
    unzip(source:@artifact, target:${installFolder}, path:MyProduct.app); chmod(targetDir:${installFolder}/Contents/MacOS/, targetFile:MyProduct, permissions:755);
  </instruction>

The first one is a bug and should not be there. It is the unzip instruction for the unbundled IU.
Comment 1 Lars Vogel CLA 2018-12-03 09:11:40 EST
Currently we are not actively enhancing PDE build anymore. Therefore, I close this bug as WONTFIX. 

Please reopen, if you plan to provide a fix.
Comment 2 Lars Vogel CLA 2018-12-03 09:12:56 EST
Currently we are not actively enhancing PDE build anymore. Therefore, I close this bug as WONTFIX. 

Please reopen, if you plan to provide a fix.
Comment 3 Eclipse Genie CLA 2020-11-28 13:17:24 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 4 Eclipse Genie CLA 2022-11-19 20:32:10 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.