Package Details: nbdkit 1.38.2-1

Git Clone URL: https://aur.archlinux.org/nbdkit.git (read-only, click to copy)
Package Base: nbdkit
Description: NBD server toolkit
Upstream URL: https://gitlab.com/nbdkit/nbdkit/
Licenses: custom: BSD
Submitter: t-8ch
Maintainer: t-8ch (rwmjones)
Last Packager: t-8ch
Votes: 5
Popularity: 0.014462
First Submitted: 2019-02-22 14:36 (UTC)
Last Updated: 2024-05-22 06:24 (UTC)

Latest Comments

« First ‹ Previous 1 .. 4 5 6 7 8 9 10 11 Next › Last »

rwmjones commented on 2021-04-01 10:42 (UTC)

I can reproduce this in Fedora with golang 1.16. I'm looking to see what has changed.

The golang plugin is an entirely optional part of nbdkit (unless you want to write plugins in golang of course!) so a workaround for you could be to do:

./configure --disable-golang

svenne_k commented on 2021-04-01 10:24 (UTC)

fails build

cd examples/ramdisk && \
PKG_CONFIG_PATH="/home/sk/.cache/yay/nbdkit/src/nbdkit-1.24.0/server/local${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}" \
GOPATH="/home/sk/.cache/yay/nbdkit/src/nbdkit-1.24.0/plugins/golang" \
go build -o nbdkit-goramdisk-plugin.so -buildmode=c-shared
go: cannot find main module, but found .git/config in /home/sk/.cache/yay/nbdkit
    to create a module there, run:
    cd ../../../../../.. && go mod init
go: cannot find main module, but found .git/config in /home/sk/.cache/yay/nbdkit
    to create a module there, run:
    cd ../../../../../.. && go mod init
make[3]: *** [Makefile:1080: examples/disk/nbdkit-godisk-plugin.so] Error 1
make[3]: *** Waiting for unfinished jobs....
go: cannot find main module, but found .git/config in /home/sk/.cache/yay/nbdkit
    to create a module there, run:
    cd ../../../../../.. && go mod init
go: cannot find main module, but found .git/config in /home/sk/.cache/yay/nbdkit
    to create a module there, run:
    cd ../../../../../.. && go mod init
make[3]: *** [Makefile:1087: examples/dump-plugin/nbdkit-godump-plugin.so] Error 1
make[3]: *** [Makefile:1094: examples/minimal/nbdkit-gominimal-plugin.so] Error 1
make[3]: *** [Makefile:1101: examples/ramdisk/nbdkit-goramdisk-plugin.so] Error 1
make[3]: Leaving directory '/home/sk/.cache/yay/nbdkit/src/nbdkit-1.24.0/plugins/golang'
make[2]: *** [Makefile:519: all-recursive] Error 1
make[2]: Leaving directory '/home/sk/.cache/yay/nbdkit/src/nbdkit-1.24.0/plugins'
make[1]: *** [Makefile:716: all-recursive] Error 1
make[1]: Leaving directory '/home/sk/.cache/yay/nbdkit/src/nbdkit-1.24.0'
make: *** [Makefile:580: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error making: nbdkit

rwmjones commented on 2021-01-11 19:50 (UTC) (edited on 2021-01-11 19:50 (UTC) by rwmjones)

I'm glad that you have found a fix, but I'd also say that this particular test is quite tricky. It attempts to test the nbdkit-ssh-plugin by running (temporarily) an sshd server. If you want to just skip the test entirely you could add this to your build script:

rm tests/test-ssh.sh
touch tests/test-ssh.sh
chmod +x tests/test-ssh.sh

https://libguestfs.org/nbdkit-ssh-plugin.1.html https://github.com/libguestfs/nbdkit/blob/master/tests/test-ssh.sh

anatolik commented on 2021-01-11 17:25 (UTC)

And adding 'openssh' to the checkpdepends=() fixes the issue with tests.

anatolik commented on 2021-01-11 17:21 (UTC)

Building this package in a chroot environment gives following test error:

ssh-keygen -t rsa -f ssh/ssh_host_rsa_key -N ''
make[2]: ssh-keygen: No such file or directory
make[2]: *** [Makefile:6442: stamp-ssh-host-key] Error 127

rwmjones commented on 2020-11-09 08:46 (UTC)

sh: line 5: qemu-img: command not found

Because qemu-img is not installed. See also: https://github.com/libguestfs/nbdkit/blob/master/tests/Makefile.am (search for "qemu-img").

anatolik commented on 2020-11-09 00:47 (UTC)

building in a chroot environment fails:

mv -f .deps/test_just_filter_header-test-just-filter-header.Tpo .deps/test_just_filter_header-test-just-filter-header.Po
./generate-file-data.sh file-data
Generating a 3072 bit RSA private key...
truncate -s 1048576 test-shell.img
Generating a random key for user 'qemu'
Key stored to keys.psk
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o test-just-plugin-header test_just_plugin_header-test-just-plugin-header.o   
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o test-just-filter-header test_just_filter_header-test-just-filter-header.o   
nbdkit: debug: bound to unix socket /tmp/nbdkitVrl1Nc/socket
nbdkit: debug: forked into background (new pid = 21978)
nbdkit: debug: linuxdisk: after_fork
sh: line 5: qemu-img: command not found
nbdkit: debug: linuxdisk: unload plugin
make[2]: *** [Makefile:5975: disk] Error 127
make[2]: *** Waiting for unfinished jobs...

rwmjones commented on 2020-09-18 07:45 (UTC)

Yes that fixes quite a serious bug in sfdisk (https://bugzilla.redhat.com/show_bug.cgi?id=1860461).

t-8ch commented on 2020-09-18 07:00 (UTC)

Updated, currently the tests are failing because ArchLinux is missing 4fe7f9b614e2b5bb97f6d89af02acb867cffccc1 in the util-linux package.