Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
slapos
Commits
f268ae55
Commit
f268ae55
authored
Sep 27, 2021
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
java: clean up
parent
87534074
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
41 deletions
+30
-41
component/java-jdk/buildout.cfg
component/java-jdk/buildout.cfg
+8
-11
component/java/buildout.cfg
component/java/buildout.cfg
+22
-30
No files found.
component/java-jdk/buildout.cfg
View file @
f268ae55
...
@@ -9,26 +9,23 @@ parts =
...
@@ -9,26 +9,23 @@ parts =
[java-jdk]
[java-jdk]
recipe =
plone.recipe.comman
d
recipe =
slapos.recipe.buil
d
command = echo "Error: unsupported platform" && false
update =
stop-on-error = true
from zc.buildout import UserError
location =
raise UserError("unsupported platform")
[java-jdk:linux and
bits64
]
[java-jdk:linux and
platform.machine() == 'x86_64'
]
recipe = slapos.recipe.cmmi
recipe = slapos.recipe.cmmi
shared = true
shared = true
url = https://download.java.net/java/GA/jdk12.0.2/e482c34c86bd4bf8b56c0b35558996b9/10/GPL/openjdk-12.0.2_linux-x64_bin.tar.gz
url = https://download.java.net/java/GA/jdk12.0.2/e482c34c86bd4bf8b56c0b35558996b9/10/GPL/openjdk-12.0.2_linux-x64_bin.tar.gz
md5sum = f5da6f4dec81bdd2a096184ec1d69216
md5sum = f5da6f4dec81bdd2a096184ec1d69216
configure-command = :
configure-command = :
make-binary = :
make-binary = :
pre-install =
mkdir -p @@LOCATION@@
cp -r * @@LOCATION@@
post-install =
post-install =
for file in @@LOCATION@@/bin/* ; do
mv * %(location)s
for file in %(location)s/bin/* ; do
echo appending rpath to $file
echo appending rpath to $file
${patchelf:location}/bin/patchelf --set-rpath ${:rpath}
$file
${patchelf:location}/bin/patchelf --set-rpath %(rpath)s
$file
done
done
rpath = ${zlib:location}/lib:@@LOCATION@@/lib
rpath = ${zlib:location}/lib:@@LOCATION@@/lib
location = @@LOCATION@@
component/java/buildout.cfg
View file @
f268ae55
...
@@ -9,42 +9,34 @@ parts =
...
@@ -9,42 +9,34 @@ parts =
[java-re]
[java-re]
<= java-re-7
<= java-re-7
[java-common]
recipe = slapos.recipe.build:download-unpacked
url = http://javadl.sun.com/webapps/download/AutoDL?BundleId=${:bundle-id}
[java-re-7]
[java-re-7]
recipe = slapos.recipe.build
<= java-common
slapos_promisee =
directory:bin
directory:lib
directory:man
directory:plugin
file:lib/rt.jar
file:bin/java
# http://java.com/en/download/manual_java7.jsp
# http://java.com/en/download/manual_java7.jsp
x86 = http://javadl.sun.com/webapps/download/AutoDL?BundleId=97798 90a6b9e2a32d06c18a3f16b485f0d1ea
x86-64 = http://javadl.sun.com/webapps/download/AutoDL?BundleId=97800 7605134662f6c87131eca5745895fe84
[java-re-7:linux and platform.machine() == 'i686']
install =
bundle-id = 97798
url, md5sum = options[guessPlatform()].split()
md5sum = 90a6b9e2a32d06c18a3f16b485f0d1ea
extract_dir = self.extract(self.download(url, md5sum))
workdir = guessworkdir(extract_dir)
[java-re-7:linux and platform.machine() == 'x86_64']
self.copyTree(workdir, location)
bundle-id = 97800
md5sum = 7605134662f6c87131eca5745895fe84
[java-re-8]
[java-re-8]
recipe = slapos.recipe.build
<= java-common
slapos_promisee =
directory:bin
directory:lib
directory:man
directory:plugin
file:lib/rt.jar
file:bin/java
# https://www.java.com/en/download/manual.jsp
# https://www.java.com/en/download/manual.jsp
# Update 161
# Update 161
x86 = http://javadl.oracle.com/webapps/download/AutoDL?BundleId=230530_2f38c3b165be4555a1fa6e98c45e0808 32db95dd417fd7949922206b2a61aa19
x86-64 = http://javadl.oracle.com/webapps/download/AutoDL?BundleId=230532_2f38c3b165be4555a1fa6e98c45e0808 4385bc121b085862be623f4a31e7e0b4
[java-re-8:linux and platform.machine() == 'i686']
install =
bundle-id = 230530_2f38c3b165be4555a1fa6e98c45e0808
url, md5sum = options[guessPlatform()].split()
md5sum = 90a6b9e2a32d06c18a3f16b485f0d1ea
extract_dir = self.extract(self.download(url, md5sum))
workdir = guessworkdir(extract_dir)
[java-re-8:linux and platform.machine() == 'x86_64']
self.copyTree(workdir, location)
bundle-id = 230532_2f38c3b165be4555a1fa6e98c45e0808
md5sum = 4385bc121b085862be623f4a31e7e0b4
[java-re-8-output]
[java-re-8-output]
# Shared binary location to ease migration
# Shared binary location to ease migration
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment