Bug 278142 - deskutils/syncthingtray: Update to 1.5.1 / Flavorize qt
Summary: deskutils/syncthingtray: Update to 1.5.1 / Flavorize qt
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: Nuno Teixeira
URL: https://github.com/Martchus/syncthing...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-03 14:27 UTC by Denis Shaposhnikov
Modified: 2024-04-09 07:18 UTC (History)
1 user (show)

See Also:
dsh: maintainer-feedback+


Attachments
update to 1.5.1 (2.25 KB, patch)
2024-04-03 14:27 UTC, Denis Shaposhnikov
no flags Details | Diff
update to 1.5.1 (7.52 KB, patch)
2024-04-05 19:50 UTC, Denis Shaposhnikov
dsh: maintainer-approval+
Details | Diff
update to 1.5.1 (7.47 KB, patch)
2024-04-07 14:54 UTC, Denis Shaposhnikov
dsh: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Shaposhnikov 2024-04-03 14:27:41 UTC
Created attachment 249678 [details]
update to 1.5.1

Update deskutils/syncthingtray to 1.5.1

https://github.com/Martchus/syncthingtray/releases/tag/v1.5.1
Comment 1 Nuno Teixeira freebsd_committer freebsd_triage 2024-04-03 16:03:19 UTC
Hello,

According to https://cgit.freebsd.org/ports/commit/?id=a5a118a0c713b0c3c793d8dc03e944192865d8ff , webkit was removed.

This condition should be fixed to webengine only.

---
.if ${ARCH} == amd64 || ${ARCH} == i386
USE_QT+=        webengine
.else
CMAKE_ARGS+=    -DWEBVIEW_PROVIDER=webkit
USE_QT+=        webkit
.endif
---

Thanks
Comment 2 Nuno Teixeira freebsd_committer freebsd_triage 2024-04-03 16:14:43 UTC
(In reply to Nuno Teixeira from comment #1)

(...)

**According with:
MOVED
www/qt5-webkit||2023-12-31|Has expired: No longer actively maintained, increasing security concerns

URL commit above is an example of one of the fixes.
Comment 3 Denis Shaposhnikov 2024-04-03 17:34:39 UTC
(In reply to Nuno Teixeira from comment #1)
Thank you. I'll make using of webengine unconditionally and upload new patch.
Comment 4 Denis Shaposhnikov 2024-04-05 19:50:08 UTC
Created attachment 249744 [details]
update to 1.5.1

I updated the patch. Now webengine dependency is optional and enabled by default. Also I added flavors for qt5 and qt6 builds. By default it builds qt5 flavor.
Comment 5 Nuno Teixeira freebsd_committer freebsd_triage 2024-04-06 21:32:38 UTC
- portlint complains about using spaces instead of tabs after variables

- desktop-file-utils dependancy could be safely removed since .desktop file doesn't include MimeType entry.

- Q/A checks warnings:

@qt5:
====> Running Q/A tests (stage-qa)
Warning: you may not need USES=desktop-file-utils
Error: /usr/local/bin/syncthingtray is linked to /usr/local/lib/libX11.so.6 from x11/libX11 but it is not declared as a dependency
Warning: you need USE_XORG+=x11
Warning: you might not need LIB_DEPENDS on libKF5Plasma.so
Warning: you might not need LIB_DEPENDS on libQt5Location.so
Warning: you might not need LIB_DEPENDS on libQt5QuickControls2.so
Warning: you might not need LIB_DEPENDS on libQt5X11Extras.so

@qt6:
====> Running Q/A tests (stage-qa)
Warning: you may not need USES=desktop-file-utils
Error: /usr/local/bin/syncthingtray is linked to /usr/local/lib/libX11.so.6 from x11/libX11 but it is not declared as a dependency
Warning: you need USE_XORG+=x11
Error: /usr/local/bin/syncthingtray is linked to /usr/local/lib/qt6/libQt6Positioning.so.6 from devel/qt6-positioning but it is not declared as a dependency
Warning: you might not need LIB_DEPENDS on libPlasma.so
Warning: you might not need LIB_DEPENDS on libQt6Location.so

Note: tested with WEBENGINE option ON.

Cheers
Comment 6 Denis Shaposhnikov 2024-04-07 14:54:04 UTC
Created attachment 249807 [details]
update to 1.5.1

Hi,

I updated the patch and fixed testport warnings.
Comment 7 Nuno Teixeira freebsd_committer freebsd_triage 2024-04-08 10:33:51 UTC
(In reply to Denis Shaposhnikov from comment #6)

Just some final adjustments (against your patch):

Update COMMENT to show what qt version is in use (auto-generated)
< COMMENT=      Qt 5-based Syncthing tray application
---
> COMMENT=      Qt ${FLAVOR:S/qt//}-based Syncthing tray application


Add xorg to USES so USE_XORG could be read.
< USES=         cmake:insource compiler:c++17-lang iconv perl5
---
> USES=         cmake:insource compiler:c++17-lang iconv perl5 xorg


Fix "+=" to "="
< USE_XORG+=    x11
---
> USE_XORG=     x11


Pet qt6 Q/A check (linking to positioning)
< USE_QT+=      base positioning:build
---
> USE_QT+=      base positioning


==============================
While we are here some important recommendations:

1. Switch PORTVERSION to DISTVERSION:
https://docs.freebsd.org/en/books/porters-handbook/book/#makefile-master_sites-github

2. Remove "compiler:c++17-lang" from USES:
https://docs.freebsd.org/en/books/porters-handbook/book/#uses-compiler

available compilers are capable of that feature and also because cmake defines upstream feature.
==============================

No need to upload a new patch.

If you plan to include 1. and 2. changes, please confirm so I can commit.

Cheers
Comment 8 Denis Shaposhnikov 2024-04-08 14:35:50 UTC
(In reply to Nuno Teixeira from comment #7)
Thank you. Please go on and do all changes, I agree.
Comment 9 commit-hook freebsd_committer freebsd_triage 2024-04-09 07:14:43 UTC
A commit in branch main references this bug:

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

commit 0cc7fb1651f649a99f9fa5a9a1bcf9216b2a1615
Author:     Denis Shaposhnikov <dsh@bamus.cz>
AuthorDate: 2024-04-09 07:10:10 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2024-04-09 07:13:56 +0000

    deskutils/syncthingtray: Update to 1.5.1 / Flavorize Qt

    - Switch to DISTVERSION
    - Drop compiler from USES
    - Flavorize Qt
    - Remove dependency on deprecated webkit

    ChangeLog:      https://github.com/Martchus/syncthingtray/releases/tag/v1.5.1
    PR:             278142

 deskutils/syncthingtray/Makefile                   | 69 ++++++++++++++--------
 deskutils/syncthingtray/distinfo                   | 10 ++--
 ...cthingtray_plasmoid_lib_syncthingapplet.h (new) | 12 ++++
 deskutils/syncthingtray/pkg-plist                  |  7 ++-
 4 files changed, 65 insertions(+), 33 deletions(-)
Comment 10 Nuno Teixeira freebsd_committer freebsd_triage 2024-04-09 07:18:58 UTC
Committed, thanks!