Examine individual changes

From Gentoo Wiki
Abuse Filter navigation (Home | Recent filter changes | Examine past edits | Abuse log)
Jump to:navigation Jump to:search

This page allows you to examine the variables generated by the Abuse Filter for an individual change, and test it against filters.

Variables generated for this change

VariableValue
Edit count of the user (user_editcount)
48
Name of the user account (user_name)
'Aslantis'
Age of the user account (user_age)
18885341
Page ID (page_id)
0
Page namespace (page_namespace)
2
Page title (without namespace) (page_title)
'Aslantis/Cross compiling openjdk'
Full page title (page_prefixedtitle)
'User:Aslantis/Cross compiling openjdk'
Action (action)
'edit'
Edit summary/reason (summary)
''
Old content model (old_content_model)
''
New content model (new_content_model)
'wikitext'
Old page wikitext, before the edit (old_wikitext)
''
New page wikitext, after the edit (new_wikitext)
'{{Important|I really recommend you to read the following pages before proceeding: https://openjdk.org/groups/build/doc/building.html & https://wiki.gentoo.org/wiki/User:Arthurzam/OpenJDK_Bootstrap}} This is a guide to cross compile openjdk to a new architecture or libc. First, make sure your architecture/OS combo is supported by openjdk and by the specific version of openjdk you're building (TODO: more on that). This guide will use openjdk-11 for sparc64/linux as an example. In fact, if you copy this guide verbatim, you should have a working sparc64 build \o/. You can follow this guide on any gentoo install that has easy access to a pre built jdk, but for this example I used a fresh amd64 stage3. == Basic setup == We will be using crossdev to install our cross compilation toolchains. {{Cmd|emerge dev-java/openjdk-bin:11 sys-devel/crossdev|crossdev -S -t sparc64-unknown-linux-gnu|prompt=root #|color=red}} This will install our cross compilation toolchains. Note that when building java normally, you can build with one lower version, but when cross compiling, try to have the build and target versions as close as possible. Next, we clone the source. The most convenient way to get the same source gentoo's ebuilds use (including our patches!) is with the `ebuild` command. {{Cmd|ebuild /var/db/repos/gentoo/dev-java/openjdk/openjdk-11.0.15_p10-r1.ebuild configure|cd /var/tmp/portage/dev-java/openjdk-11.0.15_p10-r1/work/jdk11u-jdk-11.0.15-ga/|prompt=root #|color=red}} TODO: use the proper env vars instead of default path == Starting the build == Like I said in the banner above, read the official documentation on cross compiling. I won't explain what I'm doing here, as you should take a look at that anyways. And remember, for your 'tuple', use the exact same string that you gave to crossdev above ;p {{Cmd|bash configure --openjdk-target=sparc64-unknown-linux-gnu --disable-warnings-as-errors|prompt=root #|color=red}} I also recommend you to read the help page for additional options. For example, you can build a more bare bones JDK if you like. The less code you have to compile, the less chance to run into a build error ;) {{Cmd|bash configure --help|prompt=root #|color=red}} If it fails on configure, figure out why. Crossdev should have installed a full toolchain prefixed by your specified tuple. Try compiling a hello world with it, and see if it runs on the target. Next, we're on to the exciting part! :D {{Cmd|make -j1|prompt=root #|color=red}} == Debugging == Chances are, you are going to run into build failures. These should be minimized using the source provided by ebuild configure: you will be working with a branch that gets backports upstream, in addition to any gentoo specific patches. But regardless, errors happen. Google is your friend. For this example of building openjdk-11 to sparc64, I did need to apply a patch from this bug: https://bugs.openjdk.org/browse/JDK-8230708 {{Cmd|wget https://hg.openjdk.java.net/jdk/jdk/raw-rev/9fba708740d6|prompt=root #|color=red}}'
Unified diff of changes made by edit (edit_diff)
'@@ -1,0 +1,40 @@ +{{Important|I really recommend you to read the following pages before proceeding: https://openjdk.org/groups/build/doc/building.html & https://wiki.gentoo.org/wiki/User:Arthurzam/OpenJDK_Bootstrap}} + +This is a guide to cross compile openjdk to a new architecture or libc. First, make sure your architecture/OS combo is supported by openjdk and by the specific version of openjdk you're building (TODO: more on that). +This guide will use openjdk-11 for sparc64/linux as an example. In fact, if you copy this guide verbatim, you should have a working sparc64 build \o/. +You can follow this guide on any gentoo install that has easy access to a pre built jdk, but for this example I used a fresh amd64 stage3. + +== Basic setup == + +We will be using crossdev to install our cross compilation toolchains. + +{{Cmd|emerge dev-java/openjdk-bin:11 sys-devel/crossdev|crossdev -S -t sparc64-unknown-linux-gnu|prompt=root #|color=red}} + +This will install our cross compilation toolchains. Note that when building java normally, you can build with one lower version, but when cross compiling, try to have the build and target versions as close as possible. + +Next, we clone the source. The most convenient way to get the same source gentoo's ebuilds use (including our patches!) is with the `ebuild` command. + +{{Cmd|ebuild /var/db/repos/gentoo/dev-java/openjdk/openjdk-11.0.15_p10-r1.ebuild configure|cd /var/tmp/portage/dev-java/openjdk-11.0.15_p10-r1/work/jdk11u-jdk-11.0.15-ga/|prompt=root #|color=red}} +TODO: use the proper env vars instead of default path + +== Starting the build == + +Like I said in the banner above, read the official documentation on cross compiling. I won't explain what I'm doing here, as you should take a look at that anyways. And remember, for your 'tuple', use the exact same string that you gave to crossdev above ;p + +{{Cmd|bash configure --openjdk-target=sparc64-unknown-linux-gnu --disable-warnings-as-errors|prompt=root #|color=red}} + +I also recommend you to read the help page for additional options. For example, you can build a more bare bones JDK if you like. The less code you have to compile, the less chance to run into a build error ;) + +{{Cmd|bash configure --help|prompt=root #|color=red}} + +If it fails on configure, figure out why. Crossdev should have installed a full toolchain prefixed by your specified tuple. Try compiling a hello world with it, and see if it runs on the target. + +Next, we're on to the exciting part! :D + +{{Cmd|make -j1|prompt=root #|color=red}} + +== Debugging == + +Chances are, you are going to run into build failures. These should be minimized using the source provided by ebuild configure: you will be working with a branch that gets backports upstream, in addition to any gentoo specific patches. But regardless, errors happen. Google is your friend. For this example of building openjdk-11 to sparc64, I did need to apply a patch from this bug: https://bugs.openjdk.org/browse/JDK-8230708 + +{{Cmd|wget https://hg.openjdk.java.net/jdk/jdk/raw-rev/9fba708740d6|prompt=root #|color=red}} '
Old page size (old_size)
0
Lines added in edit (added_lines)
[ 0 => '{{Important|I really recommend you to read the following pages before proceeding: https://openjdk.org/groups/build/doc/building.html & https://wiki.gentoo.org/wiki/User:Arthurzam/OpenJDK_Bootstrap}}', 1 => '', 2 => 'This is a guide to cross compile openjdk to a new architecture or libc. First, make sure your architecture/OS combo is supported by openjdk and by the specific version of openjdk you're building (TODO: more on that). ', 3 => 'This guide will use openjdk-11 for sparc64/linux as an example. In fact, if you copy this guide verbatim, you should have a working sparc64 build \o/. ', 4 => 'You can follow this guide on any gentoo install that has easy access to a pre built jdk, but for this example I used a fresh amd64 stage3.', 5 => '', 6 => '== Basic setup ==', 7 => '', 8 => 'We will be using crossdev to install our cross compilation toolchains.', 9 => '', 10 => '{{Cmd|emerge dev-java/openjdk-bin:11 sys-devel/crossdev|crossdev -S -t sparc64-unknown-linux-gnu|prompt=root #|color=red}}', 11 => '', 12 => 'This will install our cross compilation toolchains. Note that when building java normally, you can build with one lower version, but when cross compiling, try to have the build and target versions as close as possible. ', 13 => '', 14 => 'Next, we clone the source. The most convenient way to get the same source gentoo's ebuilds use (including our patches!) is with the `ebuild` command. ', 15 => '', 16 => '{{Cmd|ebuild /var/db/repos/gentoo/dev-java/openjdk/openjdk-11.0.15_p10-r1.ebuild configure|cd /var/tmp/portage/dev-java/openjdk-11.0.15_p10-r1/work/jdk11u-jdk-11.0.15-ga/|prompt=root #|color=red}}', 17 => 'TODO: use the proper env vars instead of default path', 18 => '', 19 => '== Starting the build ==', 20 => '', 21 => 'Like I said in the banner above, read the official documentation on cross compiling. I won't explain what I'm doing here, as you should take a look at that anyways. And remember, for your 'tuple', use the exact same string that you gave to crossdev above ;p', 22 => '', 23 => '{{Cmd|bash configure --openjdk-target=sparc64-unknown-linux-gnu --disable-warnings-as-errors|prompt=root #|color=red}}', 24 => '', 25 => 'I also recommend you to read the help page for additional options. For example, you can build a more bare bones JDK if you like. The less code you have to compile, the less chance to run into a build error ;)', 26 => '', 27 => '{{Cmd|bash configure --help|prompt=root #|color=red}}', 28 => '', 29 => 'If it fails on configure, figure out why. Crossdev should have installed a full toolchain prefixed by your specified tuple. Try compiling a hello world with it, and see if it runs on the target. ', 30 => '', 31 => 'Next, we're on to the exciting part! :D', 32 => '', 33 => '{{Cmd|make -j1|prompt=root #|color=red}}', 34 => '', 35 => '== Debugging ==', 36 => '', 37 => 'Chances are, you are going to run into build failures. These should be minimized using the source provided by ebuild configure: you will be working with a branch that gets backports upstream, in addition to any gentoo specific patches. But regardless, errors happen. Google is your friend. For this example of building openjdk-11 to sparc64, I did need to apply a patch from this bug: https://bugs.openjdk.org/browse/JDK-8230708', 38 => '', 39 => '{{Cmd|wget https://hg.openjdk.java.net/jdk/jdk/raw-rev/9fba708740d6|prompt=root #|color=red}}' ]
Lines removed in edit (removed_lines)
[]
New page text, stripped of any markup (new_text)
' ImportantI really recommend you to read the following pages before proceeding: https://openjdk.org/groups/build/doc/building.html & https://wiki.gentoo.org/wiki/User:Arthurzam/OpenJDK_Bootstrap This is a guide to cross compile openjdk to a new architecture or libc. First, make sure your architecture/OS combo is supported by openjdk and by the specific version of openjdk you're building (TODO: more on that). This guide will use openjdk-11 for sparc64/linux as an example. In fact, if you copy this guide verbatim, you should have a working sparc64 build \o/. You can follow this guide on any gentoo install that has easy access to a pre built jdk, but for this example I used a fresh amd64 stage3. Basic setup[edit | edit source] We will be using crossdev to install our cross compilation toolchains. root #emerge dev-java/openjdk-bin:11 sys-devel/crossdevroot #crossdev -S -t sparc64-unknown-linux-gnu This will install our cross compilation toolchains. Note that when building java normally, you can build with one lower version, but when cross compiling, try to have the build and target versions as close as possible. Next, we clone the source. The most convenient way to get the same source gentoo's ebuilds use (including our patches!) is with the `ebuild` command. root #ebuild /var/db/repos/gentoo/dev-java/openjdk/openjdk-11.0.15_p10-r1.ebuild configureroot #cd /var/tmp/portage/dev-java/openjdk-11.0.15_p10-r1/work/jdk11u-jdk-11.0.15-ga/ TODO: use the proper env vars instead of default path Starting the build[edit | edit source] Like I said in the banner above, read the official documentation on cross compiling. I won't explain what I'm doing here, as you should take a look at that anyways. And remember, for your 'tuple', use the exact same string that you gave to crossdev above ;p {{Cmd template error}}Parameter 1 not defined. For correct usage see Cmd template's documentation on the 1 parameter. I also recommend you to read the help page for additional options. For example, you can build a more bare bones JDK if you like. The less code you have to compile, the less chance to run into a build error ;) root #bash configure --help If it fails on configure, figure out why. Crossdev should have installed a full toolchain prefixed by your specified tuple. Try compiling a hello world with it, and see if it runs on the target. Next, we're on to the exciting part! :D root #make -j1 Debugging[edit | edit source] Chances are, you are going to run into build failures. These should be minimized using the source provided by ebuild configure: you will be working with a branch that gets backports upstream, in addition to any gentoo specific patches. But regardless, errors happen. Google is your friend. For this example of building openjdk-11 to sparc64, I did need to apply a patch from this bug: https://bugs.openjdk.org/browse/JDK-8230708 root #wget https://hg.openjdk.java.net/jdk/jdk/raw-rev/9fba708740d6'
Parsed HTML source of the new revision (new_html)
'<div class="mw-parser-output"><div class="alert alert-warning gw-box" style="padding-top: 8px; padding-bottom: 8px;"><strong><i class="fa fa-exclamation-circle"></i> Important</strong><br />I really recommend you to read the following pages before proceeding: <a rel="nofollow" class="external free" href="https://openjdk.org/groups/build/doc/building.html">https://openjdk.org/groups/build/doc/building.html</a> &amp; <a rel="nofollow" class="external free" href="https://wiki.gentoo.org/wiki/User:Arthurzam/OpenJDK_Bootstrap">https://wiki.gentoo.org/wiki/User:Arthurzam/OpenJDK_Bootstrap</a></div> <p>This is a guide to cross compile openjdk to a new architecture or libc. First, make sure your architecture/OS combo is supported by openjdk and by the specific version of openjdk you're building (TODO: more on that). This guide will use openjdk-11 for sparc64/linux as an example. In fact, if you copy this guide verbatim, you should have a working sparc64 build \o/. You can follow this guide on any gentoo install that has easy access to a pre built jdk, but for this example I used a fresh amd64 stage3. </p> <h2><span class="mw-headline" id="Basic_setup">Basic setup</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=User:Aslantis/Cross_compiling_openjdk&amp;veaction=edit&amp;section=1" class="mw-editsection-visualeditor" title="Edit section: Basic setup">edit</a><span class="mw-editsection-divider"> | </span><a href="/index.php?title=User:Aslantis/Cross_compiling_openjdk&amp;action=edit&amp;section=1" title="Edit section: Basic setup">edit source</a><span class="mw-editsection-bracket">]</span></span></h2> <p>We will be using crossdev to install our cross compilation toolchains. </p> <div class="cmd-box"><div><code style="color: red; font-weight: bold;">root #</code><span class="tripleclick-separator"></span><code>emerge dev-java/openjdk-bin:11 sys-devel/crossdev</code></div><div><code style="color: red; font-weight: bold;">root #</code><span class="tripleclick-separator"></span><code>crossdev -S -t sparc64-unknown-linux-gnu</code></div></div> <p>This will install our cross compilation toolchains. Note that when building java normally, you can build with one lower version, but when cross compiling, try to have the build and target versions as close as possible. </p><p>Next, we clone the source. The most convenient way to get the same source gentoo's ebuilds use (including our patches!) is with the `ebuild` command. </p> <div class="cmd-box"><div><code style="color: red; font-weight: bold;">root #</code><span class="tripleclick-separator"></span><code>ebuild /var/db/repos/gentoo/dev-java/openjdk/openjdk-11.0.15_p10-r1.ebuild configure</code></div><div><code style="color: red; font-weight: bold;">root #</code><span class="tripleclick-separator"></span><code>cd /var/tmp/portage/dev-java/openjdk-11.0.15_p10-r1/work/jdk11u-jdk-11.0.15-ga/</code></div></div> <p>TODO: use the proper env vars instead of default path </p> <h2><span class="mw-headline" id="Starting_the_build">Starting the build</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=User:Aslantis/Cross_compiling_openjdk&amp;veaction=edit&amp;section=2" class="mw-editsection-visualeditor" title="Edit section: Starting the build">edit</a><span class="mw-editsection-divider"> | </span><a href="/index.php?title=User:Aslantis/Cross_compiling_openjdk&amp;action=edit&amp;section=2" title="Edit section: Starting the build">edit source</a><span class="mw-editsection-bracket">]</span></span></h2> <p>Like I said in the banner above, read the official documentation on cross compiling. I won't explain what I'm doing here, as you should take a look at that anyways. And remember, for your 'tuple', use the exact same string that you gave to crossdev above ;p </p> <div class="gw-msgbox" style="border: 1px solid #A40000; background-color: #F3F3F3"><div class="gw-msgbox-title" style="background-color: #A40000; color: white">{{Cmd template error}}</div><div class="gw-msgbox-content">Parameter <i>1</i> not defined. For correct usage see <a href="/wiki/Template:Cmd/doc" title="Template:Cmd/doc">Cmd template's documentation on the <code>1</code> parameter</a>.</div></div> <p>I also recommend you to read the help page for additional options. For example, you can build a more bare bones JDK if you like. The less code you have to compile, the less chance to run into a build error&#160;;) </p> <div class="cmd-box"><div><code style="color: red; font-weight: bold;">root #</code><span class="tripleclick-separator"></span><code>bash configure --help</code></div></div> <p>If it fails on configure, figure out why. Crossdev should have installed a full toolchain prefixed by your specified tuple. Try compiling a hello world with it, and see if it runs on the target. </p><p>Next, we're on to the exciting part! :D </p> <div class="cmd-box"><div><code style="color: red; font-weight: bold;">root #</code><span class="tripleclick-separator"></span><code>make -j1</code></div></div> <h2><span class="mw-headline" id="Debugging">Debugging</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=User:Aslantis/Cross_compiling_openjdk&amp;veaction=edit&amp;section=3" class="mw-editsection-visualeditor" title="Edit section: Debugging">edit</a><span class="mw-editsection-divider"> | </span><a href="/index.php?title=User:Aslantis/Cross_compiling_openjdk&amp;action=edit&amp;section=3" title="Edit section: Debugging">edit source</a><span class="mw-editsection-bracket">]</span></span></h2> <p>Chances are, you are going to run into build failures. These should be minimized using the source provided by ebuild configure: you will be working with a branch that gets backports upstream, in addition to any gentoo specific patches. But regardless, errors happen. Google is your friend. For this example of building openjdk-11 to sparc64, I did need to apply a patch from this bug: <a rel="nofollow" class="external free" href="https://bugs.openjdk.org/browse/JDK-8230708">https://bugs.openjdk.org/browse/JDK-8230708</a> </p> <div class="cmd-box"><div><code style="color: red; font-weight: bold;">root #</code><span class="tripleclick-separator"></span><code>wget <a rel="nofollow" class="external free" href="https://hg.openjdk.java.net/jdk/jdk/raw-rev/9fba708740d6">https://hg.openjdk.java.net/jdk/jdk/raw-rev/9fba708740d6</a></code></div></div> '
Unix timestamp of change (timestamp)
1659960439