Emmanuel Bourg pushed to branch master at Debian Java Maintainers / gradle
Commits: 8f5df809 by Emmanuel Bourg at 2026-10-20T19:18:31+02:00 Make the OSGi manifests reproducible by omitting Bnd-LastModified - - - - - 3 changed files: - debian/changelog - + debian/patches/reproducible-osgi-manifest.patch - debian/patches/series Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,10 @@ +gradle (4.6-5) unstable; urgency=medium + + * Team upload. + * Make the OSGi manifests reproducible by omitting Bnd-LastModified + + -- Emmanuel Bourg <[email protected]> Tue, 20 Oct 2026 19:17:56 +0200 + gradle (4.6-4) unstable; urgency=medium * Team upload. ===================================== debian/patches/reproducible-osgi-manifest.patch ===================================== @@ -0,0 +1,14 @@ +Description: Do not add the Bnd-LastModified header to the OSGi manifests when SOURCE_DATE_EPOCH is set +Author: Emmanuel Bourg <[email protected]> +Forwarded: not-needed +--- a/subprojects/osgi/src/main/java/org/gradle/api/internal/plugins/osgi/DefaultOsgiManifest.java ++++ b/subprojects/osgi/src/main/java/org/gradle/api/internal/plugins/osgi/DefaultOsgiManifest.java +@@ -76,7 +76,7 @@ + for (Map.Entry<String, Attributes> ent : getSections().entrySet()) { + effectiveManifest.attributes(ent.getValue(), ent.getKey()); + } +- if (classesDir != null) { ++ if (classesDir != null && System.getenv("SOURCE_DATE_EPOCH") == null) { + long mod = classesDir.lastModified(); + if (mod > 0) { + effectiveManifest.getAttributes().put(Analyzer.BND_LASTMODIFIED, mod); ===================================== debian/patches/series ===================================== @@ -47,3 +47,4 @@ java9-modules-compatibility.patch serializer-equality.patch gradle-debian-helper-plugin-filter.patch jdk24-generated-class-signature.patch +reproducible-osgi-manifest.patch View it on GitLab: https://salsa.debian.org/java-team/gradle/-/commit/8f5df809fa61703e3c8e0a1bc671241c041588d8 -- View it on GitLab: https://salsa.debian.org/java-team/gradle/-/commit/8f5df809fa61703e3c8e0a1bc671241c041588d8 You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
_______________________________________________ pkg-java-commits mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-commits

