Package Details: tgfs 0.1-2

Git Clone URL: https://aur.archlinux.org/tgfs.git (read-only, click to copy)
Package Base: tgfs
Description: user-space filesystem for Telegram attachments
Upstream URL: https://github.com/Firemoon777/tgfs
Licenses: GPL3
Conflicts: tgfs
Provides: tgfs
Submitter: Firemoon777
Maintainer: Firemoon777
Last Packager: Firemoon777
Votes: 0
Popularity: 0.000000
First Submitted: 2017-01-21 06:41 (UTC)
Last Updated: 2017-01-22 08:39 (UTC)

Required by (0)

Sources (1)

Latest Comments

hecsa commented on 2024-04-28 03:35 (UTC) (edited on 2024-04-28 03:37 (UTC) by hecsa)

Hi, When trying to install using yay I get this error:

main.c: In function ‘termination_signal_handler’:
main.c:824:7: error: ‘write’ reading 18 bytes from a region of size 17 [-Werror=stringop-overread]
824 | if (write (1, "SIGNAL received\n", 18) < 0) {
| ^~
In file included from main.c:29:
/usr/include/unistd.h:378:16: note: in a call to function ‘write’ declared with attribute ‘access (read_only, 2, 3)’
378 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
| ^
cc1: all warnings being treated as errors
make[1]: *** [Makefile:48: objs/main.o] Error 1
make[1]: Leaving directory '/home/hecsa/.cache/yay/tgfs/src/tgfs/tg'
make: *** [Makefile:19: telegram-cli] Error 2
==> ERROR: A failure occurred in build().
Aborting...
-> error making: tgfs-exit status 4
-> Failed to install the following packages. Manual intervention is required:
tgfs - exit status 4
Any ideas? Thanks in advance, and best regards,

HeCSa.

dreieck commented on 2022-03-08 16:56 (UTC)

You use the latest git checkout. So your package must be named tgfs-git (i.e. with the -git suffix). Please rename (i.e.: Upload new, and submit merge request on the old).

Thanks a lot for keeping this alive!

dreieck commented on 2022-03-08 16:55 (UTC)

It fails to build for me with

src/tgfs.c:180:59: error: ‘c’ may be used uninitialized [-Werror=maybe-uninitialized]
  180 |         tg_peer_t* peer = tg_find_peer_by_name(path + 1, c[1] - c[0] - 1);
      |                          

and

main.c:824:7: error: ‘write’ reading 18 bytes from a region of size 17 [-Werror=stringop-overread]
  824 |   if (write (1, "SIGNAL received\n", 18) < 0) {
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Adding

    CFLAGS+=' -Wno-error'
    CXXFLAGS+=' -Wno-error'
    export CFLAGS
    export CXXFLAGS

to build() in the PKGBUILD does not help.

dreieck commented on 2019-08-25 09:33 (UTC) (edited on 2019-08-25 09:34 (UTC) by dreieck)

It does cloning (and download) during build().

PLEASE DO NOT DO THIS.

Ensure that when build() is invoked, all data needed to build the package is already present locally. Download it via the source-array, and exceptionally, if this is not possible, in prepare().