~alpine/aports

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
9 3

[PATCH] main/apcupsd: add libusb dependency

Details
Message ID
<20211125014254.166522-1-wolf@wolfsden.cz>
DKIM signature
missing
Download raw message
Patch: +2 -2
---

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
Details
Message ID
<163782146162.14324.14127433992653302399.gitlab.27747.4847c41ea88baa9666b971fbeaafc3696bba2389@listserv.local>
In-Reply-To
<20211125014254.166522-1-wolf@wolfsden.cz> (view parent)
DKIM signature
missing
Download raw message
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
Details
Message ID
<20211125102009.fyhp732fiqk73eea@mail.wolfsden.cz>
In-Reply-To
<163782146162.14324.14127433992653302399.gitlab.27747.4847c41ea88baa9666b971fbeaafc3696bba2389@listserv.local> (view parent)
DKIM signature
missing
Download raw message
Hi,

On 2021-11-25 06:24:21 -0000, Henrik Riomar wrote:
> 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.

I've changed my configuration file to use net instead and it still
refused to start. So I think this is actually necessary, unless I've
overlooked something in the configuration file (I mean, that is always a
possibility).

W.

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
Details
Message ID
<163783561677.14324.18429974003248038908.gitlab.27747.4847c41ea88baa9666b971fbeaafc3696bba2389@listserv.local>
In-Reply-To
<163782146162.14324.14127433992653302399.gitlab.27747.4847c41ea88baa9666b971fbeaafc3696bba2389@listserv.local> (view parent)
DKIM signature
missing
Download raw message
Wolf <wolf@wolfsden.cz> replied via email:

```
Hi,

On 2021-11-25 06:24:21 -0000, Henrik Riomar wrote:
> 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.

I've changed my configuration file to use net instead and it still
refused to start. So I think this is actually necessary, unless I've
overlooked something in the configuration file (I mean, that is always a
possibility).

W.

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

```

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/27747#note_194282
Details
Message ID
<163785343175.14324.6421730296184030460.gitlab.27747.9ad100d619d1cb80f9be99f9e29a489d2bda844c@listserv.local>
In-Reply-To
<20211125014254.166522-1-wolf@wolfsden.cz> (view parent)
DKIM signature
missing
Download raw message
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
Details
Message ID
<20211125153044.bfgc6dm3nkeowaun@mail.wolfsden.cz>
In-Reply-To
<163785343175.14324.6421730296184030460.gitlab.27747.9ad100d619d1cb80f9be99f9e29a489d2bda844c@listserv.local> (view parent)
DKIM signature
missing
Download raw message
On 2021-11-25 15:17:11 -0000, Henrik Riomar wrote:
> 
> `libusb-compat` depends on `libusb` on 3.14:
> https://pkgs.alpinelinux.org/package/v3.14/main/x86_64/libusb-compat

It does not in 3.15:

https://pkgs.alpinelinux.org/package/v3.15/main/x86_64/libusb-compat

So it should probably fixed there, but I'm not sure what the cause is.

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
Details
Message ID
<163785425066.14324.5267974827728205843.gitlab.27747.9ad100d619d1cb80f9be99f9e29a489d2bda844c@listserv.local>
In-Reply-To
<163785343175.14324.6421730296184030460.gitlab.27747.9ad100d619d1cb80f9be99f9e29a489d2bda844c@listserv.local> (view parent)
DKIM signature
missing
Download raw message
Wolf <wolf@wolfsden.cz> replied via email:

```
On 2021-11-25 15:17:11 -0000, Henrik Riomar wrote:
> 
> `libusb-compat` depends on `libusb` on 3.14:
> https://pkgs.alpinelinux.org/package/v3.14/main/x86_64/libusb-compat

It does not in 3.15:

https://pkgs.alpinelinux.org/package/v3.15/main/x86_64/libusb-compat

So it should probably fixed there, but I'm not sure what the cause is.

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

```

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/27747#note_194357
Details
Message ID
<20211127231507.4o37wsoa2psicpgu@mail.wolfsden.cz>
In-Reply-To
<163785425066.14324.5267974827728205843.gitlab.27747.9ad100d619d1cb80f9be99f9e29a489d2bda844c@listserv.local> (view parent)
DKIM signature
missing
Download raw message
On 2021-11-25 15:30:50 -0000, mailinglist-bot wrote:
> Wolf <wolf@wolfsden.cz> replied via email:
> 
> ```
> On 2021-11-25 15:17:11 -0000, Henrik Riomar wrote:
> > 
> > `libusb-compat` depends on `libusb` on 3.14:
> > https://pkgs.alpinelinux.org/package/v3.14/main/x86_64/libusb-compat
> 
> It does not in 3.15:
> 
> https://pkgs.alpinelinux.org/package/v3.15/main/x86_64/libusb-compat
> 
> So it should probably fixed there, but I'm not sure what the cause is.

This patch can be dropped, I've sent separate one against
libusb-compact.

W.

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
Details
Message ID
<163805491494.14324.16191699468181235981.gitlab.27747.9ad100d619d1cb80f9be99f9e29a489d2bda844c@listserv.local>
In-Reply-To
<163785425066.14324.5267974827728205843.gitlab.27747.9ad100d619d1cb80f9be99f9e29a489d2bda844c@listserv.local> (view parent)
DKIM signature
missing
Download raw message
Wolf <wolf@wolfsden.cz> replied via email:

```
On 2021-11-25 15:30:50 -0000, mailinglist-bot wrote:
> Wolf <wolf@wolfsden.cz> replied via email:
> 
> ```
> On 2021-11-25 15:17:11 -0000, Henrik Riomar wrote:
> > 
> > `libusb-compat` depends on `libusb` on 3.14:
> > https://pkgs.alpinelinux.org/package/v3.14/main/x86_64/libusb-compat
> 
> It does not in 3.15:
> 
> https://pkgs.alpinelinux.org/package/v3.15/main/x86_64/libusb-compat
> 
> So it should probably fixed there, but I'm not sure what the cause is.

This patch can be dropped, I've sent separate one against
libusb-compact.

W.

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

```

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/27747#note_194945
Details
Message ID
<163810728210.14324.14315403871968739554.gitlab.27747.9ad100d619d1cb80f9be99f9e29a489d2bda844c@listserv.local>
In-Reply-To
<163805491494.14324.16191699468181235981.gitlab.27747.9ad100d619d1cb80f9be99f9e29a489d2bda844c@listserv.local> (view parent)
DKIM signature
missing
Download raw message
Replaced by !27859

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/27747#note_195039
Reply to thread Export thread (mbox)