~alpine/aports

main/apcupsd: add libusb dependency v1 REJECTED

Wolf: 1
 main/apcupsd: add libusb dependency

 1 files changed, 2 insertions(+), 2 deletions(-)
Wolf <wolf@wolfsden.cz> replied via email:

```
Hi,

On 2021-11-25 06:24:21 -0000, Henrik Riomar wrote:
Next
Hi,

On 2021-11-25 06:24:21 -0000, Henrik Riomar wrote:
Next
Wolf <wolf@wolfsden.cz> replied via email:

```
On 2021-11-25 15:17:11 -0000, Henrik Riomar wrote:
Next
Wolf <wolf@wolfsden.cz> replied via email:

```
On 2021-11-25 15:30:50 -0000, mailinglist-bot wrote:
Next
Replaced by !27859

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/27747#note_195039
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/aports/patches/3770/mbox | git am -3
Learn more about email & git

[PATCH] main/apcupsd: add libusb dependency Export this patch

---

Under 3.15 apcupsd fails to start unless libusb package is manually
installed:

# rc-service apcupsd start
 * Starting APC UPS daemon ...
/sbin/apcupsd: error while loading libusb-1.0.so.0 from libusb-0.1.so.4: Error loading shared library libusb-1.0.so.0: No such file or directory
 * start-stop-daemon: failed to start `/sbin/apcupsd'                                                                                                                                    [ !! ]
 * ERROR: apcupsd failed to start


This should probably be backported to 3.15 as well. No idea how to send
patches against that.


 main/apcupsd/APKBUILD | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main/apcupsd/APKBUILD b/main/apcupsd/APKBUILD
index fda125aa29..dbf8562b24 100644
--- a/main/apcupsd/APKBUILD
+++ b/main/apcupsd/APKBUILD
@@ -1,13 +1,13 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=apcupsd
pkgver=3.14.14
pkgrel=2
pkgrel=3
pkgdesc="A Daemon to control APC UPSes"
subpackages="$pkgname-doc $pkgname-webif $pkgname-openrc"
url="http://www.apcupsd.org"
arch="all"
license="GPL-2.0-only"
depends="util-linux"
depends="util-linux libusb"
makedepends="net-snmp-dev linux-headers gd-dev libusb-compat-dev"
options="!check" # no test suite included
source="https://sourceforge.net/projects/apcupsd/files/apcupsd%20-%20Stable/$pkgver/apcupsd-$pkgver.tar.gz
-- 
2.33.1
does requirement on usb not depend on the config file? i.e. only the system handling the actual ups needs this not all slave systems connecting over the network? also serial ups's does not need usb.

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/27747#note_194247
tested installation on v3.14 of `apcupsd`, the following is pulled
```
    Package changes:
    +apcupsd-3.14.14-r1
    +apcupsd-openrc-3.14.14-r1
    +blkid-2.37-r0
    +cfdisk-2.37-r0
    +findmnt-2.37-r0
    +flock-2.37-r0
    +hexdump-2.37-r0
    +libeconf-0.3.8-r1
    +libfdisk-2.37-r0
    +libusb-1.0.24-r2
    +libusb-compat-0.1.5-r4
    +logger-2.37-r0
    +mcookie-2.37-r0
    +partx-2.37-r0
    +setpriv-2.37-r0
    +sfdisk-2.37-r0
    +util-linux-2.37-r0
    +util-linux-openrc-2.37-r0
    +uuidgen-2.37-r0
```

`libusb-compat` depends on `libusb` on 3.14:
https://pkgs.alpinelinux.org/package/v3.14/main/x86_64/libusb-compat

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/27747#note_194344