Package Details: openlinkhub-git 0.4.2.r4.g8e48677-3

Git Clone URL: https://aur.archlinux.org/openlinkhub-git.git (read-only, click to copy)
Package Base: openlinkhub-git
Description: Open source Linux interface for iCUE LINK Hub and other Corsair AIOs, Hubs. [Latest Commit - source]
Upstream URL: https://github.com/jurkovic-nikola/OpenLinkHub
Licenses: GPL3
Conflicts: openlinkhub
Provides: openlinkhub
Submitter: jrdn
Maintainer: jrdn
Last Packager: jrdn
Votes: 1
Popularity: 0.77
First Submitted: 2024-12-05 12:40 (UTC)
Last Updated: 2024-12-15 22:30 (UTC)

Latest Comments

jrdn commented on 2024-12-10 06:14 (UTC) (edited on 2024-12-14 05:53 (UTC) by jrdn)

@mydongistiny -

I appreciate your reply and thanks for your quality insight.

Your package fails to install onto a fresh system. Please clean your test environment of all remnants of previous builds (users, files, services) before running makepkg again.

# Before makepkg -si, clean env
systemctl disable --now OpenLinkHub.service \
&& pacman -R openlinkhub-git
&& rm -rf /opt/OpenLinkHub \
&& userdel openlinkhub

The result of makepkg -si against yourPKGBUILDfrom your commit ( #19bf130 ):

chown: invalid user: ‘openlinkhub:openlinkhub’
error: command failed to execute correctly
:: Running post-transaction hooks...
(1/4) Creating system user accounts...
Creating group 'openlinkhub' with GID 932.
Creating user 'openlinkhub' (OpenLinkHub interface for iCUE LINK) with UID 932 and GID 932.
(2/4) Reloading system manager configuration...
(3/4) Arming ConditionNeedsUpdate...
(4/4) Refreshing PackageKit..

GNU Installdoes not effect the target system until well after the .install file is finished, let alone the PKGBUILD. This means yourpost_install() of chown -R openlinkhub:openlinkhub /opt/OpenLinkHub is attempting to reference a user on the target system that does not exist yet.

mydongistiny commented on 2024-12-10 01:12 (UTC)

There are better ways of adding a user than assigning a uid,gid. Here is my local repo I've been using: https://github.com/mydongistiny/openlinkhub-git

I'm sure there are other ways as well.

jrdn commented on 2024-12-09 13:17 (UTC) (edited on 2024-12-09 14:04 (UTC) by jrdn)

Installation user issue resolved. This package release should not require manual intervention for a fresh install, nor upgrading.

Please report any issues.

Note and Changes(s):
  1. The service no longer requires root privileges to run.
  2. A service user openlinkhub has been created and assigned the uid:gid of 473:473. [1]
  3. The systemd service is not automatically enabled. Users are required to manually enable and start the service (e.g. systemctl enable --now openlinkhub)
  4. Update required package dependencies (lm_sensors, i2c-tools, systemd)