Package Details: s5cmd 2.2.2-3

Git Clone URL: https://aur.archlinux.org/s5cmd.git (read-only, click to copy)
Package Base: s5cmd
Description: Parallel S3 and local filesystem execution tool
Upstream URL: https://github.com/peak/s5cmd
Licenses: MIT
Submitter: k0ste
Maintainer: k0ste
Last Packager: k0ste
Votes: 1
Popularity: 0.000004
First Submitted: 2020-10-12 07:00 (UTC)
Last Updated: 2024-03-29 20:30 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

k0ste commented on 2024-02-16 05:05 (UTC)

Now I see, this flag comes from current version of makepkg.conf Option added to PKGBUILD, thanks!

k0ste commented on 2024-02-16 05:01 (UTC)

Seems your env's add's -flto=auto to FINAL. I don't have this flag

mkdir -p $WORK/b001/exe/
cd .
GOROOT_FINAL='$GOROOT' /usr/lib/go/pkg/tool/linux_amd64/link -o $WORK/b001/exe/a.out -importcfg $WORK/b001/importcfg.link -installsuffix shared -X=runtime.godebugDefault=httplaxcontentlength=1,httpmuxgo121=1,panicnil=1,tls10server=1,tlsrsakex=1,tlsunsafeekm=1 -buildmode=pie -buildid=6FkAMrJC9Op67cmkKJhb/A6wHHMeZTSE2y1_LTEj-/CenNh77Wa0y8jFYkk5LF/6FkAMrJC9Op67cmkKJhb -linkmode external -extldflags -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -X github.com/peak/s5cmd/v2/version.Version=2.2.2 -X github.com/peak/s5cmd/v2/version.GitCommit=8ea0a5ba4209fa9bfd7c43ff73f5a203f38730af -extld=gcc $WORK/b001/_pkg_.a
/usr/lib/go/pkg/tool/linux_amd64/buildid -w $WORK/b001/exe/a.out # internal
mv $WORK/b001/exe/a.out s5cmd
rm -rf $WORK/b001/
==> 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 "s5cmd"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: s5cmd 2.2.2-1 (Fri 16 Feb 2024 11:55:06 AM +07)

serjepatoff commented on 2024-02-16 03:07 (UTC) (edited on 2024-02-16 03:10 (UTC) by serjepatoff)

Build fails with the following error:

GOROOT_FINAL='$GOROOT' /usr/lib/go/pkg/tool/linux_amd64/link -o $WORK/b001/exe/a.out -importcfg $WORK/b001/importcfg.link -installsuffix shared -X=runtime.godebugDefault=httplaxcontentlength=1,httpmuxgo121=1,panicnil=1,tls10server=1,tlsrsakex=1,tlsunsafeekm=1 -buildmode=pie -buildid=EIFP3GLWFTPhAHoLUgUO/A6wHHMeZTSE2y1_LTEj-/CenNh77Wa0y8jFYkk5LF/EIFP3GLWFTPhAHoLUgUO -linkmode external -extldflags -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -X github.com/peak/s5cmd/v2/version.Version=2.2.2 -X github.com/peak/s5cmd/v2/version.GitCommit=8ea0a5ba4209 -extld=gcc /home/user/.cache/go-build/71/71ddd187a2661616820777dca1e5dd7536c7a50862bf5dfd106fba5fd30cf560-d

github.com/peak/s5cmd/v2 flag provided but not defined: -flto

usage: link [options] main.o -B note add an ELF NT_GNU_BUILD_ID note when using ELF; use "gobuildid" to generate it from the Go build ID -E entry set entry symbol name -H type set header type ...

==> ERROR: A failure occurred in build(). Aborting...


With options=(!lto) in PKGBUILD it builds perfectly.

k0ste commented on 2023-08-19 08:38 (UTC) (edited on 2023-08-19 08:38 (UTC) by k0ste)

@salta PKGBUILD is correct

Seems your AUR client lost env variables between prepare() and build()

You can check this via makepkg -Cf command

salta commented on 2023-08-19 07:56 (UTC)

v2.1.0-2 Can't install this package because $srcdir is not defined.

==> Starting build()... PKGBUILD: line 28: cd: /src/github.com/peak/s5cmd: No such file or directory

k0ste commented on 2020-10-13 02:13 (UTC)

@caltlgin, thanks.