Re: [platform-dev] Eclipse Platform Build

2023-06-05 Thread Vishnu Sarath
Hi All,

I had to work on this issue and found that the changes in the commit : 
https://github.com/eclipse-platform/eclipse.platform.swt/commit/d8e3f297ffde54412d935db7dde31d276b58b635#diff-874667bd88035dc47251befdad240fb5cf39f7db50597060fe17c2ecb6082de5
 has caused this issue. But this commit seems to be added intentionally making 
the min version of GTK to 3.22. The crash occurs when we are right clicking 
(when trying to show a pop up menu) - getting gtk_menu_popup_at_pointer 
undefined symbol. Since this may not be present in gtk4. Earlier we used to 
have a separate handling if the gtk version was less than 3.22. I tried to add 
the removed native call and changes in Menu.java, Device.java and Shell.java 
and the right click functionality is working fine now.

I had to build the .so files used for gtk.linux locally for this. When I was 
doing that I created the .so using
`eclipse.platform.swt\bundles\org.eclipse.swt\bin\library\build.sh -gtk3 
install` command. The output .so files will be created using GTK3 binding (eg: 
libswt-pi3-gtk-4960r6.so ) and it will not have the .so corresponding to GTK4 
binding (expected as per the documentation).
* But will these .so files work for any platform (when the final product is 
installed) where the GTK version installed is GTK4. I am afraid that it will 
fail at some native calls for GTK4 (as I see we have GTK4 native calls made 
from  different UI java classes).
* When I checked the latest eclipse platform, it also contains only the 
"libswt-pi3-gtk-4960r6.so" (and no libswt-pi4-gtk-4960r6.so) in 
org.eclipse.swt.gtk.linux.x86_64.jar. So I just wanted to confirm during 
eclipse build also we are using -gtk3 and e haven't moved to gtk4 still. Please 
correct me if I am wrong at some point.


Thanks,
Vishnu

From: Vishnu Sarath
Sent: Thursday, June 1, 2023 11:50 AM
To: platform-dev@eclipse.org; mist...@redhat.com
Subject: RE: [platform-dev] Eclipse Platform Build

Thanks @mist...@redhat.com<mailto:mist...@redhat.com> for the detailed mail. I 
was trying out the things mentioned.

Please see the below steps I tried:


  *   Setup a Fedora38 VM.
  *   We suspect this commit 
https://github.com/eclipse-platform/eclipse.platform.swt/commit/d8e3f297ffde54412d935db7dde31d276b58b635#diff-874667bd88035dc47251befdad240fb5cf39f7db50597060fe17c2ecb6082de5
 (which was done to make 3.22 GTK version as minimum), as the cause of the 
crash issue we are seeing (not sure, need to confirm). The crash occurs when we 
are right clicking (when trying to show a pop up menu) - getting 
gtk_menu_popup_at_pointer undefined symbol. Since this may not be present in 
gtk4. Earlier we used to have a separate handling if the gtk version was less 
than 3.22. I tried to add the removed native call and changes in Menu.java. And 
created the .so files with building in Fedora38 VM (Glibc 2.37).
  *   But when I am using this .so files in the product and trying to launch 
