diff options
author | Giacomo Leidi <goodoldpaul@autistici.org> | 2024-10-05 00:31:43 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-10-07 12:51:25 +0200 |
commit | 91d2e0b5673b8e3413f2fb4957e5af32e2f822cb (patch) | |
tree | 1d448a3b8f27b48fee16a662b04abe3779f18cc5 /gnu/packages/patches | |
parent | 5fd8d9dc06573bd3ddc0224e8c2d5078c04b22eb (diff) |
gnu: Add libguestfs-minimal.
* gnu/packages/virtualization.scm (libguestfs-minimal): New variable.
* gnu/packages/patches/libguestfs-syms.patch: Add file.
* gnu/local.mk: Add it.
Change-Id: Ide22707724ecd41145243c9f41adc3f5557c593e
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/patches')
-rw-r--r-- | gnu/packages/patches/libguestfs-syms.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/gnu/packages/patches/libguestfs-syms.patch b/gnu/packages/patches/libguestfs-syms.patch new file mode 100644 index 0000000000..ad7453ea3c --- /dev/null +++ b/gnu/packages/patches/libguestfs-syms.patch @@ -0,0 +1,44 @@ +diff -urN a/lib/Makefile.am b/lib/Makefile.am + +Without this patch the build phase fails during linking with: + +ld:./libguestfs.syms: file format not recognized; treating as linker script +ld:./libguestfs.syms:23: syntax error +collect2: error: ld returned 1 exit status +make[3]: *** [Makefile:1252: libguestfs.la] Error 1 +make[3]: *** Waiting for unfinished jobs.... +Wide character in print at /tmp/guix-build-libguestfs-1.53.6.drv-0/libguestfs-1.50.1/podwrapper.pl line 633. +touch stamp-guestfs.pod +make[3]: Leaving directory '/tmp/guix-build-libguestfs-1.53.6.drv-0/libguestfs-1.50.1/lib' +make[2]: *** [Makefile:1161: all] Error 2 +make[2]: Leaving directory '/tmp/guix-build-libguestfs-1.53.6.drv-0/libguestfs-1.50.1/lib' +make[1]: *** [Makefile:1083: all-recursive] Error 1 +make[1]: Leaving directory '/tmp/guix-build-libguestfs-1.53.6.drv-0/libguestfs-1.50.1' +make: *** [Makefile:989: all] Error 2 +error: in phase 'build': uncaught exception: + +--- a/lib/Makefile.am 2023-07-20 17:35:16.489080853 +0200 ++++ b/lib/Makefile.am 2023-07-20 17:35:47.305793499 +0200 +@@ -160,8 +160,7 @@ + # Force libtool to name the library 'libguestfs.so.0.$(MAX_PROC_NR).0'. + # Include the version script to limit which symbols are exported. + libguestfs_la_LDFLAGS = \ +- -version-info $(MAX_PROC_NR):0:$(MAX_PROC_NR) \ +- $(VERSION_SCRIPT_FLAGS)$(srcdir)/libguestfs.syms ++ -version-info $(MAX_PROC_NR):0:$(MAX_PROC_NR) + + if HAVE_FUSE + # XXX Unfortunately FUSE_CFLAGS defines _FILE_OFFSET_BITS=64. +diff -urN a/lib/Makefile.in b/lib/Makefile.in +--- a/lib/Makefile.in 2023-07-20 17:35:16.489080853 +0200 ++++ b/lib/Makefile.in 2023-07-20 17:36:05.474213641 +0200 +@@ -1109,8 +1109,7 @@ + # Force libtool to name the library 'libguestfs.so.0.$(MAX_PROC_NR).0'. + # Include the version script to limit which symbols are exported. + libguestfs_la_LDFLAGS = \ +- -version-info $(MAX_PROC_NR):0:$(MAX_PROC_NR) \ +- $(VERSION_SCRIPT_FLAGS)$(srcdir)/libguestfs.syms ++ -version-info $(MAX_PROC_NR):0:$(MAX_PROC_NR) + + @HAVE_LIBVIRT_TRUE@libvirt_is_version_SOURCES = libvirt-is-version.c + @HAVE_LIBVIRT_TRUE@libvirt_is_version_LDADD = \ |