JabRef / jabref

Graphical Java application for managing BibTeX and biblatex (.bib) databases
https://devdocs.jabref.org
MIT License
3.64k stars 2.59k forks source link

packaging? rpm remove does not work #12213

Open ilippert opened 2 days ago

ilippert commented 2 days ago

JabRef version

Other (please describe below)

Operating system

GNU / Linux

Details on version and operating system

JabRef 6.0--2024-11-17--572c823 Linux 6.11.7-300.fc41.x86_64 amd64 Java 23.0.1 JavaFX 23.0.1+4

Checked with the latest development build (copy version output from About dialog)

Steps to reproduce the behaviour

  1. on Fedora use dnf to remove the rpm.

this does not work anymore.

Appendix

...

shell report ``` root@PC:~# dnf remove jabref Package Arch Version Repository Size Removing: jabref x86_64 6.0.6580-1 @commandline 350.4 MiB jabref x86_64 6.0.6588-1 356.4 MiB Transaction Summary: Removing: 2 packages Is this ok [y/N]: y Running transaction [1/3] Prepare transaction 100% | 2.0 B/s | 2.0 B | 00m01s >>> Running pre-uninstall scriptlet: jabref-0:6.0.6588-1.x86_64 >>> Error in pre-uninstall scriptlet: jabref-0:6.0.6588-1.x86_64 >>> Scriptlet output: >>> /var/tmp/rpm-tmp.LOQnhY: line 116: do_if_file_belongs_to_single_package: command not found >>> /var/tmp/rpm-tmp.LOQnhY: line 117: do_if_file_belongs_to_single_package: command not found >>> /var/tmp/rpm-tmp.LOQnhY: line 118: do_if_file_belongs_to_single_package: command not found >>> >>> [RPM] %preun(jabref-6.0.6588-1.x86_64) scriptlet failed, exit status 127 >>> Running pre-uninstall scriptlet: jabref-0:6.0.6580-1.x86_64 >>> Error in pre-uninstall scriptlet: jabref-0:6.0.6580-1.x86_64 >>> Scriptlet output: >>> /var/tmp/rpm-tmp.w4SfXT: line 116: do_if_file_belongs_to_single_package: command not found >>> /var/tmp/rpm-tmp.w4SfXT: line 117: do_if_file_belongs_to_single_package: command not found >>> /var/tmp/rpm-tmp.w4SfXT: line 118: do_if_file_belongs_to_single_package: command not found >>> >>> [RPM] jabref-6.0.6588-1.x86_64: erase failed >>> [RPM] %preun(jabref-6.0.6580-1.x86_64) scriptlet failed, exit status 127 Transaction failed: Rpm transaction failed. ```
Siedlerchr commented 23 hours ago

Thanks for the report, seems like there were some jdk changes related to the spec file.

Can you test the binary from https://github.com/JabRef/jabref/pull/12217 once it's ready? (there will be a comment)

Siedlerchr commented 22 hours ago

https://builds.jabref.org/pull/12217/merge