Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#42595 - [unifi] Installation dependencies (CUPS)

Attached to Project: Community Packages
Opened by Daniel Müller (Ellric) - Wednesday, 29 October 2014, 10:41 GMT
Last edited by Sébastien Luttringer (seblu) - Sunday, 14 December 2014, 01:02 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Guillaume ALAUX (galaux)
Sébastien Luttringer (seblu)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
I Installed the unifi package (Version 3.2.5-1)

I started the service with systemctl start unifi. After a couple of seconds the service died. After looking through the journal I discovered that java needed a shared lib (cups) which was not installed on my system and not requested during the installation of the unifi package.

the installation of cups (and its dependencies) resolved the error and the unifi controller started as expected.

Additional info:
* 3.2.5-1
* Oct 29 11:09:32 hostname java[9591]: Caused by: java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-7-openjdk/jre/lib/amd64/headless/libmawt.so: libcups.so.2: cannot open shared object file: No such f

Steps to reproduce:
Install unifi package (3.2.5-1) (pacman -S unifi) on a system where cups is not installed
start unifi (systemctl start unifi)
check logs after a couple of seconds (journalctl -> scroll to end)
This task depends upon

Closed by  Sébastien Luttringer (seblu)
Sunday, 14 December 2014, 01:02 GMT
Reason for closing:  Fixed
Additional comments about closing:  jre7-openjdk-headless 7.u71_2.5.3-3
Comment by Guillaume ALAUX (galaux) - Friday, 07 November 2014, 10:34 GMT
I can reproduce this if I uninstall "libcups" on my system.

I see a lot of issues on the web about this (on Arch Linux and others and for different Java apps):

https://bugs.gentoo.org/show_bug.cgi?id=486042
http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2012-September/020230.html
http://openeye.openmods.info/crashes/6cca6aebc088731492c11f583c06efd9
https://github.com/webbukkit/dynmap/issues/987
https://stackoverflow.com/questions/20158630/android-studio-wont-start-on-linux-complaining-about-libcups
https://aur.archlinux.org/packages/sp/splitter/PKGBUILD

Also it seems IcedTea project (which we use to build our OpenJDK7) is aware of the strong dependency on libcups:

http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=877

So I would be in favor of adding "libcups" as a makedepends and depends for jre7-openjdk-headless.
Comment by Sébastien Luttringer (seblu) - Friday, 07 November 2014, 20:15 GMT
I agree.
Comment by Sébastien Luttringer (seblu) - Wednesday, 19 November 2014, 01:27 GMT
Guillaume, I see you forget to update libcups deps in last testing version of jre7-openjdk-headless.
Comment by Guillaume ALAUX (galaux) - Wednesday, 19 November 2014, 08:51 GMT
My bad. Forgot it as pushing to testing was not planned. Rebuilding right now. Thanks for the reminder.

Loading...