Package Details: ayugram-desktop 5.12.3-6

Git Clone URL: https://aur.archlinux.org/ayugram-desktop.git (read-only, click to copy)
Package Base: ayugram-desktop
Description: Desktop Telegram client with good customization and Ghost mode.
Upstream URL: https://github.com/AyuGram/AyuGramDesktop
Keywords: anti-recall ayugram telegram
Licenses: GPL-3.0-only
Submitter: ZhangHua
Maintainer: ZhangHua
Last Packager: ZhangHua
Votes: 12
Popularity: 1.57
First Submitted: 2023-11-06 01:05 (UTC)
Last Updated: 2025-04-05 03:17 (UTC)

Required by (0)

Sources (40)

Latest Comments

1 2 3 4 5 6 7 Next › Last »

ZhangHua commented on 2025-04-24 01:14 (UTC)

@Shinaii I think I cannot help you on segfaults because I am not familiar with them. As for system freezing when running LTO, that's because running LTO does require much resource. Maybe you can check if there is any prebuilt package? AFAIK, ayugram-desktop-bin use prebuilt package by andontie AUR, although it is outdated, andontie AUR's is not. Maybe you can have a try, but I cannot guarantee that it is safe, because I do not participate in. Besides, building this package with GitHub Action should also be fine, the only problem is that GitHub Action preinstalls many toolchains and its disk space is not enough, but you can workaround this by using a cleanup action in market place.

Shinaii commented on 2025-04-22 15:35 (UTC)

@ZhangHua Sorry i didn't Update my comment. I figured out the same over the Weekend and limited the jobs to 2 and changed the optimization level in multiple tries. since i never used the swap and didn't even get close to using it.

Im Running into segfaults the whole time and the closest i got was to the last file on -01 with LTO's but my system froze.

ZhangHua commented on 2025-04-18 07:54 (UTC)

@Shinaii Due to that there is no log, I cannot help you but only guess what happening. As this PKGBUILD use ninja to build ayugram and ninja usually run jobs as many as possible, I guess the reason why you failed building is your memory is not enough. If my guess is correct, you may need to install more RAM, use more swap or simply turn to using prebuilt package. You can set environment variable VERBOSE=1 to let cmake print detailed output, that may help diagnosing.

Shinaii commented on 2025-04-18 07:39 (UTC)

Sadly i can't build it anymore... I also can't provide any errors since it fails everytime at a diffrent thing

ZhangHua commented on 2025-04-05 00:40 (UTC)

@tequfie Thank you for your advice, I will add that patch. It looks like @laoyou2333's problem may also reated to this? That also explains why I cannot reproduce on my PC, because I was not using Qt 6.9.0 at that time.

tequfie commented on 2025-04-03 14:12 (UTC) (edited on 2025-04-03 16:40 (UTC) by tequfie)

@ZhangHua Build fails due to Qt 6.9.0 update, that not installing for now in clean chroot directory, but problem will occur soon after releasing and moving new Qt version in main extra repo in couple days. Here the details: https://github.com/desktop-app/lib_base/pull/268

It's neccesary to patch base_linux_xdp_utilities.cpp according to the instructions in the link above and build with new Qt libs, otherwise Ayugram will not build and work with Qt 6.9, and with building in chroot env with Qt 6.8.3, it will show error message in terminal after attempt to execute:

ayugram-desktop: symbol lookup error: ayugram-desktop: undefined symbol: _ZTI20QGenericUnixServices, version Qt_6_PRIVATE_API

So, it need to be patched. Here's patch for succesfull build:

diff --git a/src/AyuGramDesktop-5.12.3/Telegram/lib_base/base/platform/linux/base_linux_xdp_utilities.cpp b/src/AyuGramDesktop-5.12.3/Telegram/lib_base/base/platform/linux/base_linux_xdp_utilities.cpp
index 8aca67c..80626af 100644
--- a/src/AyuGramDesktop-5.12.3/Telegram/lib_base/base/platform/linux/base_linux_xdp_utilities.cpp
+++ b/src/AyuGramDesktop-5.12.3/Telegram/lib_base/base/platform/linux/base_linux_xdp_utilities.cpp
@@ -16,7 +16,11 @@
 #if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
 #include <qpa/qplatformintegration.h>
 #include <private/qguiapplication_p.h>
+#if QT_VERSION >= QT_VERSION_CHECK(6, 9, 0)
+#include <private/qdesktopunixservices_p.h>
+#else
 #include <private/qgenericunixservices_p.h>
+#endif // Qt >= 6.9.0
 #endif // Qt >= 6.5.0

 #include <sstream>
@@ -39,7 +43,11 @@ std::string ParentWindowID(QWindow *window) {
    }

 #if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
+#if QT_VERSION >= QT_VERSION_CHECK(6, 9, 0)
+   if (const auto services = dynamic_cast<QDesktopUnixServices*>(
+#else
    if (const auto services = dynamic_cast<QGenericUnixServices*>(
+#endif // Qt >= 6.9.0
            QGuiApplicationPrivate::platformIntegration()->services())) {
        return services->portalWindowIdentifier(window).toStdString();
    }

It's universal patch, applicable for building with older and newer Qt versions alltogether. Or wait when lib_base fix comes to master branch. So, patch is temporary, until fix will be mreged.

ZhangHua commented on 2025-03-31 10:56 (UTC)

@laoyou2333 Unable to reproduce on my PC with makechrootpkg. Please check if your source code is damaged.

laoyou2333 commented on 2025-03-28 15:14 (UTC)

Failed to build Ayugram

ayugram-desktop/src/AyuGramDesktop-5.12.3/Telegram/lib_base/base/platform/linux/base_linux_xdp_utilities.cpp:19:10: fatal error: private/qgenericunixservices_p.h: No such file or directory
   19 | #include <private/qgenericunixservices_p.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Telegram/lib_base/CMakeFiles/lib_base.dir/build.make:288: Telegram/lib_base/CMakeFiles/lib_base.dir/base/platform/linux/base_linux_xdp_utilities.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3461: Telegram/lib_base/CMakeFiles/lib_base.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

bill88t commented on 2025-03-11 15:48 (UTC)

I get /usr/bin/ld: warning: libleancrypto.so.1, needed by /usr/lib/libgnutls.so.30 on alarm (Arch Linux ARM), which is due to the package leancrypto not being depended upon by anything apparently. Leaving this here for the next wandering masochist that uses alarm.

Remik1r3n commented on 2025-03-11 13:17 (UTC)

I think we need to bump pkgrel, since it's really broken now.