Friday, December 02, 2022

Re: borgbackup: sparc64: Unknown integrity data version 0 in integrity.1

On Fri, Dec 02, 2022 at 09:13:02AM +0100, Bjorn Ketelaars wrote:
> On Fri 02/12/2022 07:04, Bjorn Ketelaars wrote:
> > This does not ring a bell.
> >
> > I'm gambling here, and most likely breaking building, but it is probably
> > wise to exclude that our local patch is somehow related to this issue.
> > Unfortunately I have no access to a sparc64 machine, maybe you could
> > test the diff below?
>
> Brad contacted me offlist, and explained that COMPILER line needs to be
> moved from 1.1/Makefile to Makefile.inc, plus base-gcc needs to be
> removed.
>
> New diff, which is still a gamble.

Only removing the patch builds and packages, but 1.1.18p2 yields the
same error and 1.2.2p2 won't even run due to missing symbols.

Testing COMPILER=ports-gcc afterwards with 1.2.2p3 makes it run again,
but again the same error:

# borg init --encryption none testrepo-1.2.2p3
Unknown integrity data version 0 in integrity.1

I'll continue looking for the error, but this swap16(3)/COMPILER fix is
OK kn on its own.

> Index: Makefile.inc
> ===================================================================
> RCS file: /cvs/ports/sysutils/borgbackup/Makefile.inc,v
> retrieving revision 1.6
> diff -u -p -r1.6 Makefile.inc
> --- Makefile.inc 14 Sep 2022 18:01:36 -0000 1.6
> +++ Makefile.inc 2 Dec 2022 08:08:38 -0000
> @@ -13,6 +13,8 @@ PERMIT_PACKAGE = Yes
>
> WANTLIB += crypto lz4 xxhash zstd
>
> +COMPILER = base-clang ports-gcc
> +
> MODULES = lang/python
> MODPY_PYBUILD = setuptools_scm
> MODPY_PI = Yes
> Index: 1.1/Makefile
> ===================================================================
> RCS file: /cvs/ports/sysutils/borgbackup/1.1/Makefile,v
> retrieving revision 1.6
> diff -u -p -r1.6 Makefile
> --- 1.1/Makefile 13 Nov 2022 15:29:45 -0000 1.6
> +++ 1.1/Makefile 2 Dec 2022 08:08:38 -0000
> @@ -1,11 +1,9 @@
> PORTROACH = limit:^1\.1\.
>
> MODPY_EGG_VERSION = 1.1.18
> -REVISION = 1
> +REVISION = 2
>
> WANTLIB = ${COMPILER_LIBCXX} b2 m
> -
> -COMPILER = base-clang ports-gcc base-gcc
>
> LIB_DEPENDS = security/libb2
>
> Index: 1.1/patches/patch-src_borg__endian_h
> ===================================================================
> RCS file: 1.1/patches/patch-src_borg__endian_h
> diff -N 1.1/patches/patch-src_borg__endian_h
> --- 1.1/patches/patch-src_borg__endian_h 8 Mar 2022 08:53:52 -0000 1.2
> +++ /dev/null 1 Jan 1970 00:00:00 -0000
> @@ -1,24 +0,0 @@
> -__builtin_bswap32 unavailable at least on sparc64
> -
> -Index: src/borg/_endian.h
> ---- src/borg/_endian.h.orig
> -+++ src/borg/_endian.h
> -@@ -1,6 +1,7 @@
> - #include <unistd.h>
> - #include <stdlib.h>
> - #include <stdint.h>
> -+#include <endian.h>
> -
> - #if defined (__SVR4) && defined (__sun)
> - #include <sys/isa_defs.h>
> -@@ -19,8 +20,8 @@
> -

No comments:

Post a Comment