Bug 273496 - graphics/ristretto: depend on XFCE's Tumbler
Summary: graphics/ristretto: depend on XFCE's Tumbler
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-xfce (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-01 14:37 UTC by Anton Saietskii
Modified: 2023-09-02 09:57 UTC (History)
1 user (show)

See Also:
madpilot: maintainer-feedback+


Attachments
updated dependency (configurable, on by default) (1.04 KB, patch)
2023-09-01 14:37 UTC, Anton Saietskii
madpilot: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Saietskii 2023-09-01 14:37:44 UTC
Created attachment 244559 [details]
updated dependency (configurable, on by default)

Tumbler is being used for creating thumbnails, but doesn't get installed with Ristretto since only Thunar depends on first one. Adding a run dependency for those who doesn't use Thunar.
Comment 1 Guido Falsi freebsd_committer freebsd_triage 2023-09-01 14:44:29 UTC
I'm not sure I understand fully.

Is ristretto failing to show thumbnails in its own window if tumbler is not present?


It that's the case I agree a runtime dep makes sense. Although I'd change the option wording slightly t:

Install Tumbler dependency for creating thumbnails.


"Use" does not look correct for the options, since tumbler will be used if already present whatever the option, that is, disabling the option will not prevent tumbler usage. SO my description more correctly describes what the option actually does.
Comment 2 Anton Saietskii 2023-09-01 14:58:21 UTC
(In reply to Guido Falsi from comment #1)

> Is ristretto failing to show thumbnails in its own window if tumbler is not present?
Exactly, and it even explicitly suggests installing Tumbler.

Regarding latter: agreed with wording, you're absolutely right it will use Tumbler just if detected (I believe detection is done through D-Bus). And it's not required to link with libtumbler, thus RUN_DEPENDS instead of LIB_ one.
Comment 3 Guido Falsi freebsd_committer freebsd_triage 2023-09-01 20:10:12 UTC
Comment on attachment 244559 [details]
updated dependency (configurable, on by default)

Approving patch with minor changes.

Will commit once done with standard testing.
Comment 4 commit-hook freebsd_committer freebsd_triage 2023-09-02 09:41:50 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b7ca0e85105a9ac68a9d9ea1bdac98dfcf766333

commit b7ca0e85105a9ac68a9d9ea1bdac98dfcf766333
Author:     Anton Saietskii <vsasjason@gmail.com>
AuthorDate: 2023-09-02 09:38:11 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2023-09-02 09:38:11 +0000

    graphics/ristretto: Add optional tumbler dependency

    Ristretto uses xfce tumbler service via dbus to generate thumbnails.

    This adds a new TUMBLER option (on by defualt) to set an explicit
    runtime dependency for tumbler.

    PR:             273496

 graphics/ristretto/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
Comment 5 Guido Falsi freebsd_committer freebsd_triage 2023-09-02 09:55:40 UTC
Patch committed. Thanks!
Comment 6 commit-hook freebsd_committer freebsd_triage 2023-09-02 09:57:55 UTC
A commit in branch 2023Q3 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=161c8368dc2326187d48d0f026f0212e961ab857

commit 161c8368dc2326187d48d0f026f0212e961ab857
Author:     Anton Saietskii <vsasjason@gmail.com>
AuthorDate: 2023-09-02 09:38:11 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2023-09-02 09:56:51 +0000

    graphics/ristretto: Add optional tumbler dependency

    Ristretto uses xfce tumbler service via dbus to generate thumbnails.

    This adds a new TUMBLER option (on by defualt) to set an explicit
    runtime dependency for tumbler.

    PR:             273496
    (cherry picked from commit b7ca0e85105a9ac68a9d9ea1bdac98dfcf766333)

 graphics/ristretto/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)