Package Details: klipper-py3-git r4374.7c0559c6-1

Git Clone URL: https://aur.archlinux.org/klipper-py3-git.git (read-only, click to copy)
Package Base: klipper-py3-git
Description: 3D printer firmware with motion planning on the host
Upstream URL: https://www.klipper3d.org/
Keywords: 3d 3d-printer 3d-printing klipper klippy octopi printer
Licenses: GPL3
Provides: klipper
Submitter: qubidt
Maintainer: qubidt
Last Packager: qubidt
Votes: 1
Popularity: 0.046480
First Submitted: 2021-12-08 20:42 (UTC)
Last Updated: 2022-01-07 20:46 (UTC)

Dependencies (19)

Required by (1)

Sources (5)

Latest Comments

wlhlm commented on 2022-01-30 10:17 (UTC)

I was trying to compile the Klipper MCU code and hit a hurdle and was wondering what the intention here is: As I understand it, the code is supposed to be compiled in /usr/lib/klipper (as in cd /usr/lib/klipper; make menuconfig; make). I the issue I've hit is that the build process requires running scripts which are located /usr/share/klipper/scripts, but the Makefile expects the scripts to be in /usr/lib/klipper/scripts. Am I supposed to manually copy the scripts there?

Also, the Makefile includes the following line:

PYTHON=python2

I guess it's pretty easy to overwrite by running make PYTHON=python, you decide whether it's worth patching. Just letting you know in case you haven't stumbled upon this until now.

qubidt commented on 2022-01-07 20:46 (UTC)

sorry for the very late update but the PKGBUILD has been updated w/ the latest data dict file used in the tests

@wlhlm I addressed your comments. Fixed the permissions in the tmpfiles config. Hopefully that works, my rasbpi/printer isn't working ATM so I can't test it but it should work.

if anyone is confused about the permissions, I set them to 2775 because klipper (as part of normal operation) writes files directly to its source/config direectories (ugh) as part of normal operation (perhaps that's an indication that we should have this package in /opt/klipper). the 0775 permissions I inherited from the original AUR package allow anyone in the klipper group to write those files, but they would be inaccessible to other users. the setgid bit makes sure any generated files are also owned by the klipper group so other users in that group can likewise write to them (e.g. the klipper user itself)

wlhlm commented on 2021-12-31 10:19 (UTC) (edited on 2021-12-31 10:19 (UTC) by wlhlm)

There currently is a mismatch of directory permissions between the package() script and the tmpfiles configuration installed with this package. package() sets permissions on /etc/klipper to 2775, however the tmpfiles configuration sets it to 0755 every time on boot.

One way this surfaces is when upgrading as pacman will show the following:

:: Processing package changes...
(1/1) upgrading klipper-py3-git                                                                        [############################################################] 100%
warning: directory permissions differ on /etc/klipper/
filesystem: 755  package: 2775
warning: directory permissions differ on /var/lib/klipper/
filesystem: 755  package: 2755

wlhlm commented on 2021-12-25 01:21 (UTC) (edited on 2022-01-01 22:00 (UTC) by wlhlm)

Thank you for bringing the Klipper package forward into the Python 3 era.

Few minor suggestions:

  • Since dfu-util is also in popular use for flashing STM32 MCUs, I think adding it to the optional dependencies makes sense.
  • As noted in fluidd-git, adding git as a dependency for AUR packages is superfluous as base-devel is assumed to be installed already.
    • EDIT: I was mistaken, git is not part of base-devel. Apologies.