-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inconsistent source.info with p2 director based installations #350
Comments
Lines 47 to 48 in b1698bf
what would be the reason to do this here? this results in the entire bundles in the target to be copied into the source info file (of the installation config) Either there is a different use case that I am not following, or P2 gets confused when invoked in this manner? |
Line 353 in 60e1510
looks like this is the infliction point.
open questions:
|
being unfamiliar with the p2 logic, some guidance would be appreciated here in terms of what is the expected behaviour. This is what I would think is a reasonable behaviour:
|
Before you raised this issue, I had no idea that a sources.info file exists, it's purpose, nor how it's managed. I imagine that the behavior of installing via p2 directory should be the same as installing into the running IDE, i.e., the same as for self updates/installs. While the Eclipse SDK ships that file, when I look in the EPP packages, I see they don't ship that file: Perhaps that's because Tycho invokes the p2 director multiple times for the install="root" features making the incomplete source.info file kind of unless. Unfortunately I don't think the people who designed this thing are around to give guidance. Looking at how |
@gireeshpunathil I have no clue either, maybe you can ask the user that report this about
|
FYI, I did this search: So from this I gather that PDE uses that information too, when available. I see this in a SDK zip: And that looks verify similar to this: So I fully expect the file should list, for each bundle int eh bundles.info for which a corresponding source bundle exists, the corresponding information for that bundle in the source.info. |
while I await user response, here is what it shows in my reproduce:
the first entry is from the builder, and the second entry is from the IU repo. As I am not running any application with this, I am not sure what damage it can cause. However, it is my assertion that the builder's bundle info entering into the target installation does not make sense! because, it will then imply that the installation will depend on the |
It is jsut a guess but it might be PDE needs this for old pre OSGi bundles to find out what are the sources "plugins" while today it uses the Second guess it to find sources from the eclipse install even if another target platform is currently choose... al of this sounds quite fragile and more legacy than useful today. |
from the user:
|
thanks @merks . I am planning to go line by line in the list and see if there is a |
That's quite vague to confess, so checking what this file does (and probably remove/replace) seems a good way forward, I would assume that additional entries can't harm and probably because source bundles are not installed along with the request to modify eclipse, but they can be seen from the repository that installs the binary so they are added as "best effort". |
A user reported that they get source.info file modified in an unexpected manner.
steps to reproduce:
eclipse -noSplash -application org.eclipse.equinox.p2.director -repository https://download.eclipse.org/eclipse/updates/4.29/R-4.29-202309031000/ -installIU org.eclipse.sdk.ide -profile SDKProfile -destination ./target -configuration ./target/configuration -roaming
target/configuration/org.eclipse.equinox.source/source.info
lists the source bundles from both instances: target and the buildereclipse -noSplash -application org.eclipse.equinox.p2.director -repository https://download.eclipse.org/eclipse/updates/4.29/R-4.29-202309031000/ -installIU org.eclipse.swt.tools.feature.feature.group,org.eclipse.swt.tools.feature.source.feature.group -profile SDKProfile -destination ./target -configuration ./target/configuration
source.info
now lists only the plugins from the builder instance.The text was updated successfully, but these errors were encountered: