* [bug#32231] [PATCH 1/8] gnu: java-guice: Remove jars.
2018-07-21 8:14 [bug#32231] [PATCH 0/8] Tomcat related updates Björn Höfling
@ 2018-07-21 8:20 ` Björn Höfling
2018-07-21 8:22 ` [bug#32231] [PATCH 2/8] gnu: java-logback-core: Add file-name field Björn Höfling
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Björn Höfling @ 2018-07-21 8:20 UTC (permalink / raw)
To: 32231
[-- Attachment #1: Type: text/plain, Size: 919 bytes --]
* gnu/packages/java.scm (java-guice)[source]: Add snippet to delete jar-files.
---
gnu/packages/java.scm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index bc28428..b8587cc 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -7908,6 +7908,10 @@ the dependency is said to be unsatisfied, and the application is broken.")
(uri (string-append "https://github.com/google/guice/archive/"
version ".tar.gz"))
(file-name (string-append name "-" version ".tar.gz"))
+ (modules '((guix build utils)))
+ (snippet
+ `(begin
+ (for-each delete-file (find-files "." ".*.jar"))))
(sha256
(base32
"0dwmqjzlavb144ywqqglj3h68hqszkff8ai0a42hyb5il0qh4rbp"))))
--
2.7.4
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [bug#32231] [PATCH 2/8] gnu: java-logback-core: Add file-name field.
2018-07-21 8:14 [bug#32231] [PATCH 0/8] Tomcat related updates Björn Höfling
2018-07-21 8:20 ` [bug#32231] [PATCH 1/8] gnu: java-guice: Remove jars Björn Höfling
@ 2018-07-21 8:22 ` Björn Höfling
2018-07-21 8:23 ` [bug#32231] [PATCH 3/8] gnu: java: Use java-classpathx-servletapi instead of java-tomcat where possible Björn Höfling
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Björn Höfling @ 2018-07-21 8:22 UTC (permalink / raw)
To: 32231
[-- Attachment #1: Type: text/plain, Size: 750 bytes --]
* gnu/package/java.scm (java-logback-core)[source]: Add file-name field.
---
gnu/packages/java.scm | 1 +
1 file changed, 1 insertion(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index b8587cc..7f7cf52 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -10277,6 +10277,7 @@ static code analysis or code manipulation.")))
(method url-fetch)
(uri (string-append "https://github.com/qos-ch/logback/archive/v_"
version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
"1x6ga74yfgm94cfx98gybakbrlilx8i2gn6dx13l40kasmys06mi"))
--
2.7.4
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [bug#32231] [PATCH 3/8] gnu: java: Use java-classpathx-servletapi instead of java-tomcat where possible.
2018-07-21 8:14 [bug#32231] [PATCH 0/8] Tomcat related updates Björn Höfling
2018-07-21 8:20 ` [bug#32231] [PATCH 1/8] gnu: java-guice: Remove jars Björn Höfling
2018-07-21 8:22 ` [bug#32231] [PATCH 2/8] gnu: java-logback-core: Add file-name field Björn Höfling
@ 2018-07-21 8:23 ` Björn Höfling
2018-07-21 8:23 ` [bug#32231] [PATCH 4/8] gnu: Add java-javaee-servletapi Björn Höfling
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Björn Höfling @ 2018-07-21 8:23 UTC (permalink / raw)
To: 32231
[-- Attachment #1: Type: text/plain, Size: 1036 bytes --]
* gnu/package/java.scm (java-commons-jxpath)[inputs]: Remove java-tomcat, add java-classpathx-servletapi.
(java-guice-servlet)[inputs]: Likewise.
---
gnu/packages/java.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 7f7cf52..d6c88f5 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -4449,7 +4449,7 @@ these scripting language engines.")
#:tests? #f
#:source-dir "src/java"))
(inputs
- `(("java-tomcat" ,java-tomcat)
+ `(("servlet" ,java-classpathx-servletapi)
("java-jdom" ,java-jdom)
("java-commons-beanutils" ,java-commons-beanutils)))
(native-inputs
@@ -7944,7 +7944,7 @@ Java 6 and above.")
#:tests? #f)); FIXME: not in a java subdir
(inputs
`(("guice" ,java-guice)
- ("servlet" ,java-tomcat)
+ ("servlet" ,java-classpathx-servletapi)
,@(package-inputs java-guice)))))
(define-public java-assertj
--
2.7.4
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [bug#32231] [PATCH 4/8] gnu: Add java-javaee-servletapi.
2018-07-21 8:14 [bug#32231] [PATCH 0/8] Tomcat related updates Björn Höfling
` (2 preceding siblings ...)
2018-07-21 8:23 ` [bug#32231] [PATCH 3/8] gnu: java: Use java-classpathx-servletapi instead of java-tomcat where possible Björn Höfling
@ 2018-07-21 8:23 ` Björn Höfling
2018-07-21 8:24 ` [bug#32231] [PATCH 5/8] gnu: java: Use java-javaee-servletapi instead of java-tomcat Björn Höfling
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Björn Höfling @ 2018-07-21 8:23 UTC (permalink / raw)
To: 32231
[-- Attachment #1: Type: text/plain, Size: 1936 bytes --]
* gnu/packages/java.scm (java-javaee-servletapi): New variable.
---
gnu/packages/java.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index d6c88f5..b60aedd 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -2537,6 +2537,37 @@ ClasspathX project. It provides implementations of version 3.0 of the servlet
API and version 2.1 of the Java ServerPages API.")
(license license:gpl3+)))
+(define-public java-javaee-servletapi
+ (package
+ (name "java-javaee-servletapi")
+ (version "3.1.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/javaee/servlet-spec/"
+ "archive/" version ".zip"))
+ (file-name (string-append name "-" version ".zip"))
+ (sha256
+ (base32
+ "0m6p13vgfb1ihich1jp5j6fqlhkjsrkn32c86bsbkryp38ipwg8w"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "javax-servletapi.jar"
+ ;; no tests
+ #:tests? #f
+ #:source-dir "src/main/java"))
+ (native-inputs
+ `(("unzip" ,unzip)))
+ (home-page "https://javaee.github.io/servlet-spec/")
+ (synopsis "Java servlet API")
+ (description "Java Servlet is the foundation web specification in the
+Java Enterprise Platform. Developers can build web applications using the
+Servlet API to interact with the request/response workflow. This project
+provides information on the continued development of the Java Servlet
+specification.")
+ ;; Main code is dual-licensed by Oracle under either GLP2 or CDDL 1.1.
+ ;; Some files are licensed under ASL 2.0.
+ (license (list license:asl2.0 license:gpl2 license:cddl1.1))))
+
(define-public java-swt
(package
(name "java-swt")
--
2.7.4
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [bug#32231] [PATCH 5/8] gnu: java: Use java-javaee-servletapi instead of java-tomcat.
2018-07-21 8:14 [bug#32231] [PATCH 0/8] Tomcat related updates Björn Höfling
` (3 preceding siblings ...)
2018-07-21 8:23 ` [bug#32231] [PATCH 4/8] gnu: Add java-javaee-servletapi Björn Höfling
@ 2018-07-21 8:24 ` Björn Höfling
2018-07-21 8:24 ` [bug#32231] [PATCH 6/8] gnu: java-tomcat: Update to 8.5.32 Björn Höfling
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Björn Höfling @ 2018-07-21 8:24 UTC (permalink / raw)
To: 32231
[-- Attachment #1: Type: text/plain, Size: 5149 bytes --]
* gnu/packages/java.scm(java-eclipse-sisu-inject)[inputs]: Remove java-tomcat, add java-javaee-servletapi.
(logback-core)[inputs]: Likewise.
* gnu/packages/maven.scm (maven-wagon-provider-test)[inputs]: Likewise.
* gnu/packages/web.scm (java-eclipse-jetty-webapp)[inputs]: Likewise.
(java-eclipse-jetty-server)[inputs]: Likewise.
(java-eclipse-jetty-http)[inputs]: Likewise.
(java-eclipse-jetty-jmx)[inputs]: Likewise.
(java-eclipse-jetty-io)[inputs]: Likewise.
---
gnu/packages/java.scm | 6 +++---
gnu/packages/maven.scm | 2 +-
gnu/packages/web.scm | 10 +++++-----
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index b60aedd..2ba6d76 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -10144,7 +10144,7 @@ and reporting) project dependencies. It is characterized by the following:
`(("java-guice" ,java-guice)
("java-guice-servlet" ,java-guice-servlet)
("java-javax-inject" ,java-javax-inject)
- ("java-tomcat" ,java-tomcat)
+ ("java-javaee-servletapi" ,java-javaee-servletapi)
("java-junit" ,java-junit)
("java-slf4j-api" ,java-slf4j-api)
("java-jsr305" ,java-jsr305)
@@ -10339,7 +10339,7 @@ static code analysis or code manipulation.")))
#t)))))
(inputs
`(("java-javax-mail" ,java-javax-mail)
- ("java-tomcat" ,java-tomcat)
+ ("servlet" ,java-javaee-servletapi)
("java-commons-compiler" ,java-commons-compiler)
("java-janino" ,java-janino)))
(native-inputs
@@ -10383,7 +10383,7 @@ This module lays the groundwork for the other two modules.")
(find-files (assoc-ref inputs input)
".*.jar"))
'("java-logback-core" "java-slf4j-api"
- "java-commons-compiler" "java-tomcat"
+ "java-commons-compiler" "servlet"
"groovy")))
":"))
(apply invoke "groovyc" "-d" "build/classes" "-j"
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index a3e5687..34fbce0 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -428,7 +428,7 @@ artifact and repository handling code.")
("java-eclipse-jetty-server-9.2" ,java-eclipse-jetty-server-9.2)
("java-eclipse-jetty-servlet-9.2" ,java-eclipse-jetty-servlet-9.2)
("java-slf4j-api" ,java-slf4j-api)
- ("java-tomcat" ,java-tomcat)
+ ("java-javaee-servletapi" ,java-javaee-servletapi)
("maven-wagon-provider-api" ,maven-wagon-provider-api)))
(synopsis "Test classes from maven-wagon")
(description "Maven Wagon is a transport abstraction that is used in Maven's
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index b76f111..e2ca538 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -5938,7 +5938,7 @@ or embedded instantiation. This package provides utility classes.")
#t)))))
(inputs
`(("slf4j" ,java-slf4j-api)
- ("servlet" ,java-tomcat)
+ ("servlet" ,java-javaee-servletapi)
("util" ,java-eclipse-jetty-util)))
(synopsis "Jetty :: IO Utility")
(description "The Jetty Web Server provides an HTTP server and Servlet
@@ -5981,7 +5981,7 @@ or embedded instantiation. This package provides IO-related utility classes."))
#t)))))
(inputs
`(("slf4j" ,java-slf4j-api)
- ("servlet" ,java-tomcat)
+ ("servlet" ,java-javaee-servletapi)
("io" ,java-eclipse-jetty-io)
("util" ,java-eclipse-jetty-util)))
(synopsis "Jetty :: Http Utility")
@@ -6016,7 +6016,7 @@ or embedded instantiation. This package provides HTTP-related utility classes."
#t)))))
(inputs
`(("slf4j" ,java-slf4j-api)
- ("servlet" ,java-tomcat)
+ ("servlet" ,java-javaee-servletapi)
("util" ,java-eclipse-jetty-util)))
(synopsis "Jetty :: JMX Management")
(description "The Jetty Web Server provides an HTTP server and Servlet
@@ -6097,7 +6097,7 @@ or embedded instantiation. This package provides the JMX management.")))
#t)))))
(inputs
`(("slf4j" ,java-slf4j-api)
- ("servlet" ,java-tomcat)
+ ("servlet" ,java-javaee-servletapi)
("http" ,java-eclipse-jetty-http)
("io" ,java-eclipse-jetty-io)
("jmx" ,java-eclipse-jetty-jmx)
@@ -6293,7 +6293,7 @@ container.")))
("java-eclipse-jetty-servlet" ,java-eclipse-jetty-servlet)
("java-eclipse-jetty-security" ,java-eclipse-jetty-security)
("java-eclipse-jetty-xml" ,java-eclipse-jetty-xml)
- ("java-tomcat" ,java-tomcat)))
+ ("java-tomcat" ,java-javaee-servletapi)))
(native-inputs
`(("java-eclipse-jetty-io" ,java-eclipse-jetty-io)
,@(package-native-inputs java-eclipse-jetty-util)))))
--
2.7.4
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [bug#32231] [PATCH 6/8] gnu: java-tomcat: Update to 8.5.32.
2018-07-21 8:14 [bug#32231] [PATCH 0/8] Tomcat related updates Björn Höfling
` (4 preceding siblings ...)
2018-07-21 8:24 ` [bug#32231] [PATCH 5/8] gnu: java: Use java-javaee-servletapi instead of java-tomcat Björn Höfling
@ 2018-07-21 8:24 ` Björn Höfling
2018-07-21 8:25 ` [bug#32231] [PATCH 7/8] gnu: java-tomcat: Remove bundled jars Björn Höfling
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Björn Höfling @ 2018-07-21 8:24 UTC (permalink / raw)
To: 32231
[-- Attachment #1: Type: text/plain, Size: 1051 bytes --]
* gnu/packages/web.scm (java-tomcat): Update to 8.5.32.
---
gnu/packages/web.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index e2ca538..008154d 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -5712,14 +5712,14 @@ encoder/decoder based on the draft-12 specification for UBJSON.")
(define-public java-tomcat
(package
(name "java-tomcat")
- (version "8.5.28")
+ (version "8.5.32")
(source (origin
(method url-fetch)
(uri (string-append "mirror://apache/tomcat/tomcat-8/v"
version "/src/apache-tomcat-" version "-src.tar.gz"))
(sha256
(base32
- "0q2bc3sajrmcx3z3vhhwp78y47ryc2ky8ssbdmfk24zvqdb76hvl"))))
+ "1qjsr6zmkdciakya4jqz0ssnsk02qlmmd898c05rasfwcrpj0xi6"))))
(build-system ant-build-system)
(inputs
`(("java-eclipse-jdt-core" ,java-eclipse-jdt-core)))
--
2.7.4
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [bug#32231] [PATCH 7/8] gnu: java-tomcat: Remove bundled jars.
2018-07-21 8:14 [bug#32231] [PATCH 0/8] Tomcat related updates Björn Höfling
` (5 preceding siblings ...)
2018-07-21 8:24 ` [bug#32231] [PATCH 6/8] gnu: java-tomcat: Update to 8.5.32 Björn Höfling
@ 2018-07-21 8:25 ` Björn Höfling
2018-07-21 8:25 ` [bug#32231] [PATCH 8/8] gnu: java-tomcat: Strip timestamps Björn Höfling
2018-07-24 22:30 ` bug#32231: [PATCH 0/8] Tomcat related updates Julien Lepiller
8 siblings, 0 replies; 10+ messages in thread
From: Björn Höfling @ 2018-07-21 8:25 UTC (permalink / raw)
To: 32231
[-- Attachment #1: Type: text/plain, Size: 1064 bytes --]
* gnu/packages/web.scm (java-tomcat)[source]: Add snippet to remove bundled jars.
---
gnu/packages/web.scm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 008154d..a3290a3 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -5719,7 +5719,13 @@ encoder/decoder based on the draft-12 specification for UBJSON.")
version "/src/apache-tomcat-" version "-src.tar.gz"))
(sha256
(base32
- "1qjsr6zmkdciakya4jqz0ssnsk02qlmmd898c05rasfwcrpj0xi6"))))
+ "1qjsr6zmkdciakya4jqz0ssnsk02qlmmd898c05rasfwcrpj0xi6"))
+ (modules '((guix build utils)))
+ ;; Delete bundled jars.
+ (snippet
+ '(begin
+ (for-each delete-file (find-files "." "\\.jar$"))
+ #t))))
(build-system ant-build-system)
(inputs
`(("java-eclipse-jdt-core" ,java-eclipse-jdt-core)))
--
2.7.4
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [bug#32231] [PATCH 8/8] gnu: java-tomcat: Strip timestamps
2018-07-21 8:14 [bug#32231] [PATCH 0/8] Tomcat related updates Björn Höfling
` (6 preceding siblings ...)
2018-07-21 8:25 ` [bug#32231] [PATCH 7/8] gnu: java-tomcat: Remove bundled jars Björn Höfling
@ 2018-07-21 8:25 ` Björn Höfling
2018-07-24 22:30 ` bug#32231: [PATCH 0/8] Tomcat related updates Julien Lepiller
8 siblings, 0 replies; 10+ messages in thread
From: Björn Höfling @ 2018-07-21 8:25 UTC (permalink / raw)
To: 32231
[-- Attachment #1: Type: text/plain, Size: 1125 bytes --]
* gnu/package/web.scm (java-tomcat)[arguments]: Add phase 'strip timestamps.
Makes build deterministic.
---
gnu/packages/web.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index a3290a3..565198f 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -5747,6 +5747,14 @@ encoder/decoder based on the draft-12 specification for UBJSON.")
(("depends=\"validate\"") "depends=\"build-prepare\"")
((",download-validate") ""))
#t))
+ (add-after 'unpack 'strip-timestamps
+ (lambda _
+ (substitute* "build.xml"
+ (("<filter token=\"YEAR\" value=.*")
+ "<filter token=\"YEAR\" value=\"1970\"/>")
+ (("<filter token=\"VERSION_BUILT\" value=.*")
+ "<filter token=\"VERSION_BUILT\" value=\"Jan 1 1970 00:00:00 UTC\"/>"))
+ #t))
(add-after 'unpack 'generate-properties
(lambda _
;; This could have been passed to make-flags, but getcwd returns
--
2.7.4
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply related [flat|nested] 10+ messages in thread
* bug#32231: [PATCH 0/8] Tomcat related updates
2018-07-21 8:14 [bug#32231] [PATCH 0/8] Tomcat related updates Björn Höfling
` (7 preceding siblings ...)
2018-07-21 8:25 ` [bug#32231] [PATCH 8/8] gnu: java-tomcat: Strip timestamps Björn Höfling
@ 2018-07-24 22:30 ` Julien Lepiller
8 siblings, 0 replies; 10+ messages in thread
From: Julien Lepiller @ 2018-07-24 22:30 UTC (permalink / raw)
To: 32231-done
[-- Attachment #1: Type: text/plain, Size: 264 bytes --]
Le Sat, 21 Jul 2018 10:14:01 +0200,
Björn Höfling <bjoern.hoefling@bjoernhoefling.de> a écrit :
> This is series of Tomcat related patches.
>
Pushed as 9936ffe77d5f69185f68c52d44ec21c9f94600e6 -
49a8684d9f20656aaa9094c02164cbf2f67b290b
Thank you!
[-- Attachment #2: Signature digitale OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread