similar to: libguestfs build fails with: /usr/lib64/golang/pkg/linux_amd64/libguestfs.org/guestfs.a -- no such file

Displaying 20 results from an estimated 3000 matches similar to: "libguestfs build fails with: /usr/lib64/golang/pkg/linux_amd64/libguestfs.org/guestfs.a -- no such file"

2014 Jan 01
0
Re: libguestfs build fails with: /usr/lib64/golang/pkg/linux_amd64/libguestfs.org/guestfs.a -- no such file
On Tue, Dec 31, 2013 at 04:29:37PM +0100, Kashyap Chamarthy wrote: > I'm on libguestfs Fedora git master branch: [...] > go install libguestfs.org/guestfs: open > /usr/lib64/golang/pkg/linux_amd64/libguestfs.org/guestfs.a: permission denied I believe this happens if you have golang-guestfs installed at the same time that you try to compile things locally. It's a serious design
2013 Dec 12
4
[PATCH 1/2] golang: Fix for out-of-tree builds
--- configure.ac | 2 +- golang/Makefile.am | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 4e2bc65..9abec95 100644 --- a/configure.ac +++ b/configure.ac @@ -1530,7 +1530,7 @@ AS_IF([test "x$enable_golang" != "xno"],[ AC_CHECK_PROG([GOLANG],[go],[go],[no]) AS_IF([test "x$GOLANG" !=
2023 Aug 11
2
[libnbd PATCH] golang: Bump minimum Go version to 1.17
Go 1.17 or newer is required to use unsafe.Slice(), which in turn allows us to write a simpler conversion from a C array to a Go object during callbacks. To check if this makes sense, look at https://repology.org/project/go/versions compared to our list in ci/manifest.yml, at the time I made this commit: Alpine 3.15: 1.17.10 AlmaLinux 8: 1.19.10 CentOS Stream 8: 1.20.4 Debian 10: 1.11.6 Debian
2023 Aug 03
2
[libnbd PATCH v4 05/25] golang: Change logic of copy_uint32_array
Commit 6725fa0e12 changed copy_uint32_array() to utilize a Go hack for accessing a C array as a Go slice in order to potentially benefit from any optimizations in Go's copy() for bulk transfer of memory over naive one-at-a-time iteration. But that commit also acknowledged that no benchmark timings were performed, which would have been useful to demonstrat an actual benefit for using hack in
2020 Feb 19
1
[PATCH] golang: make API idiomatic so that functions return (<val>, error)
Go API functions returned (<val>, *GuestfsError) that made code like this fail to build: n, err := os.Stdin.Read(buf) if err != nil { log.Fatal(err) } n, err = g.Pwrite_device(dev, buf[:n], off) ... As err should be of error (interface) type as of the stdlib call, and should be of *GuestfsError type as of the libguestfs call. The concrete error value that
2020 Apr 23
2
Re: [PATCH nbdkit v2] Add the ability to write plugins in golang.
On Tue, Apr 21, 2020 at 05:07:43PM +0100, Daniel P. Berrangé wrote: > On Tue, Apr 21, 2020 at 11:44:59AM +0100, Richard W.M. Jones wrote: > > Thanks: Dan Berrangé > > > > XXX UNFINISHED: > > > > - Is using uintptr for the handle a good idea? Plugins must return > > something != 0. In other languages we would allow plugins to > > return an
2023 Aug 08
2
[libnbd PATCH v4 05/25] golang: Change logic of copy_uint32_array
On Thu, Aug 3, 2023 at 4:57?AM Eric Blake <eblake at redhat.com> wrote: > > Commit 6725fa0e12 changed copy_uint32_array() to utilize a Go hack for > accessing a C array as a Go slice in order to potentially benefit from > any optimizations in Go's copy() for bulk transfer of memory over > naive one-at-a-time iteration. But that commit also acknowledged that > no
2014 Jul 11
2
Re: golang binding help
2014-07-12 0:33 GMT+04:00 Richard W.M. Jones <rjones@redhat.com>: > On Fri, Jul 11, 2014 at 06:18:12PM +0400, Vasiliy Tolstov wrote: >> Hello. I'm very happy with libguestfs, but now i'm try to write packer >> plugin to strip images: > > Packer is: http://www.packer.io/intro ? Yes, i'm try to build cloud images using it. Does it possible to add ability to
2023 Aug 08
1
[libnbd PATCH v4 05/25] golang: Change logic of copy_uint32_array
On Tue, Aug 08, 2023 at 02:36:12PM +0300, Nir Soffer wrote: > On Thu, Aug 3, 2023 at 4:57?AM Eric Blake <eblake at redhat.com> wrote: > > func copy_uint32_array(entries *C.uint32_t, count C.size_t) []uint32 { > > + if (uint64(count) > 64*1024*1024) { > > + panic(\"violation of state machine guarantee\") > > This is unwanted in a library, it
2020 Mar 25
1
Re: [PATCH libnbd v4] Add Go language bindings (golang) (RHBZ#1814538).
On Wed, Mar 25, 2020 at 10:14:30AM +0000, Daniel P. Berrangé wrote: > On Wed, Mar 25, 2020 at 10:01:02AM +0000, Richard W.M. Jones wrote: > > On Wed, Mar 25, 2020 at 09:48:02AM +0000, Daniel P. Berrangé wrote: > > > On Wed, Mar 25, 2020 at 09:42:19AM +0000, Richard W.M. Jones wrote: > > > > Now runs a complete set of tests, notably including the AIO test. > >
2020 Apr 10
3
[PATCH nbdkit UNFINISHED] Add the ability to write plugins in golang.
Sorry Dan, but I really do dislike golang with a passion :-) Here is a patch that allows you to write nbdkit plugins in golang. As with C, OCaml and Rust, you can write a plugin in Go which compiles directly to a .so file that can be loaded into golang, so in that sense it works completely differently from scripting language plugins like Perl and Python where there's an
2014 Jul 11
2
golang binding help
Hello. I'm very happy with libguestfs, but now i'm try to write packer plugin to strip images: 1) resize filesystem to minimum 2) resize partitions to minimum 3) create/resize file with needed size But golang binding have not docs. Is that possible to generate something suitable to godoc.org to determine api methods and input,output variables for functions? -- Vasiliy Tolstov, e-mail:
2018 Jun 07
3
issue regarding libguestfs-golang
Hi, i cannot import libguestfs golang lib, go get package libguestfs.org/guestfs: unrecognized import path " libguestfs.org/guestfs" (https fetch: Get https://libguestfs.org/guestfs?go-get=1: dial tcp [2001:41c9:1:422::215]:443: getsockopt: connection refused) Any ideas? has the url changed or something? @rwmjones -- Regards, Shashwat Shagun
2020 Apr 21
2
[PATCH nbdkit v2] Add the ability to write plugins in golang.
Thanks: Dan Berrangé XXX UNFINISHED: - Is using uintptr for the handle a good idea? Plugins must return something != 0. In other languages we would allow plugins to return an arbitrary object here, but this is not possible in golang because of lack of GC roots. - Default can_* methods are hard to implement. Ideally we would be able to test if a user plugin implements a
2020 Apr 23
1
Re: [PATCH nbdkit v3 2/2] golang: Compile against the local nbdkit build, not installed.
On 4/23/20 2:13 PM, Richard W.M. Jones wrote: > Compiling nbdkit from source when an older nbdkit is installed would > fail because certain symbols such as .get_ready are not defined in the > (installed) <nbdkit-plugin.h>: > > ../../src/libguestfs.org/nbdkit/nbdkit.go:541:8: plugin.get_ready undefined (type _Ctype_struct_nbdkit_plugin has no field or method get_ready) >
2020 Oct 06
0
Re: [PATCH v3 0/8] Windows BitLocker support.
On Thu, Sep 17, 2020 at 01:39:56PM +0100, Richard W.M. Jones wrote: >As discussed in the emails today, this is the third version addressing >most points from the v1/v2 review. > >You will need to pair this with the changes in libguestfs-common from >this series: > >https://www.redhat.com/archives/libguestfs/2020-September/msg00050.html > I'm going to look at this, but
2014 Jul 13
2
Re: golang binding help
2014-07-12 14:00 GMT+04:00 Richard W.M. Jones <rjones@redhat.com>: > It depends entirely on what the Linux kernel and tools can do. If > there are properly maintained Linux tools for resizing BSD slices, > then it should be no problem to add this. > > Compare with 'ntfsresize', where ntfs-3g exists and is well-maintained > and available in the majority of Linux
2014 Aug 28
1
xapian golang binding
Hi, I would like to create a golang binding for xapian. Has anyone made the necessary swig files for it? If not can someone who has experience with swig offer tips or ready-made files? Cheers, Marius PS1: A sample of how the binding will be used: https://gist.github.com/mtibeica/7d2c680046b4bd0da751#file-quickstart-go PS2: I wrote the nodejs binding for xapian (found on
2020 Apr 15
2
Re: [PATCH nbdkit UNFINISHED] Add the ability to write plugins in golang.
On Fri, Apr 10, 2020 at 02:51:52PM +0100, Richard W.M. Jones wrote: > Similar to C, OCaml and Rust, this is not a plugin per se. Instead > it's more of a method and set of tests around writing plugins in > golang. They are standalone programs that compile into shared objects > that nbdkit can then load (so there is no "go plugin" between nbdkit > and the user plugin,
2020 Mar 25
2
Re: [PATCH libnbd v4] Add Go language bindings (golang) (RHBZ#1814538).
On Wed, Mar 25, 2020 at 09:48:02AM +0000, Daniel P. Berrangé wrote: > On Wed, Mar 25, 2020 at 09:42:19AM +0000, Richard W.M. Jones wrote: > > Now runs a complete set of tests, notably including the AIO test. > > > > File descriptors are passed in and out as plain ints (instead of > > *os.File) for a couple of reasons: (1) We have to pass the plain int > > to