Commit 1e88219f authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

stack/erp5: remove tempstorage

parent c95cfd8b
# SlapOS component for tempstorage.
# https://github.com/zopefoundation/tempstorage
[buildout]
extends =
../ZODB/buildout.cfg
../git/buildout.cfg
# tempstorage provides tempstorage<X> depending on ZODB major version.
#
# - tempstorage >= 4 works only with ZODB5 because ZODB commit protocol was changed
# https://github.com/zopefoundation/tempstorage/commit/5cc223ea
# - tempstorage <= 5.2 is vulnerable to data corruption in loadBefore
# https://github.com/zopefoundation/tempstorage/issues/8
# https://github.com/zopefoundation/tempstorage/pull/16
# - tempstorage 3-nxd provides loadBefore backports to tempstorage 3.
[tempstorage]
recipe = slapos.recipe.build
depends = ${ZODB:egg}
init =
# link/depend to tempstorage<ZODB.major>
zodb = self.buildout['ZODB']
zmajor = zodb['major']
tempstorage_x = self.buildout['tempstorage'+zmajor]
options['depends'] += '$${%s:egg}' % tempstorage_x.name
options['egg'] = tempstorage_x['egg']
# update [versions] from what is needed by tempstorage<X>
self.buildout.parse('[_tempstorage-versions]\n' + tempstorage_x['egg-versions'])
versions = self.buildout['versions']
versions.update(self.buildout['_tempstorage-versions'])
# propagate updated [versions] -> easy_install
# (buildout does this in Buildout constructor)
import zc.buildout.easy_install
zc.buildout.easy_install.default_versions(versions)
# tempstorage5 is plain upstream egg
[tempstorage5]
recipe = zc.recipe.egg:eggs
egg = tempstorage
eggs = ${:egg}
egg-versions =
tempstorage = 5.2
# tempstorage4-wc2 is tempstorage 3 + backports for loadBefore fixes
[tempstorage4-wc2]
recipe = zc.recipe.egg:develop
setup = ${tempstorage4-wc2-repository:location}
egg = tempstorage
egg-versions =
tempstorage =
[tempstorage4-wc2-repository]
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/nexedi/tempstorage.git
branch = 3-nxd
revision= 77b49295db78
location = ${buildout:parts-directory}/tempstorage
git-executable = ${git:location}/bin/git
# tempstorage4 is the same as tempstorage4-wc2 because of loadBefore fixes.
[tempstorage4]
<= tempstorage4-wc2
...@@ -37,7 +37,6 @@ extends = ...@@ -37,7 +37,6 @@ extends =
../../component/scikit-image/buildout.cfg ../../component/scikit-image/buildout.cfg
../../component/PyWavelets/buildout.cfg ../../component/PyWavelets/buildout.cfg
../../component/subversion/buildout.cfg ../../component/subversion/buildout.cfg
../../component/tempstorage/buildout.cfg
../../component/tesseract/buildout.cfg ../../component/tesseract/buildout.cfg
../../component/w3m/buildout.cfg ../../component/w3m/buildout.cfg
../../component/poppler/buildout.cfg ../../component/poppler/buildout.cfg
...@@ -498,7 +497,6 @@ eggs = ${neoppod:eggs} ...@@ -498,7 +497,6 @@ eggs = ${neoppod:eggs}
# Zope # Zope
Zope2 Zope2
${tempstorage:egg}
# Zope acquisition patch # Zope acquisition patch
Acquisition Acquisition
# for runzeo # for runzeo
......
...@@ -34,7 +34,7 @@ md5sum = fed6dd2bdc389b4fc7e7b7ca32c5d4b6 ...@@ -34,7 +34,7 @@ md5sum = fed6dd2bdc389b4fc7e7b7ca32c5d4b6
[template-zope-conf] [template-zope-conf]
filename = zope.conf.in filename = zope.conf.in
md5sum = 5ce9d5e99880d5db9ed339bbefe28d34 md5sum = 0c440b880d76dfdf497c5639a8104a64
[site-zcml] [site-zcml]
filename = site.zcml filename = site.zcml
......
...@@ -54,7 +54,6 @@ repoze.tm2 = 1.0 ...@@ -54,7 +54,6 @@ repoze.tm2 = 1.0
repoze.who = 2.0 repoze.who = 2.0
scandir = 1.10.0 scandir = 1.10.0
six = 1.14.0 six = 1.14.0
tempstorage = 2.12.2
toml = 0.10.0 toml = 0.10.0
tox = 3.14.4 tox = 3.14.4
transaction = 1.1.1 transaction = 1.1.1
......
...@@ -131,14 +131,6 @@ large-file-threshold {{ parameter_dict['large-file-threshold'] }} ...@@ -131,14 +131,6 @@ large-file-threshold {{ parameter_dict['large-file-threshold'] }}
</logfile> </logfile>
</logger> </logger>
<zodb_db temporary>
<temporarystorage>
name temporary storage for sessioning
</temporarystorage>
mount-point /temp_folder
container-class Products.TemporaryFolder.TemporaryContainer
</zodb_db>
{% set developer_list = parameter_dict['developer-list'] -%} {% set developer_list = parameter_dict['developer-list'] -%}
{% set publisher_timeout = parameter_dict['publisher-timeout'] -%} {% set publisher_timeout = parameter_dict['publisher-timeout'] -%}
{% set activity_timeout = parameter_dict['activity-timeout'] -%} {% set activity_timeout = parameter_dict['activity-timeout'] -%}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment