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
Nirina Malard
slapos
Commits
154d9f23
Commit
154d9f23
authored
Oct 01, 2021
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Plain Diff
Update Release Candidate
parents
a7673277
e5f9dee1
Changes
44
Show whitespace changes
Inline
Side-by-side
Showing
44 changed files
with
159 additions
and
246 deletions
+159
-246
component/apache/buildout.cfg
component/apache/buildout.cfg
+2
-2
component/cclient/buildout.cfg
component/cclient/buildout.cfg
+5
-3
component/cclient/imap-2007f.patch
component/cclient/imap-2007f.patch
+16
-30
component/fonts/buildout.cfg
component/fonts/buildout.cfg
+13
-27
component/geoip2/buildout.cfg
component/geoip2/buildout.cfg
+1
-0
component/ghostscript/buildout.cfg
component/ghostscript/buildout.cfg
+2
-2
component/java-jdk/buildout.cfg
component/java-jdk/buildout.cfg
+8
-11
component/java/buildout.cfg
component/java/buildout.cfg
+22
-30
component/java/jdk-6u27-no-user-interaction.patch
component/java/jdk-6u27-no-user-interaction.patch
+0
-20
component/nginx/buildout.cfg
component/nginx/buildout.cfg
+6
-27
component/noVNC/buildout.cfg
component/noVNC/buildout.cfg
+1
-0
component/perl-DBD-MySQL/buildout.cfg
component/perl-DBD-MySQL/buildout.cfg
+1
-8
component/qemu-kvm/buildout.cfg
component/qemu-kvm/buildout.cfg
+16
-8
component/rpm2cpio/buildout.cfg
component/rpm2cpio/buildout.cfg
+1
-0
component/tomcat/buildout.cfg
component/tomcat/buildout.cfg
+2
-2
component/unstable/mysql-5.1/buildout.cfg
component/unstable/mysql-5.1/buildout.cfg
+0
-0
component/unstable/mysql-5.1/mysql-5.1-sphinx-2.0.1-beta.diff
...onent/unstable/mysql-5.1/mysql-5.1-sphinx-2.0.1-beta.diff
+0
-0
component/unstable/mysql-5.1/mysql_create_system_tables__no_test.patch
...table/mysql-5.1/mysql_create_system_tables__no_test.patch
+0
-0
component/unstable/mysql-tritonn-5.0/buildout.cfg
component/unstable/mysql-tritonn-5.0/buildout.cfg
+0
-0
component/unstable/mysql-tritonn-5.0/mysql-5.0.87-sphinx-1.10.diff
.../unstable/mysql-tritonn-5.0/mysql-5.0.87-sphinx-1.10.diff
+0
-0
component/unstable/xtrabackup/buildout.cfg
component/unstable/xtrabackup/buildout.cfg
+0
-0
component/unstable/xtrabackup/xtrabackup-1.6.2_build.patch
component/unstable/xtrabackup/xtrabackup-1.6.2_build.patch
+0
-0
component/unstable/xtrabackup/xtrabackup-allow_force_ibbackup.patch
...unstable/xtrabackup/xtrabackup-allow_force_ibbackup.patch
+0
-0
component/vm-img/debian.cfg
component/vm-img/debian.cfg
+4
-2
component/yarn/buildout.cfg
component/yarn/buildout.cfg
+1
-0
software/erp5testnode/buildout.hash.cfg
software/erp5testnode/buildout.hash.cfg
+1
-1
software/erp5testnode/instance.cfg
software/erp5testnode/instance.cfg
+1
-1
software/kvm/buildout.hash.cfg
software/kvm/buildout.hash.cfg
+1
-1
software/kvm/instance.cfg.in
software/kvm/instance.cfg.in
+1
-1
software/kvm/software.cfg
software/kvm/software.cfg
+2
-0
software/kvm/test/test.py
software/kvm/test/test.py
+37
-50
software/neoppod/stress-testing/runTestSuite.in
software/neoppod/stress-testing/runTestSuite.in
+3
-2
software/neoppod/stress-testing/software.cfg
software/neoppod/stress-testing/software.cfg
+1
-2
software/neoppod/stress-testing/stress.cfg
software/neoppod/stress-testing/stress.cfg
+0
-3
software/theia/software.cfg
software/theia/software.cfg
+1
-0
software/theia/test/dummy/software.cfg
software/theia/test/dummy/software.cfg
+4
-3
software/unstable/mysql-5.1/instance.cfg
software/unstable/mysql-5.1/instance.cfg
+0
-0
software/unstable/mysql-5.1/software.cfg
software/unstable/mysql-5.1/software.cfg
+0
-0
stack/caucase/buildout.hash.cfg
stack/caucase/buildout.hash.cfg
+1
-1
stack/caucase/caucase.jinja2.library
stack/caucase/caucase.jinja2.library
+1
-1
stack/resilient/buildout.hash.cfg
stack/resilient/buildout.hash.cfg
+1
-1
stack/resilient/template-replicated.cfg.in
stack/resilient/template-replicated.cfg.in
+1
-5
stack/slapos.cfg
stack/slapos.cfg
+2
-2
stack/unstable/tomcat.cfg
stack/unstable/tomcat.cfg
+0
-0
No files found.
component/apache/buildout.cfg
View file @
154d9f23
...
...
@@ -39,9 +39,9 @@ configure-options =
[apache]
recipe = slapos.recipe.cmmi
shared = true
version = 2.4.4
6
version = 2.4.4
9
url = https://archive.apache.org/dist/httpd/httpd-${:version}.tar.bz2
md5sum =
7d661ea5e736dac5e2761d9f49fe8361
md5sum =
f294efbeabcf6027fccc7983a6daa55f
configure-options = --disable-static
--enable-authn-alias
--enable-bucketeer
...
...
component/cclient/buildout.cfg
View file @
154d9f23
...
...
@@ -10,7 +10,9 @@ parts =
[cclient]
recipe = slapos.recipe.cmmi
url = ftp://ftp.cac.washington.edu/imap/imap-2007f.tar.gz
#url = ftp://ftp.cac.washington.edu/imap/imap-2007f.tar.gz
url = https://src.fedoraproject.org/lookaside/pkgs/uw-imap/${:filename}/${:md5sum}/${:filename}
filename = imap-2007f.tar.gz
md5sum = 2126fd125ea26b73b20f01fcd5940369
configure-command = true
# cclient does not support parallel compilation
...
...
@@ -23,11 +25,11 @@ make-options =
SSLLIB=${openssl:location}/lib
EXTRACFLAGS=-fPIC
EXTRALDFLAGS="-Wl,-rpath -Wl,${openssl:location}/lib"
CCLIENT=${buildout:parts-directory}
PREFIX=%(location)s
-j1
patches =
${:_profile_base_location_}/imap-2007f.patch#
42c77fdd5d7a976fc302b93aadb3da98
${:_profile_base_location_}/imap-2007f.patch#
5d1f2f95472f6be465ef7e152a011100
${:_profile_base_location_}/imap-2007f-openssl-1.1.patch#c726354e888f2f3b3954e334903cef80
patch-options = -p1
component/cclient/imap-2007f.patch
View file @
154d9f23
--- old/Makefile 2011-09-22 13:19:53.000000000 +0100
+++ new/Makefile 2011-11-09 15:02:54.038306922 +0100
@@ -280,7 +280,11 @@
diff -u old/Makefile new/Makefile
--- old/Makefile
+++ new/Makefile
@@ -280,6 +280,7 @@
SYSTEM=unix
TOOLS=tools
TOUCH=touch
-
+IMAPDIR=$(CCLIENT)/cclient
+COMPILEDIR = $(CCLIENT)/cclient__compile__/imap-2007f
+CP=cp -r
+INSTALL=install
+FOR=for
# Primary build command
@@ -580,7 +584,6 @@
# Primary build command
@@ -580,7 +581,6 @@
@echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@echo
@echo Do you want to continue this build anyway? Type y or n please:
...
...
@@ -21,36 +17,26 @@
nounenc:
@echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@@ -639,7 +6
42,7
@@
@@ -639,7 +6
39,6
@@
@echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@echo
@echo Do you want to build with IPv6 anyway? Type y or n please:
- @$(SH) -c 'read x; case "$$x" in y) exit 0;; *) (make noip6;exit 1);; esac'
+ #@$(SH) -c 'read x; case "$$x" in y) exit 0;; *) (make noip6;exit 1);; esac'
@echo OK, I will remember that you really want to build with IPv6.
@echo You will not see this message again.
@$(TOUCH) ip6
@@ -731,6 +73
4,24
@@
@@ -731,6 +73
0,15
@@
$(SH) -c '$(RM) an ua OSTYPE SPECIALS c-client mtest imapd ipopd mailutil mlock dmail tmail || true'
$(CD) tools;$(MAKE) clean
+install:
+ $(INSTALL) -v -d $(IMAPDIR)/include
+ $(INSTALL) -v -d $(IMAPDIR)/lib
+ $(INSTALL) -v -m 644 $(COMPILEDIR)/c-client/*.h $(IMAPDIR)/include
+ $(INSTALL) -v -m 644 $(COMPILEDIR)/c-client/c-client.a $(IMAPDIR)/lib
+ $(CP) $(COMPILEDIR)/ipopd $(COMPILEDIR)/mailutil $(COMPILEDIR)/imapd \
+ $(COMPILEDIR)/dmail $(COMPILEDIR)/mlock $(COMPILEDIR)/mtest $(COMPILEDIR)/tmail $(IMAPDIR)
+ $(RM) $(IMAPDIR)/ipopd/*.h $(IMAPDIR)/ipopd/*.c $(IMAPDIR)/ipopd/Makefile;
+ $(RM) $(IMAPDIR)/mailutil/*.h $(IMAPDIR)/mailutil/*.c $(IMAPDIR)/mailutil/Makefile;
+ $(RM) $(IMAPDIR)/imapd/*.h $(IMAPDIR)/imapd/*.c $(IMAPDIR)/imapd/Makefile;
+ $(RM) $(IMAPDIR)/tmail/*.h $(IMAPDIR)/tmail/*.c $(IMAPDIR)/tmail/Makefile;
+ $(RM) $(IMAPDIR)/mlock/*.h $(IMAPDIR)/mlock/*.c $(IMAPDIR)/mlock/Makefile;
+ $(RM) $(IMAPDIR)/mtest/*.h $(IMAPDIR)/mtest/*.c $(IMAPDIR)/mtest/Makefile;
+ $(RM) $(IMAPDIR)/dmail/*.h $(IMAPDIR)/dmail/*.c $(IMAPDIR)/dmail/Makefile;
+ $(INSTALL) -v -m 644 $(COMPILEDIR)/ip6 $(IMAPDIR)
+ $(INSTALL) -v -m 644 $(COMPILEDIR)/OSTYPE $(IMAPDIR)
+ $(INSTALL) -v -m 644 $(COMPILEDIR)/SPECIALS $(IMAPDIR)
+ $(INSTALL) -v -d $(PREFIX)/bin $(PREFIX)/include $(PREFIX)/lib
+ $(INSTALL) -v c-client/*.h $(PREFIX)/include
+ $(INSTALL) -v c-client/c-client.a $(PREFIX)/lib
+ for x in ipopd mailutil imapd dmail mlock mtest tmail; \
+ do for x in $$x/*; do [ ! -x $$x ] || echo $$x; done; \
+ done |xargs $(INSTALL) -v -t $(PREFIX)/bin
+ $(INSTALL) -v -t $(PREFIX) ip6 OSTYPE SPECIALS
+
# A monument to a hack of long ago and far away...
...
...
component/fonts/buildout.cfg
View file @
154d9f23
...
...
@@ -13,16 +13,8 @@ parts =
[fonts-base]
# XXX download and unpack, with shared parts support
# we could make slapos.recipe.build:download-unpacked really support shared
# parts and use it here. Current version of slapos.recipe.build ( 0.44 ) looks
# for buildout:shared-parts , but this is not what shared parts are using.
recipe = slapos.recipe.cmmi
recipe = slapos.recipe.build:download-unpacked
shared = true
configure-command = :
make-binary = :
post-install = cp -ra . ${:location}
location = @@LOCATION@@
environment =
PATH=${xz-utils:location}/bin:%(PATH)s
...
...
@@ -73,31 +65,25 @@ md5sum = b25e165c3fb984bbf6d847adfbd9d694
<= fonts-base
url = https://download.jetbrains.com/fonts/JetBrainsMono-2.001.zip
md5sum = 62f02985bfef43a27dbdd17641fec210
# Workaround download strip autodetection bug
strip-top-level-dir = false
# Microsoft's TrueType core fonts
# non-free so not enabled by default
[msttcore-fonts]
location = ${buildout:parts-directory}/${:_buildout_section_name_}
recipe = slapos.recipe.build
shared = true
p7z = ${p7zip:location}/bin/7z
install =
import os, subprocess
from zc.buildout.download import Download
d = location
fonts = []
download = lambda x, dl=Download(self.buildout['buildout']): (
dl("http://downloads.sf.net/corefonts/%s32.exe" % name, md5sum=md5sum)
for md5sum, name in (x.split() for x in x.splitlines() if x))
extract = lambda x, d=d, p7z="${p7zip:location}/bin/7z": any(
subprocess.check_call((p7z, "x", "-ssc-", path, "*.ttf"), cwd=d)
for path, is_temp in x)
try:
fonts += download(options['fonts'])
os.makedirs(d)
extract(fonts)
finally:
for path, is_temp in fonts:
if is_temp:
os.remove(path)
os.makedirs(location)
cmd = [options['p7z'], "x", "-ssc-", None, "*.ttf"]
for x in options['fonts'].splitlines():
md5sum, name = x.split()
cmd[3] = self.download(
"http://downloads.sf.net/corefonts/%s32.exe" % name,
md5sum)
subprocess.check_call(cmd, cwd=location)
slapos_promise =
slapos_update_promise = ${:slapos_promise}
fonts =
...
...
component/geoip2/buildout.cfg
View file @
154d9f23
...
...
@@ -16,6 +16,7 @@ rpath = ${:library-dirs}
[geolite2-country]
recipe = slapos.recipe.build:download-unpacked
shared = true
url = http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz#${:md5sum}
md5sum = dc6224c648350d90f344a0c5c3ca5474
strip-top-level-dir = true
...
...
component/ghostscript/buildout.cfg
View file @
154d9f23
...
...
@@ -14,8 +14,8 @@ parts = ghostscript
[ghostscript]
recipe = slapos.recipe.cmmi
shared = true
url = https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs95
40/ghostscript-9.54.0.tar.g
z
md5sum =
5d571792a8eb826c9f618fb69918d9f
c
url = https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs95
50/ghostscript-9.55.0.tar.x
z
md5sum =
92aa46e75c4f32eb11d9c975053d876
c
pkg_config_depends = ${libtiff:location}/lib/pkgconfig:${libjpeg:location}/lib/pkgconfig:${fontconfig:location}/lib/pkgconfig:${fontconfig:pkg_config_depends}
# XXX --with-tessdata work arounds a slaprunner bug of having softwares installed in a path containing //
configure-options =
...
...
component/java-jdk/buildout.cfg
View file @
154d9f23
...
...
@@ -9,26 +9,23 @@ parts =
[java-jdk]
recipe =
plone.recipe.comman
d
command = echo "Error: unsupported platform" && false
stop-on-error = true
location =
recipe =
slapos.recipe.buil
d
update =
from zc.buildout import UserError
raise UserError("unsupported platform")
[java-jdk:linux and
bits64
]
[java-jdk:linux and
platform.machine() == 'x86_64'
]
recipe = slapos.recipe.cmmi
shared = true
url = https://download.java.net/java/GA/jdk12.0.2/e482c34c86bd4bf8b56c0b35558996b9/10/GPL/openjdk-12.0.2_linux-x64_bin.tar.gz
md5sum = f5da6f4dec81bdd2a096184ec1d69216
configure-command = :
make-binary = :
pre-install =
mkdir -p @@LOCATION@@
cp -r * @@LOCATION@@
post-install =
for file in @@LOCATION@@/bin/* ; do
mv * %(location)s
for file in %(location)s/bin/* ; do
echo appending rpath to $file
${patchelf:location}/bin/patchelf --set-rpath ${:rpath}
$file
${patchelf:location}/bin/patchelf --set-rpath %(rpath)s
$file
done
rpath = ${zlib:location}/lib:@@LOCATION@@/lib
location = @@LOCATION@@
component/java/buildout.cfg
View file @
154d9f23
...
...
@@ -9,42 +9,34 @@ parts =
[java-re]
<= 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]
recipe = slapos.recipe.build
slapos_promisee =
directory:bin
directory:lib
directory:man
directory:plugin
file:lib/rt.jar
file:bin/java
<= java-common
# 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
install =
url, md5sum = options[guessPlatform()].split()
extract_dir = self.extract(self.download(url, md5sum))
workdir = guessworkdir(extract_dir)
self.copyTree(workdir, location)
[java-re-7:linux and platform.machine() == 'i686']
bundle-id = 97798
md5sum = 90a6b9e2a32d06c18a3f16b485f0d1ea
[java-re-7:linux and platform.machine() == 'x86_64']
bundle-id = 97800
md5sum = 7605134662f6c87131eca5745895fe84
[java-re-8]
recipe = slapos.recipe.build
slapos_promisee =
directory:bin
directory:lib
directory:man
directory:plugin
file:lib/rt.jar
file:bin/java
<= java-common
# https://www.java.com/en/download/manual.jsp
# 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
install =
url, md5sum = options[guessPlatform()].split()
extract_dir = self.extract(self.download(url, md5sum))
workdir = guessworkdir(extract_dir)
self.copyTree(workdir, location)
[java-re-8:linux and platform.machine() == 'i686']
bundle-id = 230530_2f38c3b165be4555a1fa6e98c45e0808
md5sum = 90a6b9e2a32d06c18a3f16b485f0d1ea
[java-re-8:linux and platform.machine() == 'x86_64']
bundle-id = 230532_2f38c3b165be4555a1fa6e98c45e0808
md5sum = 4385bc121b085862be623f4a31e7e0b4
[java-re-8-output]
# Shared binary location to ease migration
...
...
component/java/jdk-6u27-no-user-interaction.patch
deleted
100644 → 0
View file @
a7673277
--- jdk-6u27-linux-x64.bin.orig 2011-09-27 11:02:14.000000000 +0200
+++ jdk-6u27-linux-x64.bin 2011-09-27 10:38:01.000000000 +0200
@@ -81,7 +81,7 @@
trap 'rm -f $outname; exit 1' HUP INT QUIT TERM
echo "Unpacking..."
tail ${tail_args} +189 "$0" > $outname
-if [ -x /usr/bin/sum ]; then
+if [ -x /usr/bin/null ]; then
echo "Checksumming..."
sum=`/usr/bin/sum $outname`
@@ -169,7 +169,7 @@
fi
# Service Tag support and JDK product registration
- register_JDK "$javahome" "${BINARY_NAME}" "$1"
+ # register_JDK "$javahome" "${BINARY_NAME}" "$1"
else
if [ "$1" = "-x" ]; then
component/nginx/buildout.cfg
View file @
154d9f23
[buildout]
extends =
../coreutils/buildout.cfg
../git/buildout.cfg
../libexpat/buildout.cfg
../openssl/buildout.cfg
../patch/buildout.cfg
../pcre/buildout.cfg
../zlib/buildout.cfg
...
...
@@ -12,13 +10,12 @@ parts = nginx-output
[nginx-common]
recipe = slapos.recipe.cmmi
shared =
fals
e
shared =
tru
e
url = https://nginx.org/download/nginx-1.19.2.tar.gz
md5sum = 3dc55f6451ed6f819f1c796f4e5e9617
[nginx]
<= nginx-common
shared = true
configure-options=
--with-http_ssl_module
--with-http_v2_module
...
...
@@ -32,10 +29,10 @@ configure-options=
[nginx-dav-ext-module]
recipe = slapos.recipe.build:download-unpacked
shared = true
url = https://github.com/arut/nginx-dav-ext-module/archive/v0.0.3.tar.gz
strip-top-level-dir = true
md5sum = 2cb502dbda335be4ebd5fed0b3182bae
mode = 0644
[nginx-webdav]
<= nginx-common
...
...
@@ -61,29 +58,11 @@ command = ${coreutils-output:test} -x ${:nginx} -a -f ${:mime}
nginx = ${nginx:location}/sbin/nginx
mime = ${nginx:location}/conf/mime.types
[hexaglobe-nginx-module]
recipe = hexagonit.recipe.download
ignore-existing = true
url = http://easicloud-p.cdn.hexaglobe.net/nginx-easicloud.tar.gz
md5sum = 57fe2ceb09740f22b5b1023f29889e0e
strip-top-level-dir = true
[nginx-enable-sub]
# Used by Hexaglobe for watermarking
<= nginx
configure-options=
--with-ipv6
--with-http_ssl_module
--with-ld-opt="-L ${zlib:location}/lib -L ${openssl:location}/lib -L ${pcre:location}/lib -Wl,-rpath=${pcre:location}/lib -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${openssl:location}/lib"
--with-cc-opt="-I ${pcre:location}/include -I ${openssl:location}/include -I ${zlib:location}/include"
--add-module=${hexaglobe-nginx-module:location}/sub_module
# --add-module=${hexaglobe-nginx-module:location}/nginx-upstream-fair
[nginx-push-stream-module]
recipe = slapos.recipe.build:
gitclone
repository = https://github.com/wandenberg/nginx-push-stream-module.git
revision = 3d3a204177d3a7ab8a2858e04e792a6d11bf133f
git-executable = ${git:location}/bin/git
recipe = slapos.recipe.build:
download-unpacked
shared = true
url = https://github.com/wandenberg/nginx-push-stream-module/archive/0.4.0.tar.gz
md5sum = d9cba621b8739e13bdb5e02b9425f205
[nginx-push-stream]
<= nginx-common
...
...
component/noVNC/buildout.cfg
View file @
154d9f23
...
...
@@ -4,6 +4,7 @@ parts =
[noVNC]
recipe = slapos.recipe.build:download-unpacked
shared = true
url = https://github.com/novnc/noVNC/archive/refs/tags/v1.2.0.tar.gz
md5sum = 290dfabc4ecdd58d62ccb8c34a922962
strip-top-level-dir = true
component/perl-DBD-MySQL/buildout.cfg
View file @
154d9f23
[buildout]
extends =
../mysql-tritonn-5.0/buildout.cfg
../mariadb/buildout.cfg
../patch/buildout.cfg
../perl-Devel-CheckLib/buildout.cfg
parts =
perl-DBD-
MySQL
perl-DBD-
mariadb
[perl-DBD-MySQL-common]
<= perl-CPAN-package
...
...
@@ -23,12 +22,6 @@ patches =
patch-options = -p1
extra-configure-args=--libs "-L${zlib:location}/lib -L${openssl:location}/lib $(mysql_config --libs)"
[perl-DBD-MySQL]
<= perl-DBD-MySQL-common
environment =
OTHERLDFLAGS=-Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${mysql-tritonn-5.0:location}/lib/mysql -Wl,-rpath=${openssl:location}/lib
PATH=${mysql-tritonn-5.0:location}/bin:${patch:location}/bin:%(PATH)s
[perl-DBD-mariadb]
<= perl-DBD-MySQL-common
environment =
...
...
component/qemu-kvm/buildout.cfg
View file @
154d9f23
...
...
@@ -63,9 +63,10 @@ environment +=
[debian-netinst-base]
recipe = slapos.recipe.build:download
filename = ${:_buildout_section_name_}
url = https://cdimage.debian.org/cdimage/${:release}/${:arch}/iso-cd/debian-${:version}-${:arch}-netinst.iso
release = archive/${:version}
shared = true
filename = debian-${:version}-${:arch}-netinst.iso
url = https://cdimage.debian.org/cdimage/archive/${:archive}/${:arch}/iso-cd/${:filename}
archive = ${:version}
[debian-amd64-netinst-base]
<= debian-netinst-base
...
...
@@ -86,16 +87,23 @@ md5sum = df0ce86d0b1d81e232ad08eef58754ed
version = 9.13.0
md5sum = 6097fdb9cbab47c96471274b9044e983
[debian-amd64-netinst.iso]
# Download the installer of Debian 10 (Buster)
# XXX: This is not the latest version because
# Debian does not provide a stable URL for it.
[debian-amd64-buster-netinst.iso]
<= debian-amd64-netinst-base
version = 10.10.0
md5sum = c7d0e562e589e853b5d00563b4311720
[debian-amd64-bullseye-netinst.iso]
<= debian-amd64-netinst-base
version = 11.0.0
md5sum = 499953266841cae41612310e65659456
alternate-url = https://cdimage.debian.org/cdimage/release/current/${:arch}/iso-cd/${:filename}
[debian-amd64-netinst.iso]
<= debian-amd64-bullseye-netinst.iso
[debian-amd64-testing-netinst.iso]
<= debian-amd64-netinst-base
release = bullseye_di_rc3
alternate-url = https://cdimage.debian.org/cdimage/${archive}/${:arch}/iso-cd/${:filename}
archive = bullseye_di_rc3
version = bullseye-DI-rc3
md5sum = 405917de7062c58357a3673c9901f0c4
component/rpm2cpio/buildout.cfg
View file @
154d9f23
...
...
@@ -5,5 +5,6 @@ parts =
[rpm2cpio]
# https://github.com/ruda/rpm2cpio
recipe = slapos.recipe.build:download
shared = true
url = ${:_profile_base_location_}/${:_buildout_section_name_}
md5sum = aa3a5920a1d8963592be0c2666ee05e2
component/tomcat/buildout.cfg
View file @
154d9f23
...
...
@@ -11,7 +11,7 @@ parts =
[tomcat7]
recipe = slapos.recipe.build:download-unpacked
ignore-existing
= true
shared
= true
strip-top-level-dir = true
url = https://archive.apache.org/dist/tomcat/tomcat-7/v${:version}/bin/apache-tomcat-${:version}.tar.gz
version = 7.0.100
...
...
@@ -19,7 +19,7 @@ md5sum = 79be4ba5a6e770730a4be3d5cb3c7862
[tomcat9]
recipe = slapos.recipe.build:download-unpacked
ignore-existing
= true
shared
= true
strip-top-level-dir = true
url = https://archive.apache.org/dist/tomcat/tomcat-9/v${:version}/bin/apache-tomcat-${:version}.tar.gz
version = 9.0.12
...
...
component/mysql-5.1/buildout.cfg
→
component/
unstable/
mysql-5.1/buildout.cfg
View file @
154d9f23
File moved
component/mysql-5.1/mysql-5.1-sphinx-2.0.1-beta.diff
→
component/
unstable/
mysql-5.1/mysql-5.1-sphinx-2.0.1-beta.diff
View file @
154d9f23
File moved
component/mysql-5.1/mysql_create_system_tables__no_test.patch
→
component/
unstable/
mysql-5.1/mysql_create_system_tables__no_test.patch
View file @
154d9f23
File moved
component/mysql-tritonn-5.0/buildout.cfg
→
component/
unstable/
mysql-tritonn-5.0/buildout.cfg
View file @
154d9f23
File moved
component/mysql-tritonn-5.0/mysql-5.0.87-sphinx-1.10.diff
→
component/
unstable/
mysql-tritonn-5.0/mysql-5.0.87-sphinx-1.10.diff
View file @
154d9f23
File moved
component/xtrabackup/buildout.cfg
→
component/
unstable/
xtrabackup/buildout.cfg
View file @
154d9f23
File moved
component/xtrabackup/xtrabackup-1.6.2_build.patch
→
component/
unstable/
xtrabackup/xtrabackup-1.6.2_build.patch
View file @
154d9f23
File moved
component/xtrabackup/xtrabackup-allow_force_ibbackup.patch
→
component/
unstable/
xtrabackup/xtrabackup-allow_force_ibbackup.patch
View file @
154d9f23
File moved
component/vm-img/debian.cfg
View file @
154d9f23
...
...
@@ -23,7 +23,7 @@ wait-ssh = 100
[vm-debian]
recipe = slapos.recipe.build:vm.install-debian
environment = vm-install-environment
dists = debian-
stable
dists = debian-
buster
size = 2Gi
preseed.partman/early_command =
set -e /usr/lib/apt-setup/generators/99 AllowUnauthenticated; if [ "`debconf-get mirror/http/hostname`" = archive.debian.org ]; then echo "echo 'APT::Get::$2 \"true\";' >/target/etc/apt/apt.conf.d/01$2" >$1$2; chmod +x $1$2; fi
...
...
@@ -75,6 +75,8 @@ x86_64.iso = debian-amd64-stretch-netinst.iso
[debian-buster]
<= debian-stable
x86_64.iso = debian-amd64-buster-netinst.iso
[debian-bullseye]
<= debian-testing
<= debian-stable
x86_64.iso = debian-amd64-bullseye-netinst.iso
component/yarn/buildout.cfg
View file @
154d9f23
...
...
@@ -35,6 +35,7 @@ bin-yarn = ${:rendered}
[yarn-download]
recipe = slapos.recipe.build:download-unpacked
shared = true
url = https://github.com/yarnpkg/yarn/releases/download/v${:version}/yarn-v${:version}.tar.gz
[yarn-download-1.22.10]
...
...
software/erp5testnode/buildout.hash.cfg
View file @
154d9f23
...
...
@@ -14,7 +14,7 @@
# not need these here).
[template]
filename = instance.cfg
md5sum =
d9c7c3acb975d44c6c66ca32c550ac58
md5sum =
6dcbe21f99aa6675e8e3b74bc9cbb0e6
[template-default]
filename = instance-default.cfg.jinja.in
...
...
software/erp5testnode/instance.cfg
View file @
154d9f23
...
...
@@ -34,6 +34,6 @@ default-parameters =
"node-quantity": 1,
"test-suite-master-url": "",
"instance-dict": "",
"software-path-list": ["https://lab.nexedi.com/nexedi/slapos/raw/1.0.
181
/software/seleniumrunner/software.cfg"],
"software-path-list": ["https://lab.nexedi.com/nexedi/slapos/raw/1.0.
210
/software/seleniumrunner/software.cfg"],
"keep-log-days": 15
}
software/kvm/buildout.hash.cfg
View file @
154d9f23
...
...
@@ -15,7 +15,7 @@
[template]
filename = instance.cfg.in
md5sum =
0d34ff81779115bf899f7bc752877b70
md5sum =
b129c9b2a614563d3f7c3f9e906d59f2
[template-kvm]
filename = instance-kvm.cfg.jinja2
...
...
software/kvm/instance.cfg.in
View file @
154d9f23
...
...
@@ -82,7 +82,7 @@ extra-context =
raw dash_executable_location ${dash:location}/bin/dash
raw dnsresolver_executable ${buildout:bin-directory}/dnsresolver
raw dcron_executable_location ${dcron:location}/sbin/crond
raw debian_amd64_netinst_location ${debian-amd64-
netinst.iso:location}/${debian-amd64-netinst.iso:filename
}
raw debian_amd64_netinst_location ${debian-amd64-
buster-netinst.iso:target
}
raw whitelist_domains_default ${whitelist-domains-default:location}/${whitelist-domains-default:filename}
raw whitelist_firewall_download_controller ${whitelist-firewall-download-controller:target}
raw image_download_controller ${image-download-controller:target}
...
...
software/kvm/software.cfg
View file @
154d9f23
...
...
@@ -60,6 +60,7 @@ scripts =
[http-proxy]
# https://github.com/nodejitsu/node-http-proxy
recipe = slapos.recipe.build:download-unpacked
shared = true
#XXX-Cedric : use upstream when merged
url = https://nodeload.github.com/desaintmartin/node-http-proxy/zipball/20120621
md5sum = 20204d0b29c2cef26e1c91e99eedca6b
...
...
@@ -67,6 +68,7 @@ md5sum = 20204d0b29c2cef26e1c91e99eedca6b
[proxy-by-url]
# https://github.com/dominictarr/proxy-by-url
recipe = slapos.recipe.build:download-unpacked
shared = true
#XXX-Cedric : use upstream when merged
url = https://nodeload.github.com/desaintmartin/proxy-by-url/zipball/20120621
md5sum = c2609948aa708581f93b981b23880314
...
...
software/kvm/test/test.py
View file @
154d9f23
...
...
@@ -31,10 +31,12 @@ import os
import
glob
import
hashlib
import
psutil
import
re
import
requests
import
six
import
slapos.util
import
sqlite3
import
stat
from
six.moves.urllib.parse
import
parse_qs
,
urlparse
import
unittest
import
subprocess
...
...
@@ -812,6 +814,29 @@ class TestBootImageUrlList(InstanceTestCase, FakeImageServerMixin):
self
.
stopImageHttpServer
()
super
(
InstanceTestCase
,
self
).
tearDown
()
def
getRunningImageList
(
self
,
kvm_instance_partition
,
_match_cdrom
=
re
.
compile
(
'file=(.+),media=cdrom$'
).
match
,
_sub_iso
=
re
.
compile
(
r'(/debian)(-[^-/]+)(-[^/]+-netinst\
.iso)$
').sub,
):
with self.slap.instance_supervisor_rpc as instance_supervisor:
kvm_pid = next(q for q in instance_supervisor.getAllProcessInfo()
if '
kvm
-
' in q['
name
'])['
pid
']
sub_shared = re.compile(r'
^%
s
/
[
^/
]
+/
[
0
-
9
a
-
f
]{
32
}
/
'
% re.escape(self.slap.shared_directory)).sub
image_list = []
for entry in psutil.Process(kvm_pid).cmdline():
m = _match_cdrom(entry)
if m:
path = m.group(1)
st = os.stat(path)
if stat.S_ISREG(st.st_mode) and st.st_size:
image_list.append(
_sub_iso(r'
\
1
-
$
{
ver
}
\
3
',
sub_shared(r'
$
{
shared
}
/
',
path.replace(kvm_instance_partition, '
$
{
inst
}
')
)))
return image_list
def test(self):
partition_parameter_kw = {
self.key: self.test_input % (
...
...
@@ -843,23 +868,6 @@ class TestBootImageUrlList(InstanceTestCase, FakeImageServerMixin):
self.assertTrue(os.path.islink(image2_link))
self.assertEqual(os.readlink(image2_link), image2)
def
getRunningImageList
():
running_image_list
=
[]
with
self
.
slap
.
instance_supervisor_rpc
as
instance_supervisor
:
kvm_pid
=
[
q
for
q
in
instance_supervisor
.
getAllProcessInfo
()
if
'kvm-'
in
q
[
'name'
]][
0
][
'pid'
]
kvm_process
=
psutil
.
Process
(
kvm_pid
)
software_root
=
'/'
.
join
([
self
.
slap
.
software_directory
,
hashlib
.
md5
(
self
.
getSoftwareURL
().
encode
(
'utf-8'
)).
hexdigest
()])
for
entry
in
kvm_process
.
cmdline
():
if
entry
.
startswith
(
'file'
)
and
'media=cdrom'
in
entry
:
# do cleanups
entry
=
entry
.
replace
(
software_root
,
''
)
entry
=
entry
.
replace
(
kvm_instance_partition
,
''
)
running_image_list
.
append
(
entry
)
return
running_image_list
# mimic the requirement: restart the instance by requesting it stopped and
# then started started, like user have to do it
self.rerequestInstance(partition_parameter_kw, state='
stopped
')
...
...
@@ -869,12 +877,11 @@ class TestBootImageUrlList(InstanceTestCase, FakeImageServerMixin):
self.assertEqual(
[
'file=/srv/%s/image_001,media=cdrom'
%
(
self
.
image_directory
,),
'file=/srv/%s/image_002,media=cdrom'
%
(
self
.
image_directory
,),
'file=/parts/debian-amd64-netinst.iso/debian-amd64-netinst.iso,'
'media=cdrom'
'
$
{
inst
}
/
srv
/%
s
/
image_001
' % self.image_directory,
'
$
{
inst
}
/
srv
/%
s
/
image_002
' % self.image_directory,
'
$
{
shared
}
/
debian
-
$
{
ver
}
-
amd64
-
netinst
.
iso
',
],
getRunningImageList
(
)
self.getRunningImageList(kvm_instance_partition
)
)
# cleanup of images works, also asserts that configuration changes are
...
...
@@ -896,9 +903,8 @@ class TestBootImageUrlList(InstanceTestCase, FakeImageServerMixin):
# again only default image is available in the running process
self.assertEqual(
[
'file=/parts/debian-amd64-netinst.iso/debian-amd64-netinst.iso,'
'media=cdrom'
],
getRunningImageList
()
['
$
{
shared
}
/
debian
-
$
{
ver
}
-
amd64
-
netinst
.
iso
'],
self.getRunningImageList(kvm_instance_partition)
)
def assertPromiseFails(self, promise):
...
...
@@ -1032,23 +1038,6 @@ class TestBootImageUrlSelect(TestBootImageUrlList):
kvm_instance_partition
=
os
.
path
.
join
(
self
.
slap
.
instance_directory
,
self
.
kvm_instance_partition_reference
)
def
getRunningImageList
():
running_image_list
=
[]
with
self
.
slap
.
instance_supervisor_rpc
as
instance_supervisor
:
kvm_pid
=
[
q
for
q
in
instance_supervisor
.
getAllProcessInfo
()
if
'kvm-'
in
q
[
'name'
]][
0
][
'pid'
]
kvm_process
=
psutil
.
Process
(
kvm_pid
)
software_root
=
'/'
.
join
([
self
.
slap
.
software_directory
,
hashlib
.
md5
(
self
.
getSoftwareURL
().
encode
(
'utf-8'
)).
hexdigest
()])
for
entry
in
kvm_process
.
cmdline
():
if
entry
.
startswith
(
'file'
)
and
'media=cdrom'
in
entry
:
# do cleanups
entry
=
entry
.
replace
(
software_root
,
''
)
entry
=
entry
.
replace
(
kvm_instance_partition
,
''
)
running_image_list
.
append
(
entry
)
return
running_image_list
# mimic the requirement: restart the instance by requesting it stopped and
# then started started, like user have to do it
self
.
rerequestInstance
(
partition_parameter_kw
,
state
=
'stopped'
)
...
...
@@ -1058,12 +1047,11 @@ class TestBootImageUrlSelect(TestBootImageUrlList):
self
.
assertEqual
(
[
'file=/srv/boot-image-url-select-repository/image_001,media=cdrom'
,
'file=/srv/boot-image-url-list-repository/image_001,media=cdrom'
,
'file=/parts/debian-amd64-netinst.iso/debian-amd64-netinst.iso,'
'media=cdrom'
'${inst}/srv/boot-image-url-select-repository/image_001'
,
'${inst}/srv/boot-image-url-list-repository/image_001'
,
'${shared}/debian-${ver}-amd64-netinst.iso'
,
],
getRunningImageList
(
)
self
.
getRunningImageList
(
kvm_instance_partition
)
)
# cleanup of images works, also asserts that configuration changes are
...
...
@@ -1100,9 +1088,8 @@ class TestBootImageUrlSelect(TestBootImageUrlList):
# again only default image is available in the running process
self
.
assertEqual
(
[
'file=/parts/debian-amd64-netinst.iso/debian-amd64-netinst.iso,'
'media=cdrom'
],
getRunningImageList
()
[
'${shared}/debian-${ver}-amd64-netinst.iso'
],
self
.
getRunningImageList
(
kvm_instance_partition
)
)
...
...
software/neoppod/stress-testing/runTestSuite.in
View file @
154d9f23
...
...
@@ -135,8 +135,9 @@ mount.neoppod = {{parameter_dict['neoppod']}}
status_dict['stderr'] = ''.join(stderr)
if not returncode:
os.rename(partdir, dist)
try:
with open(os.path.join(
partdir
, 'status')) as f:
with open(os.path.join(
dist
, 'status')) as f:
status = int(f.read())
except Exception:
pass
...
...
@@ -145,7 +146,7 @@ mount.neoppod = {{parameter_dict['neoppod']}}
try:
curses.setupterm('screen')
rmkx = curses.tigetstr('rmkx')
with open(os.path.join(
partdir
, 'stdout')) as f:
with open(os.path.join(
dist
, 'stdout')) as f:
stdout = f.read()
status_dict['stdout'] = stdout[stdout.rindex(rmkx)+len(rmkx):]
except Exception:
...
...
software/neoppod/stress-testing/software.cfg
View file @
154d9f23
...
...
@@ -71,6 +71,7 @@ location = ${:repository}
[vm-debian]
# Mainly for logs, otherwise 2G would enough (<100M for the SR).
size = 8Gi
dists += debian-bullseye
late-command +=
echo tmpfs /tmp tmpfs mode=1777,size=90% 0 0 >>/etc/fstab
packages +=
...
...
@@ -78,8 +79,6 @@ packages +=
ca-certificates file g++ libc6-dev make patch python
# speed up build by using the following components from the OS
git liblzma-dev libssl-dev pkg-config python-dev
# for pygolang
python-greenlet-dev
# extra requirements for NEO
libnetfilter-queue-dev nftables
# extra requirements for this SR
...
...
software/neoppod/stress-testing/stress.cfg
View file @
154d9f23
...
...
@@ -41,9 +41,6 @@ command =
[versions]
slapos.cookbook =
NetfilterQueue = 0.8.1
greenlet = 0.4.15
gevent = 1.3.7
cffi = 1.11.5
# use the following components from the OS
# and don't build dependencies for nothing
[git]
...
...
software/theia/software.cfg
View file @
154d9f23
...
...
@@ -362,6 +362,7 @@ template =
inline:
#!/bin/sh
cd ${theia:location}
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${libsecret:location}/lib:${gettext:location}/lib:${glib:location}/lib"
exec ${yarn:location}/bin/yarn theia start "$@"
[theia-open]
...
...
software/theia/test/dummy/software.cfg
View file @
154d9f23
...
...
@@ -9,11 +9,12 @@ parts =
[log-env]
recipe = slapos.recipe.build
init =
path = ${buildout:directory}/../env.json
update =
import json
import os
with open(
"${buildout:directory}/../env.json"
, 'w') as f:
with open(
options['path']
, 'w') as f:
json.dump(dict(os.environ), f)
[versions]
slapos.recipe.build = 0.4
7
slapos.recipe.build = 0.4
8
software/mysql-5.1/instance.cfg
→
software/
unstable/
mysql-5.1/instance.cfg
View file @
154d9f23
File moved
software/mysql-5.1/software.cfg
→
software/
unstable/
mysql-5.1/software.cfg
View file @
154d9f23
File moved
stack/caucase/buildout.hash.cfg
View file @
154d9f23
...
...
@@ -15,4 +15,4 @@
[caucase-jinja2-library]
filename = caucase.jinja2.library
md5sum =
b3ee1414719f8a24790ae324ca023066
md5sum =
a5c7a46c6fb85aa22a371d9d2cd9e57e
stack/caucase/caucase.jinja2.library
View file @
154d9f23
...
...
@@ -133,7 +133,7 @@ recipe = plone.recipe.command
checksum-file = '{{ template }}.md5'
command =
set -e
md5_current=$(${buildout:executable} -c "
import hashlib ; print hashlib.md5(open('{{ template }}', 'rb').read()).hexdigest(
)")
md5_current=$(${buildout:executable} -c "
from __future__ import print_function ; import hashlib ; print(hashlib.md5(open('{{ template }}', 'rb').read()).hexdigest()
)")
md5_old=$([ -f ${:checksum-file} ] && cat ${:checksum-file} || echo none)
if [ "$md5_current" != "$md5_old" ] || [ ! -f '{{ csr }}' ] || [ ! -f '{{ key }}' ] ; then
'{{ buildout_bin_directory }}/caucase-rerequest' --template '{{ template }}' --csr '{{ csr }}' --key '{{ key }}'
...
...
stack/resilient/buildout.hash.cfg
View file @
154d9f23
...
...
@@ -30,7 +30,7 @@ md5sum = b240dc76a663190304d8bcb9cabcda8f
[template-replicated]
filename = template-replicated.cfg.in
md5sum =
0917aaacb752526e6f114839a3e6e1de
md5sum =
41aee09e9f9abbae59b0442e1e76387f
[template-parts]
filename = template-parts.cfg.in
...
...
stack/resilient/template-replicated.cfg.in
View file @
154d9f23
...
...
@@ -42,11 +42,7 @@ config-name = {{namebase}}0
# Bubble up all the instance parameters to the requested export instance.
{% if slapparameter_dict is defined %}
{% for parameter_name, parameter_value in six.iteritems(slapparameter_dict) %}
{% if parameter_value is string %}
config-{{parameter_name}} = {{ parameter_value.split('\n') | join('\n ') }}
{% else %}
config-{{parameter_name}} = {{ parameter_value }}
{% endif %}
config-{{ parameter_name }} = {{ dumps(parameter_value) }}
{% endfor %}
{% endif %}
{% for key, value in six.iteritems(monitor_dict) -%}
...
...
stack/slapos.cfg
View file @
154d9f23
...
...
@@ -132,7 +132,7 @@ eggs =
[versions]
setuptools = 44.1.1
# Use SlapOS patched zc.buildout
zc.buildout = 2.7.1+slapos01
3
zc.buildout = 2.7.1+slapos01
4
# Use SlapOS patched zc.recipe.egg (zc.recipe.egg 2.x is for Buildout 2)
zc.recipe.egg = 2.0.3+slapos003
# Use own version of h.r.download to be able to open .xz and .lz archives
...
...
@@ -196,7 +196,7 @@ slapos.extension.strip = 0.4
slapos.extension.shared = 1.0
slapos.libnetworkcache = 0.20
slapos.rebootstrap = 4.5
slapos.recipe.build = 0.4
7
slapos.recipe.build = 0.4
8
slapos.recipe.cmmi = 0.17
slapos.recipe.template = 4.6
slapos.toolbox = 0.124
...
...
stack/tomcat.cfg
→
stack/
unstable/
tomcat.cfg
View file @
154d9f23
File moved
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