Package Details: catt 0.12.10-2

Git Clone URL: https://aur.archlinux.org/catt.git (read-only, click to copy)
Package Base: catt
Description: Cast All The Things - Send videos from many, many online sources to your Chromecast.
Upstream URL: https://github.com/skorokithakis/catt
Licenses: BSD
Conflicts: catt
Provides: catt
Submitter: clintval
Maintainer: d-air1
Last Packager: d-air1
Votes: 17
Popularity: 0.021791
First Submitted: 2018-05-07 21:22 (UTC)
Last Updated: 2023-02-25 05:25 (UTC)

Latest Comments

1 2 3 4 Next › Last »

tchernomax commented on 2023-02-25 17:55 (UTC)

@d-air1 thanks

tchernomax commented on 2023-02-25 17:54 (UTC)

@xiota I am using makepkg directly (without chroot) and/or yay (which doesn't use chroot either if I am not mistaken).

As describe the problem comes from the fact poetry search for .gitignore at the root directory of the current repository… if it is run in a git repository. So it goes through all the parent directories of it's working directory looking for a .git directory (to know if he is running in a git repository). If a .git directory is found, the associated .gitignore is apply.

By using GIT_DIR='.' we force poetry to consider the current repository the root of the git repository. So it doesn't check it's parent directories, and apply the .gitignore located in the current directory, which is what we want… because it's the real .gitignore of catt.

xiota commented on 2023-02-25 11:33 (UTC) (edited on 2023-02-25 11:35 (UTC) by xiota)

I build packages in a clean chroot. Apparently, using makepkg directly results in different behavior. The change does not appear to affect building in a clean chroot.

d-air1 commented on 2023-02-25 05:31 (UTC)

@xiota please make sure to test the updated version to ensure that it didn't break for anyone who wasn't having the problem posted by @tchernomax.

d-air1 commented on 2023-02-25 05:28 (UTC)

@tchernomax - I have made the suggested change and confirmed that is working. Should be updated shortly.

@xiota - I used makepkg to build the package. The package builds just fine the way that the pkgbuild was before applying the change, but when I attempted to run catt. I got the same error that @tchernomax posted about. Are you sure yours is working? Either way the change does solve the problem for the people that have it.

xiota commented on 2023-02-24 21:29 (UTC)

@tchernomax I have not had the problem you've described.

catt --version
catt v0.12.10, Zaniest Zapper.

Are you using an AUR helper or building with makepkg or a clean chroot?

tchernomax commented on 2023-02-24 21:03 (UTC)

You need to change the PKGBUILD:

 build() {
   cd "$pkgname-$pkgver"
-  python -m poetry build --format wheel
+  GIT_DIR='.' python -m poetry build --format wheel
 }

Else poetry get the .gitignore located in the directory containing the PKGBUILD (because it's its first parent directory that contains a .git directory) and everything go ignored (making the package useless):

catt --version
Traceback (most recent call last):
  File "/usr/bin/catt", line 5, in <module>
    from catt.cli import main
ModuleNotFoundError: No module named 'catt.cli'

xiota commented on 2023-02-20 00:28 (UTC)

Thank you for updating. I've deleted my old comments, which are no longer relevant.

d-air1 commented on 2023-02-19 23:49 (UTC)

@xiota, Thanks, the package has been updated. Might take a minute to reflect on the aur.