Tony Mancill pushed to branch master at Debian Java Maintainers / lz4-java


Commits:
ba4e5a01 by tony mancill at 2026-09-01T22:48:48-07:00
Update configure step to always patch pom

- - - - -
0d185fb7 by tony mancill at 2026-09-01T22:50:22-07:00
Prepare changelog for upload

- - - - -


2 changed files:

- debian/changelog
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+lz4-java (1.11.2+ds1-2) unstable; urgency=medium
+
+  * Update debian/rules to always patch the pom during dh_auto_configure
+    Fixes FTBFS bug with binary-only builds (--no-arch-all --arch-any)
+
+ -- tony mancill <[email protected]>  Tue, 01 Sep 2026 22:48:53 -0700
+
 lz4-java (1.11.2+ds1-1) unstable; urgency=medium
 
   * Migrate to github.com/yawkat/lz4-java/ for upstream


=====================================
debian/rules
=====================================
@@ -11,8 +11,19 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all
        dh $@ --buildsystem=maven --with maven-repo-helper
 
 override_dh_auto_configure:
+       # Version the jar to match the upstream package version
        sed -i 's/@LZ4_JAVA_VERSION@/$(DEB_VERSION_UPSTREAM)/' pom.xml
-       dh_auto_configure
+       # Run the maven buildsystem configure steps directly instead of
+       # via dh_auto_configure so the pom is patched  during both
+       # --arch-all and --arch-any (only) builds.  This ensures that
+       # Maven doesn't try to invoke the plugins excluded in
+       # debian/maven.ignoreRules during any build.
+       if [ ! -e debian/stamp-poms-patched ]; then \
+                /usr/share/maven-debian-helper/copy-repo.sh $(CURDIR)/debian; \
+                mh_patchpoms -pliblz4-java --debian-build --keep-pom-version \
+                    --maven-repo=$(CURDIR)/debian/maven-repo; \
+                touch debian/stamp-poms-patched; \
+        fi
 
 override_dh_auto_build-indep:
        dh_auto_build -- package -P '!native-linux' 
-Dmaven.compiler.source=$(java_compat_level) 
-Dmaven.compiler.target=$(java_compat_level)



View it on GitLab: 
https://salsa.debian.org/java-team/lz4-java/-/compare/985d3be9d4896a07d869a6cb405e5f9c845d71bb...0d185fb7544da50eeacc704d34e295648de155d6

-- 
View it on GitLab: 
https://salsa.debian.org/java-team/lz4-java/-/compare/985d3be9d4896a07d869a6cb405e5f9c845d71bb...0d185fb7544da50eeacc704d34e295648de155d6
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

Reply via email to