Creating binary patches for Liferay 7.0.6 GA7 - Problems with portal-kernelCreating binary patches for Liferay 7.0.6 GA7 - Problems with portal-kernelhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1188514632024-03-28T19:16:47Z2024-03-28T19:16:47ZRE: Creating binary patches for Liferay 7.0.6 GA7 - Problems with portal-keDominik Markshttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1194148002020-06-17T06:49:31Z2020-06-17T06:49:31ZTo answer my own question:<br /><br />The exported packages of <em>portal-kernel.jar</em> are <strong>not </strong>defined in the <em>portal-kernel.jar</em> but in the <em>portal-bootstrap.jar</em>. That file defines the exported packages of the bundle 0 (system bundle). That file contains the correct package versions and if I deploy that file too everything works fine.Dominik Marks2020-06-17T06:49:31ZRE: Creating binary patches for Liferay 7.0.6 GA7 - Problems with portal-keDominik Markshttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1188608322020-04-06T16:25:55Z2020-04-06T16:25:55ZSo if I understand you correctly when I deploy a JAR with a MANIFEST.MF which exports 7.42.0 the Gogo shell will report one version less?? Why?Dominik Marks2020-04-06T16:25:55ZRE: Creating binary patches for Liferay 7.0.6 GA7 - Problems with portal-keOlaf Kockhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1188578242020-04-04T20:07:51Z2020-04-04T20:07:51Z<div class="quote-title">Dominik Marks:</div><blockquote><br />The strange thing is that in the above example the packageinfo in the source is version <strong>7.42.0</strong> and the MANIFEST.MF inside the portal-kernel.jar is <strong>7.42.0</strong>, but the Gogo Shell reports <strong>7.41.0</strong>.<br /></blockquote>Still seems like the same issue: The source-bundle versions are one version higher than what's actually delivered in binary code? e.g. the increment was done after build but before packaging the source files. Maybe only partially as you mention 1) packageinfo, 2) Manifest, 3) Gogo Shell.Olaf Kock2020-04-04T20:07:51ZRE: Creating binary patches for Liferay 7.0.6 GA7 - Problems with portal-keDominik Markshttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1188551892020-04-03T10:16:47Z2020-04-03T10:16:47ZThanks Olaf for your answer. However I built everything from source and did not use any binary patches (as there are none available for the CE-Versions).<br />The strange thing is that in the above example the packageinfo in the source is version <strong>7.42.0</strong> and the MANIFEST.MF inside the portal-kernel.jar is <strong>7.42.0</strong>, but the Gogo Shell reports <strong>7.41.0</strong>.Dominik Marks2020-04-03T10:16:47ZRE: Creating binary patches for Liferay 7.0.6 GA7 - Problems with portal-keOlaf Kockhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1188509422020-04-02T16:38:35Z2020-04-02T16:38:35ZCould it be related to <a href="https://issues.liferay.com/browse/LPS-107951">https://issues.liferay.com/browse/LPS-107951 ?</a>Olaf Kock2020-04-02T16:38:35ZCreating binary patches for Liferay 7.0.6 GA7 - Problems with portal-kernelDominik Markshttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1188514622020-04-02T13:46:02Z2020-04-02T13:46:02ZAs discussed in this blog post (<a href="https://liferay.dev/blogs/-/blogs/security-patches-for-liferay-portal-6-2-7-0-and-7-1">https://liferay.dev/blogs/-/blogs/security-patches-for-liferay-portal-6-2-7-0-and-7-1</a>) I am trying to generate binary patches for Liferay 7.0.6 GA7.<br /><br />I was able to build Liferay from source, but now I have a strange problem.<br /><br />I put the generated <span style="color: #212529"><span style="font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace"><span style="font-size: 16px;">portal-kernel.jar </span></span></span>into <span style="color: #212529"><span style="font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace"><span style="font-size: 16px;">tomcat/lib/ext</span></span></span>. The <span style="color: #212529"><span style="font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace"><span style="font-size: 16px;">MANIFEST.MF </span></span></span>in that jar states that this bundle exports <span style="color: #212529"><span style="font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace"><span style="font-size: 16px;">com.liferay.portal.kernel.util </span></span></span>version <span style="color: #212529"><span style="font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace"><span style="font-size: 16px;">7.42.0</span></span></span>. That is the same as in the <span style="color: #212529"><span style="font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace"><span style="font-size: 16px;">packageinfo </span></span></span>in the source in that package. However when I ask what packages that bundle exports in the gogo shell (command "<span style="color: #212529"><span style="font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace"><span style="font-size: 16px;">b 0</span></span></span>") it says that it exports <span style="color: #212529"><span style="font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace"><span style="font-size: 16px;">com.liferay.portal.kernel.util </span></span></span>version <span style="color: #212529"><span style="font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace"><span style="font-size: 16px;">7.41.0 </span></span></span>(that would be the one that was exported before the patches).<br /><br />What does that mean? Are the changes from <span style="color: #212529"><span style="font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace"><span style="font-size: 16px;">portal-kernel.jar </span></span></span>not applied? Why does the gogo shell say that it exports <span style="color: #212529"><span style="font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace"><span style="font-size: 16px;">7.41.0 </span></span></span>? I can't