the product in SUSE12 SP5, the launch itself is failing. When I tried find the 
root cause (adding some logs) I got the below error:
/home/testuser/Downloads/testProduct/testProduct 
-linux.gtk.x86_64/configuration/org.eclipse.osgi/277/0/.cp/libswt-pi3-gtk-4960r6.so:
 /lib64/libc.so.6: version `GLIBC_2.34' not found (required by /home/ 
testuser/Downloads/ testProduct / testProduct 
-linux.gtk.x86_64/configuration/org.eclipse.osgi/277/0/.cp/libswt-pi3-gtk-4960r6.so)
   It’s expecting Glibc version above 2.34 while the SUSE12 is 
having 2.22 by default.

I am a bit new to this, so could someone please guide me on how to fix this. Is 
this issue because I am using a wrong platform (with higher version of Glibc 
2.37 for building). What is the ideal platform which we are using to generate 
swt .so files for linux gtk.

Thanks,
Vishnu

From: Mickael Istria mailto:mist...@redhat.com>>
Sent: Wednesday, May 24, 2023 1:40 PM
To: Eclipse platform general developers list. 
mailto:platform-dev@eclipse.org>>
Cc: Vinod Appu mailto:vinod.a...@ashling.com>>
Subject: Re: [platform-dev] Eclipse Platform Build

Hi,

Please see https://wiki.eclipse.org/Platform-releng/Platform_Build for 
explanation of how to build the Eclipse Platform and 
https://github.com/eclipse-platform/eclipse.platform.swt/wiki/Devel-GTK-Dev-guide
 for particular GTK stuff.
The version of SWT was bumped by +0.1.0 during last cycle, which means it has 
new APIs and some bundles are probably consuming those new API; so by auditing 
the version, it seems like the combination you wish to achieve (latest platform 
with old SWT) is then not possible.
With the link above and good knowledge of Maven, Tycho and PDE, you may be able 
to hack something to enforce another locally built version of SWT, but overall 
it will be annoying and difficult for questionable value. If you can make a PR 
that fixes https://github.com/eclipse-platform/eclipse.platform/issues/212 
while still working with supported environments, there are chances

Re: [platform-dev] Eclipse Platform Build

2023-06-01 Thread Vishnu Sarath
Thanks @mist...@redhat.com<mailto:mist...@redhat.com> for the detailed mail. I 
was trying out the things mentioned.

Please see the below steps I tried:


  *   Setup a Fedora38 VM.
  *   We suspect this commit 
https://github.com/eclipse-platform/eclipse.platform.swt/commit/d8e3f297ffde54412d935db7dde31d276b58b635#diff-874667bd88035dc47251befdad240fb5cf39f7db50597060fe17c2ecb6082de5
 (which was done to make 3.22 GTK version as minimum), as the cause of the 
crash issue we are seeing (not sure, need to confirm). The crash occurs when we 
are right clicking (when trying to show a pop up menu) - getting 
gtk_menu_popup_at_pointer undefined symbol. Since this may not be present in 
gtk4. Earlier we used to have a separate handling if the gtk version was less 
than 3.22. I tried to add the removed native call and changes in Menu.java. And 
created the .so files with building in Fedora38 VM (Glibc 2.37).
  *   But when I am using this .so files in the product and trying to launch 
the product in SUSE12 SP5, the launch itself is failing. When I tried find the 
root cause (adding some logs) I got the below error:
/home/testuser/Downloads/testProduct/testProduct 
-linux.gtk.x86_64/configuration/org.eclipse.osgi/277/0/.cp/libswt-pi3-gtk-4960r6.so:
 /lib64/libc.so.6: version `GLIBC_2.34' not found (required by /home/ 
testuser/Downloads/ testProduct / testProduct 
-linux.gtk.x86_64/configuration/org.eclipse.osgi/277/0/.cp/libswt-pi3-gtk-4960r6.so)
   It’s expecting Glibc version above 2.34 while the SUSE12 is 
having 2.22 by default.

I am a bit new to this, so could someone please guide me on how to fix this. Is 
this issue because I am using a wrong platform (with higher version of Glibc 
2.37 for building). What is the ideal platform which we are using to generate 
swt .so files for linux gtk.

Thanks,
Vishnu

From: Mickael Istria mailto:mist...@redhat.com>>
Sent: Wednesday, May 24, 2023 1:40 PM
To: Eclipse platform general developers list. 
mailto:platform-dev@eclipse.org>>
Cc: Vinod Appu mailto:vinod.a...@ashling.com>>
Subject: Re: [platform-dev] Eclipse Platform Build

Hi,

Please see https://wiki.eclipse.org/Platform-releng/Platform_Build for 
explanation of how to build the Eclipse Platform and 
https://github.com/eclipse-platform/eclipse.platform.swt/wiki/Devel-GTK-Dev-guide
 for particular GTK stuff.
The version of SWT was bumped by +0.1.0 during last cycle, which means it has 
new APIs and some bundles are probably consuming those new API; so by auditing 
the version, it seems like the combination you wish to achieve (latest platform 
with old SWT) is then not possible.
With the link above and good knowledge of Maven, Tycho and PDE, you may be able 
to hack something to enforce another locally built version of SWT, but overall 
it will be annoying and difficult for questionable value. If you can make a PR 
that fixes https://github.com/eclipse-platform/eclipse.platform/issues/212 
while still working with supported environments, there are chances that it get 
merged and than part of the official build. This is IMO the most profitable 
path forward, although it's not certain it can work.
Note that if you're stuck in an environment that is not supported anymore, you 
may consider alternative distributions of Eclipse IDE, such as Flatpak one; 
with such container-like installations, most libs -including GTK- are supposed 
to be included in a compatible way. https://flathub.org/apps/org.eclipse.Java .
HTH
Mickael
___
platform-dev mailing list
platform-dev@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/platform-dev


Re: [platform-dev] Eclipse Platform Build

2023-06-01 Thread Vishnu Sarath
Thanks @mist...@redhat.com<mailto:mist...@redhat.com> for the detailed mail. I 
was trying out the things mentioned.

Please see the below steps I tried:


  *   Setup a Fedora38 VM.
  *   We suspect this commit 
https://github.com/eclipse-platform/eclipse.platform.swt/commit/d8e3f297ffde54412d935db7dde31d276b58b635#diff-874667bd88035dc47251befdad240fb5cf39f7db50597060fe17c2ecb6082de5
 (which was done to make 3.22 GTK version as minimum), as the cause of the 
crash issue we are seeing (not sure, need to confirm). The crash occurs when we 
are right clicking (when trying to show a pop up menu) - getting 
gtk_menu_popup_at_pointer undefined symbol. Since this may not be present in 
gtk4. Earlier we used to have a separate handling if the gtk version was less 
than 3.22. I tried to add the removed native call and changes in Menu.java. And 
created the .so files with building in Fedora38 VM (Glibc 2.37).
  *   But when I am using this .so files in the product and trying to launch 
the product in SUSE12 SP5, the launch itself is failing. When I tried find the 
root cause (adding some logs) I got the below error:
/home/vishnu/Downloads/RiscFreeSetupv23.2.1/RiscFreeProduct-INTEL-linux.gtk.x86_64/configuration/org.eclipse.osgi/277/0/.cp/libswt-pi3-gtk-4960r6.so:
 /lib64/libc.so.6: version `GLIBC_2.34' not found (required by 
/home/vishnu/Downloads/RiscFreeSetupv23.2.1/RiscFreeProduct-INTEL-linux.gtk.x86_64/configuration/org.eclipse.osgi/277/0/.cp/libswt-pi3-gtk-4960r6.so)
   It’s expecting Glibc version above 2.34 while the SUSE12 is 
having 2.22 by default.

I am a bit new to this, so could someone please guide me on how to fix this. Is 
this issue because I am using a wrong platform (with higher version of Glibc 
2.37 for building). What is the ideal platform which we are using to generate 
swt .so files for linux gtk.

Thanks,
Vishnu

From: Mickael Istria mailto:mist...@redhat.com>>
Sent: Wednesday, May 24, 2023 1:40 PM
To: Eclipse platform general developers list. 
mailto:platform-dev@eclipse.org>>
Cc: Vinod Appu mailto:vinod.a...@ashling.com>>
Subject: Re: [platform-dev] Eclipse Platform Build

Hi,

Please see https://wiki.eclipse.org/Platform-releng/Platform_Build for 
explanation of how to build the Eclipse Platform and 
https://github.com/eclipse-platform/eclipse.platform.swt/wiki/Devel-GTK-Dev-guide
 for particular GTK stuff.
The version of SWT was bumped by +0.1.0 during last cycle, which means it has 
new APIs and some bundles are probably consuming those new API; so by auditing 
the version, it seems like the combination you wish to achieve (latest platform 
with old SWT) is then not possible.
With the link above and good knowledge of Maven, Tycho and PDE, you may be able 
to hack something to enforce another locally built version of SWT, but overall 
it will be annoying and difficult for questionable value. If you can make a PR 
that fixes https://github.com/eclipse-platform/eclipse.platform/issues/212 
while still working with supported environments, there are chances that it get 
merged and than part of the official build. This is IMO the most profitable 
path forward, although it's not certain it can work.
Note that if you're stuck in an environment that is not supported anymore, you 
may consider alternative distributions of Eclipse IDE, such as Flatpak one; 
with such container-like installations, most libs -including GTK- are supposed 
to be included in a compatible way. https://flathub.org/apps/org.eclipse.Java .
HTH
Mickael
___
platform-dev mailing list
platform-dev@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/platform-dev


Re: [platform-dev] Eclipse Platform Build

2023-05-24 Thread Mickael Istria
Hi,

Please see https://wiki.eclipse.org/Platform-releng/Platform_Build for
explanation of how to build the Eclipse Platform and
https://github.com/eclipse-platform/eclipse.platform.swt/wiki/Devel-GTK-Dev-guide
for particular GTK stuff.
The version of SWT was bumped by +0.1.0 during last cycle, which means it
has new APIs and some bundles are probably consuming those new API; so by
auditing the version, it seems like the combination you wish to achieve
(latest platform with old SWT) is then not possible.
With the link above and good knowledge of Maven, Tycho and PDE, you may be
able to hack something to enforce another locally built version of SWT, but
overall it will be annoying and difficult for questionable value. If you
can make a PR that fixes
https://github.com/eclipse-platform/eclipse.platform/issues/212 while still
working with supported environments, there are chances that it get merged
and than part of the official build. This is IMO the most profitable path
forward, although it's not certain it can work.
Note that if you're stuck in an environment that is not supported anymore,
you may consider alternative distributions of Eclipse IDE, such as Flatpak
one; with such container-like installations, most libs -including GTK- are
supposed to be included in a compatible way.
https://flathub.org/apps/org.eclipse.Java .
HTH
Mickael
___
platform-dev mailing list
platform-dev@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/platform-dev


Re: [platform-dev] Eclipse Platform Build

2023-05-24 Thread Christoph Läubrich
I'm not completely sure what type of "reminder" (to whom?) so if you 
have a support-contract with Eclipse/RedHat/... it might be good to use 
the dedicated support channels for that.


General questions about a specific issue are better handled on Github 
issues/discussions if you feel any documentation is unclear there as 
people often respond faster there and you reach a broader audience.


In general you can take a look at

https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/

what will build you a full eclipse ecosystem, this takes quite long, but 
is the best start for beginners, and you can take a look at the 
Jenkinsfiles of a specific project to learn how they are build 
individually, but building SWT (natives) is not a trivial task.


Beside that, eclipse offers old releases "forever" so you can use any of 
these if they work for your older product, but you will likely see 
issues combining "old" and "new" components in eclipse as a whole.


Its not clear if you have a specific patch, if yes you can submit it as 
a PR and then it will result (if merged) in the next integration-build 
repository to consume.


Am 24.05.23 um 09:48 schrieb Vishnu Sarath:

Gentle reminder!

*From:*Vishnu Sarath
*Sent:* Tuesday, May 23, 2023 7:26 PM
*To:* 'platform-dev@eclipse.org' 
*Cc:* Vinod Appu 
*Subject:* Eclipse Platform Build

Hi,

In order to fix the SUSE crash issue : 
https://github.com/eclipse-platform/eclipse.platform/issues/212 
 (which 
is a critical one for us), we are trying to build the 
eclipse.platform.swt and eclipse.platform.swt.binaries locally and add 
to our product (built using maven tycho plugin), rather than getting it 
from the eclipse repo. So could you please help me with proper documents 
to do SWT and platform specific binaries locally?


Basically we are trying to achieve the below thing:

  * Upgrade all the plugins from eclipse platform repo to latest version.
  * But keep swt and org.eclipse.swt.gtk.linux.x86_64 plugins to the one
from eclipse platform 4.23 which is working perfectly in SUSE.

Thanks,

Vishnu


___
platform-dev mailing list
platform-dev@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/platform-dev

___
platform-dev mailing list
platform-dev@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/platform-dev


Re: [platform-dev] Eclipse Platform Build

2023-05-24 Thread S A
Hi,

Does this help?

https://github.com/eclipse-platform/eclipse.platform.swt/wiki/Devel-GTK-Dev-guide

What I do to build the natives of SWT is:

cd .../bundles/org.eclipse.swt/bin/library
make clean
build.sh -gtk3 install

In your case you might want to instead checkout eclipse.platform.swt and
eclipse.platform.swt.binaries at the same tag (tags e.g. look like this:
v4960r6). Whichever SWT version you want to use, there should be a tag,
this tag can be used to checkout the binaries from the
eclipse.platform.swt.binaries repository.

I'm not sure how you would bundle whatever you built or checked out with
Eclipse though, without doing a full platform build (I only know this
option, maybe there are others):

https://wiki.eclipse.org/Platform-releng/Platform_Build

Keep in mind wikis could be outdated.

Best regards,
Simeon

On Wed, 24 May 2023 at 10:49, Vishnu Sarath 
wrote:

> Gentle reminder!
>
>
>
> *From:* Vishnu Sarath
> *Sent:* Tuesday, May 23, 2023 7:26 PM
> *To:* 'platform-dev@eclipse.org' 
> *Cc:* Vinod Appu 
> *Subject:* Eclipse Platform Build
>
>
>
> Hi,
>
>
>
> In order to fix the SUSE crash issue :
> https://github.com/eclipse-platform/eclipse.platform/issues/212 (which is
> a critical one for us), we are trying to build the eclipse.platform.swt and
> eclipse.platform.swt.binaries locally and add to our product (built using
> maven tycho plugin), rather than getting it from the eclipse repo. So could
> you please help me with proper documents to do SWT and platform specific
> binaries locally?
>
>
>
> Basically we are trying to achieve the below thing:
>
>- Upgrade all the plugins from eclipse platform repo to latest version.
>- But keep swt and org.eclipse.swt.gtk.linux.x86_64 plugins to the one
>from eclipse platform 4.23 which is working perfectly in SUSE.
>
>
>
> Thanks,
>
> Vishnu
> ___
> platform-dev mailing list
> platform-dev@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/platform-dev
>
___
platform-dev mailing list
platform-dev@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/platform-dev


Re: [platform-dev] Eclipse Platform Build

2023-05-24 Thread Vishnu Sarath
Gentle reminder!

From: Vishnu Sarath
Sent: Tuesday, May 23, 2023 7:26 PM
To: 'platform-dev@eclipse.org' 
Cc: Vinod Appu 
Subject: Eclipse Platform Build

Hi,

In order to fix the SUSE crash issue : 
https://github.com/eclipse-platform/eclipse.platform/issues/212 (which is a 
critical one for us), we are trying to build the eclipse.platform.swt and 
eclipse.platform.swt.binaries locally and add to our product (built using maven 
tycho plugin), rather than getting it from the eclipse repo. So could you 
please help me with proper documents to do SWT and platform specific binaries 
locally?

Basically we are trying to achieve the below thing:

  *   Upgrade all the plugins from eclipse platform repo to latest version.
  *   But keep swt and org.eclipse.swt.gtk.linux.x86_64 plugins to the one from 
eclipse platform 4.23 which is working perfectly in SUSE.

Thanks,
Vishnu
___
platform-dev mailing list
platform-dev@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/platform-dev


[platform-dev] Eclipse Platform Build

2023-05-23 Thread Vishnu Sarath
Hi,

In order to fix the SUSE crash issue : 
https://github.com/eclipse-platform/eclipse.platform/issues/212 (which is a 
critical one for us), we are trying to build the eclipse.platform.swt and 
eclipse.platform.swt.binaries locally and add to our product (built using maven 
tycho plugin), rather than getting it from the eclipse repo. So could you 
please help me with proper documents to do SWT and platform specific binaries 
locally?

Basically we are trying to achieve the below thing:

  *   Upgrade all the plugins from eclipse platform repo to latest version.
  *   But keep swt and org.eclipse.swt.gtk.linux.x86_64 plugins to the one from 
eclipse platform 4.23 which is working perfectly in SUSE.

Thanks,
Vishnu
___
platform-dev mailing list
platform-dev@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/platform-dev