On Sun, Jul 31, 2022 at 10:00:19PM +0000, Klemens Nanni wrote:
> On Thu, Jun 23, 2022 at 03:57:17PM +0000, Klemens Nanni wrote:
> > On a simple cwm(1) setup without any DE, I noticed the following
> > (see net/tdesktop/Makefile r1.31):
> >
> > opening videos/pictures worked only once, i.e. clicking on the first
> > photo after startup would show it in Qt's media viewer, another attempt
> > would show nothing (video's audio would still be played)
>
> I have no idea what changed, but this no longer happens on my exact same
> setup...
>
> The qt6 flavour works as well as the qt5 flavour for me with cwm and so
> far I've had zero reports about any tdesktop issue whatsoever.
>
> Shall we save some build time and use qt6 by default?
>
> (Still building over night...)
Built and packaged fine, but I forgot the quirks entry, otherwise
tdesktop-qt6 would not be merged into tdesktop.
Full diff below with cleanly regenerated WANTLIB and missing quirk:
$ export TRUSTED_PKG_PATH=/usr/port/packages/amd64/all
$ doas pkg_add -u
quirks-6.12->6.13: ok
tdesktop-4.0.2p0->4.0.2p1: ok
[tdesktop-4.0.2p1]tdesktop-qt6-4.0.2p0->: ok
Running tags: ok
Read shared items: ok
Couldn't find updates for [...]
OK?
Index: net/tdesktop/Makefile
===================================================================
RCS file: /cvs/ports/net/tdesktop/Makefile,v
retrieving revision 1.35
diff -u -p -r1.35 Makefile
--- net/tdesktop/Makefile 21 Jul 2022 14:11:16 -0000 1.35
+++ net/tdesktop/Makefile 1 Aug 2022 15:47:48 -0000
@@ -6,7 +6,7 @@ NOT_FOR_ARCHS = ${BE_ARCHS} i386
COMMENT = Telegram Desktop messenger
PORTROACH = limit:-full$$
V = 4.0.2
-REVISION = 0
+REVISION = 1
DISTNAME = tdesktop-${V}-full
PKGNAME = ${DISTNAME:-full=}
CATEGORIES = net
@@ -23,10 +23,13 @@ MAINTAINER = Andrew Krasavin <noiseless
# rlottie: LGPL 2.1 with freetype, LGPL, MIT, BSD dependencies
PERMIT_PACKAGE = Yes
-WANTLIB += ${COMPILER_LIBCXX} absl_strings avcodec avformat avutil c crypto
-WANTLIB += gio-2.0 giomm-2.4 glib-2.0 glibmm-2.4 gobject-2.0 hunspell-1.7 jpeg
-WANTLIB += lz4 m openal qrcodegencpp rnnoise sigc-2.0 swresample swscale tg_owt
-WANTLIB += xcb xcb-keysyms xcb-record xcb-screensaver xxhash z
+WANTLIB += ${COMPILER_LIBCXX} Qt6Core Qt6Core5Compat Qt6Gui Qt6Network
+WANTLIB += Qt6OpenGL Qt6OpenGLWidgets Qt6Svg Qt6Widgets absl_strings
+WANTLIB += avcodec avformat avutil c crypto gio-2.0 giomm-2.4
+WANTLIB += glib-2.0 glibmm-2.4 gobject-2.0 hunspell-1.7 jpeg lz4
+WANTLIB += m openal qrcodegencpp rnnoise sigc-2.0 swresample swscale
+WANTLIB += tg_owt xcb xcb-keysyms xcb-record xcb-screensaver xxhash
+WANTLIB += z
# C++17 set below
COMPILER = base-clang ports-gcc
@@ -87,40 +90,10 @@ CFLAGS += -DIOAPI_NO_64
# unported and required
NEEDED_BUNDLES += rlottie tgcalls
-
-FLAVORS = qt6
-FLAVOR ?= # empty/qt5
-.if ${FLAVOR:Mqt6}
-# avoid conflict with unflavored package to allow installing both
-FULLPKGNAME = tdesktop${FLAVOR_EXT}-${V}
-WANTLIB += Qt6Core Qt6Core5Compat Qt6Gui Qt6Network Qt6OpenGL Qt6OpenGLWidgets
-WANTLIB += Qt6Svg Qt6Widgets
-
MODULES += x11/qt6
LIB_DEPENDS += x11/qt6/qt5compat \
x11/qt6/qtsvg
RUN_DEPENDS += x11/qt6/qtimageformats
-
-post-install:
- mv ${PREFIX}/bin/telegram-desktop{,${FLAVOR_EXT}}
- mv ${PREFIX}/share/applications/telegramdesktop{,${FLAVOR_EXT}}.desktop
- sed -i \
- -e /Name=/s,$$,' (${FLAVOR_EXT})', \
- -e /Exec=/s,desktop,\&${FLAVOR_EXT}, \
- -e /Icon=/s,$$,${FLAVOR_EXT}, \
- ${PREFIX}/share/applications/telegramdesktop${FLAVOR_EXT}.desktop
- find ${PREFIX} -type f -name telegram.png -execdir \
- mv {} telegram${FLAVOR_EXT}.png \;
- mv ${PREFIX}/share/metainfo/telegramdesktop{,${FLAVOR_EXT}}.metainfo.xml
-.else
-WANTLIB += Qt5Core Qt5Gui Qt5Network Qt5Svg Qt5Widgets
-
-MODULES += x11/qt5
-LIB_DEPENDS += x11/qt5/qtsvg
-RUN_DEPENDS += x11/qt5/qtimageformats
-CONFIGURE_ARGS += -DDESKTOP_APP_QT6=OFF
-.endif
-
post-extract:
# All bundles:
Index: net/tdesktop/pkg/DESCR
===================================================================
RCS file: /cvs/ports/net/tdesktop/pkg/DESCR,v
retrieving revision 1.2
diff -u -p -r1.2 DESCR
--- net/tdesktop/pkg/DESCR 3 Jul 2022 14:57:12 -0000 1.2
+++ net/tdesktop/pkg/DESCR 31 Jul 2022 21:56:57 -0000
@@ -1,6 +1,2 @@
Telegram Desktop is the official desktop client for the Telegram messenger,
based on the Telegram API and the MTProto secure protocol.
-
-Available flavors:
-
- qt6: Built against Qt 6 (default upstream) instead of Qt 5
Index: net/tdesktop/pkg/PLIST
===================================================================
RCS file: /cvs/ports/net/tdesktop/pkg/PLIST,v
retrieving revision 1.3
diff -u -p -r1.3 PLIST
--- net/tdesktop/pkg/PLIST 3 Jul 2022 14:57:12 -0000 1.3
+++ net/tdesktop/pkg/PLIST 31 Jul 2022 21:54:11 -0000
@@ -1,13 +1,14 @@
-@bin bin/telegram-desktop${FLAVOR_EXT}
-share/applications/telegramdesktop${FLAVOR_EXT}.desktop
-share/icons/hicolor/128x128/apps/telegram${FLAVOR_EXT}.png
-share/icons/hicolor/16x16/apps/telegram${FLAVOR_EXT}.png
-share/icons/hicolor/256x256/apps/telegram${FLAVOR_EXT}.png
-share/icons/hicolor/32x32/apps/telegram${FLAVOR_EXT}.png
-share/icons/hicolor/48x48/apps/telegram${FLAVOR_EXT}.png
-share/icons/hicolor/512x512/apps/telegram${FLAVOR_EXT}.png
-share/icons/hicolor/64x64/apps/telegram${FLAVOR_EXT}.png
+@pkgpath net/tdesktop,qt6
+@bin bin/telegram-desktop
+share/applications/telegramdesktop.desktop
+share/icons/hicolor/128x128/apps/telegram.png
+share/icons/hicolor/16x16/apps/telegram.png
+share/icons/hicolor/256x256/apps/telegram.png
+share/icons/hicolor/32x32/apps/telegram.png
+share/icons/hicolor/48x48/apps/telegram.png
+share/icons/hicolor/512x512/apps/telegram.png
+share/icons/hicolor/64x64/apps/telegram.png
share/metainfo/
@tag update-desktop-database
@tag gtk-update-icon-cache %D/share/icons/hicolor
-share/metainfo/telegramdesktop${FLAVOR_EXT}.metainfo.xml
+share/metainfo/telegramdesktop.metainfo.xml
Index: devel/quirks/Makefile
===================================================================
RCS file: /cvs/ports/devel/quirks/Makefile,v
retrieving revision 1.1396
diff -u -p -r1.1396 Makefile
--- devel/quirks/Makefile 29 Jul 2022 15:26:32 -0000 1.1396
+++ devel/quirks/Makefile 1 Aug 2022 15:40:53 -0000
@@ -3,7 +3,7 @@ CATEGORIES = devel databases
DISTFILES =
# API.rev
-PKGNAME = quirks-6.12
+PKGNAME = quirks-6.13
PKG_ARCH = *
MAINTAINER = Marc Espie <espie@openbsd.org>
Index: devel/quirks/files/Quirks.pm
===================================================================
RCS file: /cvs/ports/devel/quirks/files/Quirks.pm,v
retrieving revision 1.1405
diff -u -p -r1.1405 Quirks.pm
--- devel/quirks/files/Quirks.pm 29 Jul 2022 15:26:32 -0000 1.1405
+++ devel/quirks/files/Quirks.pm 1 Aug 2022 15:41:37 -0000
@@ -731,6 +731,7 @@ my $stem_extensions = {
'py-requests' => 'py3-requests',
'py-chardet' => 'py3-chardet',
'chrome-gnome-shell' => 'gnome-browser-connector',
+ 'tdesktop-qt6' => 'tdesktop',
};
my $obsolete_reason = {};
No comments:
Post a Comment