[osv-dev] [COMMIT osv master] Updated apps

2019-03-10 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Updated apps Signed-off-by: Waldemar Kozaczuk --- diff --git a/apps b/apps --- a/apps +++ b/apps @@ -1 +1 @@ -Subproject commit da4f9dd96b0ece6175e1372dbdce3530dc6aca90 +Subproject commit f09b74d44849de912d2aa87ba237bca37265

[osv-dev] [COMMIT osv-apps master] Tweaked python3x app to filter out static libraries to lower image size to 22MB from 77MB

2019-03-10 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Tweaked python3x app to filter out static libraries to lower image size to 22MB from 77MB Signed-off-by: Waldemar Kozaczuk --- diff --git a/python3x/GET b/python3x/GET --- a/python3x/GET +++ b/python3x/GET @@ -66,7 +66,7

[osv-dev] [COMMIT osv-apps master] Rename sqlite to it's current name in Ubuntu 18.04

2019-03-10 Thread Commit Bot
From: pshem Committer: GitHub Branch: master Rename sqlite to it's current name in Ubuntu 18.04 --- diff --git a/sqlite/GET b/sqlite/GET --- a/sqlite/GET +++ b/sqlite/GET @@ -9,4 +9,4 @@ wget -c http://www.sqlite.org/$YEAR/sqlite-amalgamation-$VERSION.zip unzip -x sqlite-amalgamation-$VERS

[osv-dev] [COMMIT osv-apps master] Update usr.manifest

2019-03-10 Thread Commit Bot
From: pshem Committer: GitHub Branch: master Update usr.manifest --- diff --git a/sqlite/usr.manifest b/sqlite/usr.manifest --- a/sqlite/usr.manifest +++ b/sqlite/usr.manifest @@ -1 +1 @@ -/tools/sqlite.so: ${MODULE_DIR}/sqlite.so +/usr/lib/libsqlite3.so.0: ${MODULE_DIR}/libsqlite3.so.0 -- Yo

[osv-dev] [COMMIT osv-apps master] Update Makefile to clear the new object

2019-03-10 Thread Commit Bot
From: pshem Committer: GitHub Branch: master Update Makefile to clear the new object --- diff --git a/sqlite/Makefile b/sqlite/Makefile --- a/sqlite/Makefile +++ b/sqlite/Makefile @@ -6,4 +6,4 @@ upstream: .PHONY: clean clean: - rm -rf upstream *.so + rm -rf upstream *.so *.so.0

[osv-dev] [COMMIT osv-apps master] Merge pull request #64 from pshem/patch-3

2019-03-10 Thread Commit Bot
From: WALDEMAR KOZACZUK Committer: GitHub Branch: master Merge pull request #64 from pshem/patch-3 Fix sqlite in python3 --- diff --git a/python3x/GET b/python3x/GET --- a/python3x/GET +++ b/python3x/GET @@ -89,6 +89,9 @@ then echo "ERROR some libraries required by python might be mis

[osv-dev] [COMMIT osv-apps master] Fix python3 crashing on sqlite import

2019-03-10 Thread Commit Bot
From: pshem Committer: GitHub Branch: master Fix python3 crashing on sqlite import by using sqlite compiled without `MREMAP`(see https://github.com/cloudius-systems/osv/issues/184 and #62) --- diff --git a/python3x/module.py b/python3x/module.py --- a/python3x/module.py +++ b/python3x/modu

[osv-dev] [COMMIT osv-apps master] Update sqlite to the newest upstream releases

2019-03-10 Thread Commit Bot
From: pshem Committer: GitHub Branch: master Update sqlite to the newest upstream releases Fixes a bunch of CVEs and is a prerequisite for using with python --- diff --git a/sqlite/GET b/sqlite/GET --- a/sqlite/GET +++ b/sqlite/GET @@ -1,7 +1,7 @@ #!/bin/sh -YEAR=2013 -VERSION=3080200 +YEAR

[osv-dev] [COMMIT osv-apps master] Use cp instead of rsync

2019-03-10 Thread Commit Bot
From: pshem Committer: GitHub Branch: master Use cp instead of rsync when there are no benefits to rsync --- diff --git a/python3x/GET b/python3x/GET --- a/python3x/GET +++ b/python3x/GET @@ -57,7 +57,7 @@ then fi #replace sqlite with a non-MREMAP version -rsync -a $BASEDIR/../sqlite/libsq

[osv-dev] [COMMIT osv-apps master] Replace sqlite with a non-MREMAP version

2019-03-10 Thread Commit Bot
From: pshem Committer: GitHub Branch: master Replace sqlite with a non-MREMAP version --- diff --git a/python3x/GET b/python3x/GET --- a/python3x/GET +++ b/python3x/GET @@ -55,6 +55,9 @@ then echo "ERROR some libraries required by python might be missing" exit 1 fi + +#replace

[osv-dev] [COMMIT osv-apps master] Update module.py

2019-03-10 Thread Commit Bot
From: pshem Committer: GitHub Branch: master Update module.py --- diff --git a/sqlite/module.py b/sqlite/module.py --- a/sqlite/module.py +++ b/sqlite/module.py @@ -1,3 +1,3 @@ from osv.modules import api -default = api.run("/tools/sqlite.so test.db") +default = api.run("/usr/lib/libsqlite3.

[osv-dev] [COMMIT osv-apps master] Made more files and directoris git-ignored

2019-03-10 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Made more files and directoris git-ignored Signed-off-by: Waldemar Kozaczuk --- diff --git a/.gitignore b/.gitignore --- a/.gitignore +++ b/.gitignore @@ -5,10 +5,17 @@ ROOTFS install # Downloaded compressed archives +*.t

[osv-dev] [COMMIT osv-apps master] Merge pull request #63 from pshem/patch-2

2019-03-10 Thread Commit Bot
From: WALDEMAR KOZACZUK Committer: GitHub Branch: master Merge pull request #63 from pshem/patch-2 Ignore more build artifacts --- diff --git a/.gitignore b/.gitignore --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,14 @@ +# Directories storing files downloaded or collected from the OS upstream

[osv-dev] [COMMIT osv-apps master] Ignore more build artifacts

2019-03-10 Thread Commit Bot
From: pshem Committer: GitHub Branch: master Ignore more build artifacts Ignore compressed archives, terminal settings and unpacked mysql source code --- diff --git a/.gitignore b/.gitignore --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,14 @@ +# Directories storing files downloaded or collecte

[osv-dev] [COMMIT osv master] Update apps submodule

2019-03-10 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master Update apps submodule Signed-off-by: Nadav Har'El --- diff --git a/apps b/apps --- a/apps +++ b/apps @@ -1 +1 @@ -Subproject commit 50eb683f44d66e3a5d335eed0797eb5e5e752b13 +Subproject commit da4f9dd96b0ece6175e1372dbdce3530dc6aca90

[osv-dev] [COMMIT osv-apps master] tomcat: require java8

2019-03-10 Thread Commit Bot
From: geraldo netto Committer: Nadav Har'El Branch: master tomcat: require java8 Signed-off-by: geraldo netto Message-Id: <20190310175609.1574-1-geraldone...@gmail.com> --- diff --git a/tomcat/module.py b/tomcat/module.py --- a/tomcat/module.py +++ b/tomcat/module.py @@ -1,5 +1,7 @@ from os

[osv-dev] [COMMIT osv-apps master] Add "java8" default module

2019-03-10 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master Add "java8" default module This patch was suggested and prepared by Geraldo Netto We have various modules (e.g., openjdk8-fedora, openjdk8-zulu-*) that provide() the "java8" feature. Packages which need Java 8 can require() this fe

Re: [osv-dev] [PATCH] add and explicit java8 alias

2019-03-10 Thread Nadav Har'El
On Sun, Mar 10, 2019 at 6:31 PM geraldo netto wrote: > this alias was already declared in some modules like akka-example, > apache-derby, elasticsearch, ratpack-example > and for some reason it was not picking up jdk8 properly > > just for reference, we have the following modules declared as prov

Re: [osv-dev] [PATCH] tomcat: require java8

2019-03-10 Thread Nadav Har'El
On Sun, Mar 10, 2019 at 7:56 PM geraldo netto wrote: > Signed-off-by: geraldo netto > --- > tomcat/module.py | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tomcat/module.py b/tomcat/module.py > index cbe6872..a9584db 100644 > --- a/tomcat/module.py > +++ b/tomcat/module.py > @@ -1,5

Re: [osv-dev] [PATCH 0/9] upgrade from tomcat 8 to tomcat 9

2019-03-10 Thread Nadav Har'El
On Sun, Mar 10, 2019 at 6:53 PM Waldek Kozaczuk wrote: > java8 is an alias. When you build you need to pass module/app that > satisfies this. > But Geraldo is right that it makes sense to have some default "java8" which works (the openjdk8-fedora unfortunately doesn't - see https://github.com/c

[osv-dev] [PATCH] tomcat: require java8

2019-03-10 Thread geraldo netto
Signed-off-by: geraldo netto --- tomcat/module.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tomcat/module.py b/tomcat/module.py index cbe6872..a9584db 100644 --- a/tomcat/module.py +++ b/tomcat/module.py @@ -1,5 +1,7 @@ from osv.modules import api +api.require('java8') + _catalina

[osv-dev] page cache used in OSv with ZFS

2019-03-10 Thread zhiting zhu
Hey, Not sure whether this is the right place to ask question. Is there a description on how page cache is used in OSv with ZFS? The only place I can find that references pagecache is vfs map_page. Does it mean only mmap interects with pagecache? How does it interect with write/read system call

Re: [osv-dev] [PATCH 0/9] upgrade from tomcat 8 to tomcat 9

2019-03-10 Thread Waldek Kozaczuk
java8 is an alias. When you build you need to pass module/app that satisfies this. Sent from my iPhone > On Mar 10, 2019, at 12:08, Geraldo Netto wrote: > > > Think I found/fixed it > Let me finish the tests to make sure, I'm not missing anything else > > > See You, > > Geraldo Netto > S

[osv-dev] Re: [PATCH] add and explicit java8 alias

2019-03-10 Thread Geraldo Netto
Nadav/Waldek, Do you think it is reasonable to add an alias for each java version? and then if someone wants a different version, we can always use the image=, Geraldo Netto Sapere Aude => Non dvcor, dvco http://exdev.sf.net/ On Sun, 10 Mar 2019 at 17:31, geraldo netto wrote: > this alias wa

[osv-dev] [PATCH] add and explicit java8 alias

2019-03-10 Thread geraldo netto
this alias was already declared in some modules like akka-example, apache-derby, elasticsearch, ratpack-example and for some reason it was not picking up jdk8 properly just for reference, we have the following modules declared as providing java8: openjdk10-zulu-java-base/module.py:provides = ['j

Re: [osv-dev] [PATCH 0/9] upgrade from tomcat 8 to tomcat 9

2019-03-10 Thread Geraldo Netto
Think I found/fixed it Let me finish the tests to make sure, I'm not missing anything else See You, Geraldo Netto Sapere Aude => Non dvcor, dvco http://exdev.sf.net/ On Sun, 10 Mar 2019 at 16:52, Geraldo Netto wrote: > Nadav/Waldek, > > It turns out that module.py is not resolving java8 > an

Re: [osv-dev] [PATCH 0/9] upgrade from tomcat 8 to tomcat 9

2019-03-10 Thread Geraldo Netto
Nadav/Waldek, It turns out that module.py is not resolving java8 and in fact it sems broken also for other apps like elastic search which also requires jdk8 I'm checking why... the workaround fr tomcat and all other apps that depend on java8 is to use image=openjdk8-zulu-full, the log: ... Buildi

Re: [osv-dev] [PATCH 0/9] upgrade from tomcat 8 to tomcat 9

2019-03-10 Thread Nadav Har'El
I already committed your previous patch so please make an incremental patch. Thanks. On Sun, Mar 10, 2019, 17:11 Geraldo Netto wrote: > Hey, > > I beg your pardon by this I forgot to point the jdk8 requirement once > I usually build with "openjdk8-zulu-full,tomcat" :( > let me do another patch

Re: [osv-dev] [PATCH 2/9] update 0001-configure-web-admin-user.patch

2019-03-10 Thread Geraldo Netto
Hello Nadav/Waldek/Friends, Just to document this is the flow of the changes on tomcat As you already pointed out, this set contains patch-of-patch The following are all correlated to the same file: - update 0001-configure-web-admin-user.patch - add admin-gui permission - add manager-script permis

Re: [osv-dev] [PATCH 0/9] upgrade from tomcat 8 to tomcat 9

2019-03-10 Thread Geraldo Netto
Hey, I beg your pardon by this I forgot to point the jdk8 requirement once I usually build with "openjdk8-zulu-full,tomcat" :( let me do another patch with it Do you prefer me to make a single patch or would you prefer me to make a new set and also fix some comment? Kind Regards, Geraldo Netto

Re: [osv-dev] [PATCH 0/9] upgrade from tomcat 8 to tomcat 9

2019-03-10 Thread Nadav Har'El
Thanks. I committed your patches, because there's no halting progress :-) But does it work for you? It doesn't for me... When I try $ scripts/build image=tomcat $ scripts/run I get: java.so: Starting JVM app using: io/osv/nonisolated/RunNonIsolatedJvmApp java.so: Setting Java system classloader

[osv-dev] [COMMIT osv-apps master] renamed: 0006-Add-script-managment-role-to-tomcat-user.patch -> 0003-Add-script-managment-role-to-tomcat-user.patch

2019-03-10 Thread Commit Bot
From: geraldo netto Committer: Nadav Har'El Branch: master renamed: 0006-Add-script-managment-role-to-tomcat-user.patch -> 0003-Add-script-managment-role-to-tomcat-user.patch Signed-off-by: geraldo netto Message-Id: <20190309010126.11896-8-geraldone...@gmail.com> --- diff --git a/tomcat

[osv-dev] [COMMIT osv-apps master] update 0001-configure-web-admin-user.patch

2019-03-10 Thread Commit Bot
From: geraldo netto Committer: Nadav Har'El Branch: master update 0001-configure-web-admin-user.patch update the patch 0001-configure-web-admin-user.patch in order to work on tomcat 9 the change only adds a new user with manager-gui on second-last line instead of removing the past lines and

[osv-dev] [COMMIT osv-apps master] renamed: 0002-change-http-port-to-8081.patch -> 0003-change-http-port-to-8081.patch

2019-03-10 Thread Commit Bot
From: geraldo netto Committer: Nadav Har'El Branch: master renamed: 0002-change-http-port-to-8081.patch -> 0003-change-http-port-to-8081.patch Signed-off-by: geraldo netto Message-Id: <20190309010126.11896-7-geraldone...@gmail.com> --- diff --git a/tomcat/patches/perf/0003-change-http-por

[osv-dev] [COMMIT osv-apps master] add manager-script permission

2019-03-10 Thread Commit Bot
From: geraldo netto Committer: Nadav Har'El Branch: master add manager-script permission Signed-off-by: geraldo netto Message-Id: <20190309010126.11896-5-geraldone...@gmail.com> --- diff --git a/tomcat/patches/perf/0006-Add-script-managment-role-to-tomcat-user.patch b/tomcat/patches/perf

[osv-dev] [COMMIT osv-apps master] update bio connector to nio

2019-03-10 Thread Commit Bot
From: geraldo netto Committer: Nadav Har'El Branch: master update bio connector to nio this patch changes the bio connector used on tomcat to java nio connector (non blocking) once bio connector is deprecated this patch was adapted from the original "0007-Use-bio-connector-explicitly.patc

[osv-dev] [COMMIT osv-apps master] tomcat: upgrade from 8.0.15 to 9.0.16

2019-03-10 Thread Commit Bot
From: geraldo netto Committer: Nadav Har'El Branch: master tomcat: upgrade from 8.0.15 to 9.0.16 Signed-off-by: geraldo netto Message-Id: <20190309010126.11896-2-geraldone...@gmail.com> --- diff --git a/tomcat/GET b/tomcat/GET --- a/tomcat/GET +++ b/tomcat/GET @@ -1,32 +1,34 @@ #!/usr/bin/e

[osv-dev] [COMMIT osv-apps master] renamed: 0003-change-http-port-to-8081.patch -> 0006-change-http-port-to-8081.patch

2019-03-10 Thread Commit Bot
From: geraldo netto Committer: Nadav Har'El Branch: master renamed: 0003-change-http-port-to-8081.patch -> 0006-change-http-port-to-8081.patch Signed-off-by: geraldo netto Message-Id: <20190309010126.11896-9-geraldone...@gmail.com> --- diff --git a/tomcat/patches/perf/0006-change-http-por

[osv-dev] [COMMIT osv-apps master] rename: 0003-assign-admin-gui-role-to-tomcat-user -> 0002-assign-admin-gui-role-to-tomcat-user

2019-03-10 Thread Commit Bot
From: geraldo netto Committer: Nadav Har'El Branch: master rename: 0003-assign-admin-gui-role-to-tomcat-user -> 0002-assign-admin-gui-role-to-tomcat-user rename patches in order to follow an order Signed-off-by: geraldo netto Message-Id: <20190309010126.11896-6-geraldone...@gmail.com> --

[osv-dev] [COMMIT osv-apps master] add admin-gui permission

2019-03-10 Thread Commit Bot
From: geraldo netto Committer: Nadav Har'El Branch: master add admin-gui permission Signed-off-by: geraldo netto Message-Id: <20190309010126.11896-4-geraldone...@gmail.com> --- diff --git a/tomcat/patches/perf/0003-assign-admin-gui-role-to-tomcat-user.patch b/tomcat/patches/perf/0003-ass

Re: [osv-dev] [PATCH 2/9] update 0001-configure-web-admin-user.patch

2019-03-10 Thread Geraldo Netto
Hey Nadav, Thanks for reviewing the patches :) Sorry by not answer in line but yes, instead of deleting commented lines and then add just the one we need (old approach) I keep the commented code and just add one single line with the configuration we need just before the last line that way it also

Re: [osv-dev] [PATCH 4/9] add manager-script permission

2019-03-10 Thread Nadav Har'El
On Sat, Mar 9, 2019 at 3:02 AM geraldo netto wrote: > Signed-off-by: geraldo netto > --- > ...0006-Add-script-managment-role-to-tomcat-user.patch | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git > a/tomcat/patches/perf/0006-Add-script-managment-role-to-tomcat-us

Re: [osv-dev] [PATCH 2/9] update 0001-configure-web-admin-user.patch

2019-03-10 Thread Nadav Har'El
On Sat, Mar 9, 2019 at 3:02 AM geraldo netto wrote: > update the patch 0001-configure-web-admin-user.patch in order to work on > tomcat 9 > the change only adds a new user with manager-gui on second-last line > instead of removing the past lines and then add the user > > in any case, the changes

Re: [osv-dev] [PATCH 3/9] add admin-gui permission

2019-03-10 Thread Nadav Har'El
On Sun, Mar 10, 2019 at 4:21 PM Nadav Har'El wrote: > On Sat, Mar 9, 2019 at 3:02 AM geraldo netto > wrote: > >> >> +@@ -41,5 +41,5 @@ >> + > roles="tomcat,role1"/> >> + >> > > I understood from your patch's title that the purpose of this patch is to > add the "admin-gui" > role to user tom

Re: [osv-dev] [PATCH 3/9] add admin-gui permission

2019-03-10 Thread Nadav Har'El
On Sat, Mar 9, 2019 at 3:02 AM geraldo netto wrote: > Signed-off-by: geraldo netto > --- > .../0003-assign-admin-gui-role-to-tomcat-user.patch| 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git > a/tomcat/patches/perf/0003-assign-admin-gui-role-to-tomcat-user.p

Re: [osv-dev] [PATCH 2/9] update 0001-configure-web-admin-user.patch

2019-03-10 Thread Nadav Har'El
On Sat, Mar 9, 2019 at 3:02 AM geraldo netto wrote: > update the patch 0001-configure-web-admin-user.patch in order to work on > tomcat 9 > the change only adds a new user with manager-gui on second-last line > instead of removing the past lines and then add the user > I'm afraid I'm lost as to