fcorbelli / zpaqfranz

Deduplicating archiver with encryption and paranoid-level tests. Swiss army knife for the serious backup and disaster recovery manager. Ransomware neutralizer. Win/Linux/Unix
MIT License
259 stars 22 forks source link

Minor typo first table. #83

Closed Piqlet closed 10 months ago

Piqlet commented 11 months ago

Good : Arch User Repository (AUR) or only short AUR. ( https://wiki.archlinux.org/title/Arch_User_Repository ) Or example command : yay -S zpaqfranz-git (?)

Installation good : ( I use paru, but yay is more common. https://pkgstats.archlinux.de/compare/packages#packages=paru,yay )

$ export LC_ALL=C && paru -S zpaqfranz-git
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...

Aur (1)            Old Version  New Version  Make Only
aur/zpaqfranz-git               git-1        No

:: Proceed to review? [Y/n]: 

:: Downloading PKGBUILDs...
 (1/1) zpaqfranz-git-git-1                           [--------------------------------------------------------------------------------------------------------------------------------------]
/home/eos44/.cache/paru/clone/zpaqfranz-git/PKGBUILD
# Maintainer: Franco Corbelli <franco at francocorbelli dot com>
# Contributor: Lone_Wolf  (bbs.archlinux.org)
# Contributor: Scimmia (bbs.archlinux.org)
# Contributor: Loqs (bbs.archlinux.org) 
pkgname=zpaqfranz-git
pkgver=git
pkgrel=1
pkgdesc="Swiss army knife for backup and disaster recovery, like 7z or RAR on steroids, with deduplicated 'snapshots' (versions). Conceptually similar to the Mac time machine, but much more>
arch=('i686' 'x86_64')
url="https://github.com/fcorbelli/zpaqfranz"
license=('MIT')
depends=('gcc-libs' 'glibc')
makedepends=('git' 'grep' 'awk')
conflicts=('zpaqfranz')
source=("git+https://github.com/fcorbelli/zpaqfranz.git")
sha256sums=('SKIP')
pkgver() 
{
  cd "zpaqfranz"
  _tag=$(grep "#define ZPAQ_VERSION" zpaqfranz.cpp |awk '{gsub(/"/, "", $3); print $3}')
  printf "%s" "$_tag"
}
build() 
{
  cd "zpaqfranz"
  c++ $CXXFLAGS $CPPFLAGS $LDFLAGS -Dunix zpaqfranz.cpp -o zpaqfranz -pthread 
}
package() {
  cd "zpaqfranz"
  install -Dm 755 zpaqfranz "$pkgdir/usr/bin/zpaqfranz"
  install -D LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

:: Proceed with installation? [Y/n]: 
fetching devel info...
==> Making package: zpaqfranz-git git-1 (Sat Oct  7 20:41:43 2023)
==> Retrieving sources...
  -> Cloning zpaqfranz git repo...
Cloning into bare repository '/home/eos44/.cache/paru/clone/zpaqfranz-git/zpaqfranz'...
remote: Enumerating objects: 1541, done.
remote: Counting objects: 100% (164/164), done.
remote: Compressing objects: 100% (76/76), done.
remote: Total 1541 (delta 102), reused 146 (delta 88), pack-reused 1377
Receiving objects: 100% (1541/1541), 44.00 MiB | 4.22 MiB/s, done.
Resolving deltas: 100% (852/852), done.
==> Validating source files with sha256sums...
    zpaqfranz ... Skipped
==> Making package: zpaqfranz-git git-1 (Sat Oct  7 20:41:56 2023)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating zpaqfranz git repo...
==> Validating source files with sha256sums...
    zpaqfranz ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of zpaqfranz git repo...
Cloning into 'zpaqfranz'...
done.
==> Starting pkgver()...
==> Updated version: zpaqfranz-git 58.10o-1
==> Sources are ready.
zpaqfranz-git-git-1: parsing pkg list...
==> Making package: zpaqfranz-git 58.10o-1 (Sat Oct  7 20:41:58 2023)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Starting build()...
In file included from /usr/include/string.h:548,
                 from zpaqfranz.cpp:1823:
In function 'void* memcpy(void*, const void*, size_t)',
    inlined from 'void compress_subtree_to_parent_node(const uint8_t*, size_t, const uint32_t*, uint64_t, uint8_t, uint8_t*)' at zpaqfranz.cpp:13343:11,
    inlined from 'void _Z20blake3_hasher_updateP13blake3_hasherPKvm.part.0(blake3_hasher*, const void*, size_t)' at zpaqfranz.cpp:13413:38:
/usr/include/bits/string_fortified.h:29:33: warning: 'void* __builtin___memcpy_chk(void*, const void*, long unsigned int, long unsigned int)' writing 96 bytes into a region of size 64 overflows the destination [-Wstringop-overflow=]
   29 |   return __builtin___memcpy_chk (__dest, __src, __len,
      |          ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
   30 |                                  __glibc_objsize0 (__dest));
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "zpaqfranz-git"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: zpaqfranz-git 58.10o-1 (Sat Oct  7 20:42:40 2023)
==> Cleaning up...
[sudo] password for eos44: 
loading packages...
resolving dependencies...
looking for conflicting packages...

Package (1)    New Version  Net Change

zpaqfranz-git  58.10o-1       1.72 MiB

Total Installed Size:  1.72 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                                     [####################################################################] 100%
(1/1) checking package integrity                                                                                   [####################################################################] 100%
(1/1) loading package files                                                                                        [####################################################################] 100%
(1/1) checking for file conflicts                                                                                  [####################################################################] 100%
:: Processing package changes...
(1/1) installing zpaqfranz-git                                                                                     [####################################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

$ pacman -Qil zpaqfranz-git
Name            : zpaqfranz-git
Version         : 58.10o-1
Description     : Swiss army knife for backup and disaster recovery, like 7z or RAR on steroids, with deduplicated 'snapshots' (versions). Conceptually similar to the Mac time machine, but
                  much more efficiently. zpaq 7.15 fork
Architecture    : x86_64
URL             : https://github.com/fcorbelli/zpaqfranz
Licenses        : MIT
Groups          : None
Provides        : None
Depends On      : gcc-libs  glibc
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : zpaqfranz
Replaces        : None
Installed Size  : 1761.75 KiB
Packager        : Unknown Packager
Build Date      : Sat Oct 7 20:41:57 2023
Install Date    : Sat Oct 7 20:42:44 2023
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : None

zpaqfranz-git /usr/
zpaqfranz-git /usr/bin/
zpaqfranz-git /usr/bin/zpaqfranz
zpaqfranz-git /usr/share/
zpaqfranz-git /usr/share/licenses/
zpaqfranz-git /usr/share/licenses/zpaqfranz-git/
zpaqfranz-git /usr/share/licenses/zpaqfranz-git/LICENSE
fcorbelli commented 11 months ago

Thank you, looks reasonably good to me (for being the very first attempt)

ghost commented 11 months ago

This part doesn't look good to me:

        writing 96 bytes into a region 
        of size 64 overflows the destination 

The context: I've inserted line breaks for readability:

In file included from /usr/include/string.h:548,
                 from zpaqfranz.cpp:1823:
In function 'void* memcpy(void*, const void*, size_t)',
    inlined from 'void compress_subtree_to_parent_node(
        const uint8_t*, size_t, const uint32_t*, uint64_t, uint8_t, uint8_t*)'
        at zpaqfranz.cpp:13343:11,
    inlined from 'void _Z20blake3_hasher_updateP13blake3_hasherPKvm.part.0(
        blake3_hasher*, const void*, size_t)' 
        at zpaqfranz.cpp:13413:38:
/usr/include/bits/string_fortified.h:29:33: warning: 
    'void* __builtin___memcpy_chk(
        void*, const void*, long unsigned int, long unsigned int)' 
        writing 96 bytes into a region 
        of size 64 overflows the destination 
        [-Wstringop-overflow=]
   29 |   return __builtin___memcpy_chk (__dest, __src, __len,
      |          ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
   30 |                                  __glibc_objsize0 (__dest));
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~
fcorbelli commented 11 months ago

This is a known compiler bug