summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@friendly-machines.com>2026-04-01 01:24:28 +0200
committerDanny Milosavljevic <dannym@friendly-machines.com>2026-05-03 02:30:27 +0200
commit2d316f68a9b14812a0c7895da2cc3d929009d37e (patch)
treec688b6d0bae78c3c8ef04897411f45c1a163d8db /gnu/packages
parent95d5ecee8121145a51ab6844645b73a8c35114f5 (diff)
gnu: java-slf4j-api: Add Bundle manifest.
* gnu/packages/java.scm (java-slf4j-api)[arguments]<#:phases>{regenerate-jar}: Generate osgi-manifest.mf. Change-Id: I69f80fdd2b337a683c58b74027a268eac8f496dd
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/java.scm16
1 files changed, 15 insertions, 1 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index b0c98d51474..5464f9cd7e2 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -8964,7 +8964,21 @@ more efficient storage-wise than an uncompressed bitmap (as implemented in the
8964 ;; we get the error "This code should have never made it into slf4j-api.jar" 8964 ;; we get the error "This code should have never made it into slf4j-api.jar"
8965 (delete-file-recursively "build/classes/org/slf4j/impl") 8965 (delete-file-recursively "build/classes/org/slf4j/impl")
8966 (invoke "jar" "-cf" "build/jar/slf4j-api.jar" "-C" 8966 (invoke "jar" "-cf" "build/jar/slf4j-api.jar" "-C"
8967 "build/classes" "."))) 8967 "build/classes" ".")
8968 ;; The NetBeans wrapper module has an empty jar target and
8969 ;; relies on Bundle-SymbolicName from the Maven Central jar.
8970 (call-with-output-file "osgi-manifest.mf"
8971 (lambda (port)
8972 (display (string-append
8973 "Bundle-ManifestVersion: 2\n"
8974 "Bundle-SymbolicName: slf4j.api\n"
8975 "Bundle-Version: " ,version "\n"
8976 "Export-Package: org.slf4j,org.slf4j.spi,"
8977 "org.slf4j.helpers,org.slf4j.event\n"
8978 "Import-Package: org.slf4j.impl\n")
8979 port)))
8980 (invoke "jar" "ufm" "build/jar/slf4j-api.jar"
8981 "osgi-manifest.mf")))
8968 (add-before 'check 'dont-test-abstract-classes 8982 (add-before 'check 'dont-test-abstract-classes
8969 (lambda _ 8983 (lambda _
8970 ;; abstract classes are not meant to be run with junit 8984 ;; abstract classes are not meant to be run with junit