Source: plm Version: 2.9.2-1 Followup-For: Bug #1048703 Control: tags -1 patch
Dear Maintainer, The enclosed patch will allow you to solve this bug. Cheers, -- Pierre
diff -Nru plm-2.9.2/debian/rules plm-2.9.2/debian/rules --- plm-2.9.2/debian/rules 2020-10-11 21:54:58.000000000 +0200 +++ plm-2.9.2/debian/rules 2024-05-13 22:03:35.000000000 +0200 @@ -26,11 +26,28 @@ %: dh $@ --with javahelper +execute_before_dh_auto_configure: + # Making backups of files that will be altered during the build + for F in $$(find l10n/engine -name "*.po" -o -name "*.pot") lib/resources/plm.configuration.properties; do \ + cp $$F $${F}.save ;\ + done + override_dh_auto_clean: dh_auto_clean find . -type f -name \*.java.json-simple \ -exec sh -c 'file={} && mv $$file $${file%.json-simple}' \; -print +override_dh_clean: + dh_clean + # Removing files left there by the build system. + find . -name "*.jar" -delete + -rm dist/*.tar.bz2 + -rm errors-*.txt + # Restoring files that were altered during the build + for F in $$(find . -name "*.save") ; do \ + mv $$F $${F%.save} ;\ + done + override_dh_auto_build: find . -type f -name \*.java -exec grep -q 'import @JSON_SIMPLE_PACKAGE@' {} \; \ -exec sed -i.json-simple \