eduvpn / eduvpn-common

Code to be shared between eduVPN clients
MIT License
5 stars 3 forks source link

Update error AUR #34

Closed pietro-sillano closed 5 months ago

pietro-sillano commented 6 months ago

I am not sure if you also have encountered my same issue but I am getting an error trying to update with yay on ArchLinux:

curl https://app.eduvpn.org/linux/v4/deb/app+linux@eduvpn.org.asc | gpg --import
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   449  100   449    0     0   1966      0 --:--:-- --:--:-- --:--:--  1969
gpg: key 02BB8048BBFF222C: "eduVPN Linux App Repository Signing Key <app+linux@eduvpn.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
❯ yay -S python-eduvpn-client
AUR Explicit (1): python-eduvpn-client-4.2.1-1
AUR Dependency (1): python-eduvpn_common-1.2.0-1
:: PKGBUILD up to date, skipping download: python-eduvpn-client
:: PKGBUILD up to date, skipping download: python-eduvpn_common
  2 python-eduvpn-client             (Build Files Exist)
  1 python-eduvpn_common             (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
  2 python-eduvpn_common             (Build Files Exist)
  1 python-eduvpn-client             (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
==> Making package: python-eduvpn-client 4.2.1-1 (Wed 28 Feb 2024 05:05:54 PM CET)
==> Retrieving sources...
  -> Found python-eduvpn-client-4.2.1.tar.xz
  -> Found python-eduvpn-client-4.2.1.tar.xz.asc
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    python-eduvpn-client-4.2.1.tar.xz ... Passed
    python-eduvpn-client-4.2.1.tar.xz.asc ... Skipped
==> Making package: python-eduvpn_common 1.2.0-1 (Wed 28 Feb 2024 05:05:55 PM CET)
==> Retrieving sources...
  -> Found eduvpn-common-1.2.0.tar.xz
  -> Found eduvpn-common-1.2.0.tar.xz.asc
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    eduvpn-common-1.2.0.tar.xz ... Passed
    eduvpn-common-1.2.0.tar.xz.asc ... Skipped
:: (1/2) Parsing SRCINFO: python-eduvpn-client
:: (2/2) Parsing SRCINFO: python-eduvpn_common
pub   ed25519 2023-03-01 [SC] [expires: 2033-02-26]
      227FF3F8F829D9A9314D9EBA02BB8048BBFF222C
uid           [ unknown] eduVPN Linux App Repository Signing Key <app+linux@eduvpn.org>

pub   ed25519 2023-03-01 [SC] [expires: 2033-02-26]
      227FF3F8F829D9A9314D9EBA02BB8048BBFF222C
uid           [ unknown] eduVPN Linux App Repository Signing Key <app+linux@eduvpn.org>

==> Making package: python-eduvpn_common 1.2.0-1 (Wed 28 Feb 2024 05:05:56 PM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found eduvpn-common-1.2.0.tar.xz
  -> Found eduvpn-common-1.2.0.tar.xz.asc
==> Validating source files with sha256sums...
    eduvpn-common-1.2.0.tar.xz ... Passed
    eduvpn-common-1.2.0.tar.xz.asc ... Skipped
==> Verifying source file signatures with gpg...
    eduvpn-common-1.2.0.tar.xz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting eduvpn-common-1.2.0.tar.xz with bsdtar
==> Sources are ready.
==> Making package: python-eduvpn_common 1.2.0-1 (Wed 28 Feb 2024 05:05:58 PM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
make -C exports
make[1]: Entering directory '/home/pietro/.cache/yay/python-eduvpn_common/src/eduvpn-common-1.2.0/exports'
CGO_ENABLED=1 go build -o lib/linux/amd64/libeduvpn_common-1.2.0.so -buildmode=c-shared .
disco.go:45:2: cannot find package "github.com/eduvpn/eduvpn-common/client" in any of:
        /usr/lib/go/src/github.com/eduvpn/eduvpn-common/client (from $GOROOT)
        /home/pietro/go/src/github.com/eduvpn/eduvpn-common/client (from $GOPATH)
exports.go:46:2: cannot find package "github.com/eduvpn/eduvpn-common/internal/log" in any of:
        /usr/lib/go/src/github.com/eduvpn/eduvpn-common/internal/log (from $GOROOT)
        /home/pietro/go/src/github.com/eduvpn/eduvpn-common/internal/log (from $GOPATH)
exports.go:47:2: cannot find package "github.com/eduvpn/eduvpn-common/internal/oauth" in any of:
        /usr/lib/go/src/github.com/eduvpn/eduvpn-common/internal/oauth (from $GOROOT)
        /home/pietro/go/src/github.com/eduvpn/eduvpn-common/internal/oauth (from $GOPATH)
exports.go:48:2: cannot find package "github.com/eduvpn/eduvpn-common/internal/server" in any of:
        /usr/lib/go/src/github.com/eduvpn/eduvpn-common/internal/server (from $GOROOT)
        /home/pietro/go/src/github.com/eduvpn/eduvpn-common/internal/server (from $GOPATH)
disco.go:46:2: cannot find package "github.com/eduvpn/eduvpn-common/types" in any of:
        /usr/lib/go/src/github.com/eduvpn/eduvpn-common/types (from $GOROOT)
        /home/pietro/go/src/github.com/eduvpn/eduvpn-common/types (from $GOPATH)
exports.go:49:2: cannot find package "github.com/go-errors/errors" in any of:
        /usr/lib/go/src/github.com/go-errors/errors (from $GOROOT)
        /home/pietro/go/src/github.com/go-errors/errors (from $GOPATH)
make[1]: *** [Makefile:20: lib/linux/amd64/libeduvpn_common-1.2.0.so] Error 1
make[1]: Leaving directory '/home/pietro/.cache/yay/python-eduvpn_common/src/eduvpn-common-1.2.0/exports'
make: *** [Makefile:4: build] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> Failed to install layer, rolling up to next layer.error:error making: python-eduvpn_common - exit status 4
==> Making package: python-eduvpn-client 4.2.1-1 (Wed 28 Feb 2024 05:05:59 PM CET)
==> Checking runtime dependencies...
==> Missing dependencies:
  -> python-eduvpn_common>=1.1.0
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
 -> error making: python-eduvpn-client-exit status 8
==> Making package: python-eduvpn_common 1.2.0-1 (Wed 28 Feb 2024 05:06:00 PM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found eduvpn-common-1.2.0.tar.xz
  -> Found eduvpn-common-1.2.0.tar.xz.asc
==> Validating source files with sha256sums...
    eduvpn-common-1.2.0.tar.xz ... Passed
    eduvpn-common-1.2.0.tar.xz.asc ... Skipped
==> Verifying source file signatures with gpg...
    eduvpn-common-1.2.0.tar.xz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting eduvpn-common-1.2.0.tar.xz with bsdtar
==> Sources are ready.
==> Making package: python-eduvpn_common 1.2.0-1 (Wed 28 Feb 2024 05:06:02 PM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
make -C exports
make[1]: Entering directory '/home/pietro/.cache/yay/python-eduvpn_common/src/eduvpn-common-1.2.0/exports'
CGO_ENABLED=1 go build -o lib/linux/amd64/libeduvpn_common-1.2.0.so -buildmode=c-shared .
disco.go:45:2: cannot find package "github.com/eduvpn/eduvpn-common/client" in any of:
        /usr/lib/go/src/github.com/eduvpn/eduvpn-common/client (from $GOROOT)
        /home/pietro/go/src/github.com/eduvpn/eduvpn-common/client (from $GOPATH)
exports.go:46:2: cannot find package "github.com/eduvpn/eduvpn-common/internal/log" in any of:
        /usr/lib/go/src/github.com/eduvpn/eduvpn-common/internal/log (from $GOROOT)
        /home/pietro/go/src/github.com/eduvpn/eduvpn-common/internal/log (from $GOPATH)
exports.go:47:2: cannot find package "github.com/eduvpn/eduvpn-common/internal/oauth" in any of:
        /usr/lib/go/src/github.com/eduvpn/eduvpn-common/internal/oauth (from $GOROOT)
        /home/pietro/go/src/github.com/eduvpn/eduvpn-common/internal/oauth (from $GOPATH)
exports.go:48:2: cannot find package "github.com/eduvpn/eduvpn-common/internal/server" in any of:
        /usr/lib/go/src/github.com/eduvpn/eduvpn-common/internal/server (from $GOROOT)
        /home/pietro/go/src/github.com/eduvpn/eduvpn-common/internal/server (from $GOPATH)
disco.go:46:2: cannot find package "github.com/eduvpn/eduvpn-common/types" in any of:
        /usr/lib/go/src/github.com/eduvpn/eduvpn-common/types (from $GOROOT)
        /home/pietro/go/src/github.com/eduvpn/eduvpn-common/types (from $GOPATH)
exports.go:49:2: cannot find package "github.com/go-errors/errors" in any of:
        /usr/lib/go/src/github.com/go-errors/errors (from $GOROOT)
        /home/pietro/go/src/github.com/go-errors/errors (from $GOPATH)
make[1]: *** [Makefile:20: lib/linux/amd64/libeduvpn_common-1.2.0.so] Error 1
make[1]: Leaving directory '/home/pietro/.cache/yay/python-eduvpn_common/src/eduvpn-common-1.2.0/exports'
make: *** [Makefile:4: build] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: python-eduvpn_common-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
python-eduvpn-client - exit status 8
python-eduvpn_common - exit status 4
jwijenbergh commented 6 months ago

Hi, I replied to you in the linux client repo. Is your issue resolved after deleting the cache?

pietro-sillano commented 6 months ago

No, it does not change anything..same errors

jwijenbergh commented 6 months ago

what is your go version? go --version

pietro-sillano commented 6 months ago

go version go1.22.0 linux/amd64

jwijenbergh commented 6 months ago

what if you clone this repo and build from source?

pietro-sillano commented 6 months ago

How I build it? simply with make ? i get this error

make -C exports
make[1]: Entering directory '/home/pietro/Desktop/eduvpn-common/exports'
CGO_ENABLED=1 go build -o lib/linux/amd64/libeduvpn_common-2.0.0.so -buildmode=c-shared .
exports.go:63:2: cannot find package "github.com/eduvpn/eduvpn-common/client" in any of:
        /usr/lib/go/src/github.com/eduvpn/eduvpn-common/client (from $GOROOT)
        /home/pietro/go/src/github.com/eduvpn/eduvpn-common/client (from $GOPATH)
exports.go:64:2: cannot find package "github.com/eduvpn/eduvpn-common/i18nerr" in any of:
        /usr/lib/go/src/github.com/eduvpn/eduvpn-common/i18nerr (from $GOROOT)
        /home/pietro/go/src/github.com/eduvpn/eduvpn-common/i18nerr (from $GOPATH)
exports.go:65:2: cannot find package "github.com/eduvpn/eduvpn-common/internal/log" in any of:
        /usr/lib/go/src/github.com/eduvpn/eduvpn-common/internal/log (from $GOROOT)
        /home/pietro/go/src/github.com/eduvpn/eduvpn-common/internal/log (from $GOPATH)
exports.go:66:2: cannot find package "github.com/eduvpn/eduvpn-common/types/cookie" in any of:
        /usr/lib/go/src/github.com/eduvpn/eduvpn-common/types/cookie (from $GOROOT)
        /home/pietro/go/src/github.com/eduvpn/eduvpn-common/types/cookie (from $GOPATH)
exports.go:67:2: cannot find package "github.com/eduvpn/eduvpn-common/types/error" in any of:
        /usr/lib/go/src/github.com/eduvpn/eduvpn-common/types/error (from $GOROOT)
        /home/pietro/go/src/github.com/eduvpn/eduvpn-common/types/error (from $GOPATH)
exports.go:68:2: cannot find package "github.com/eduvpn/eduvpn-common/types/server" in any of:
        /usr/lib/go/src/github.com/eduvpn/eduvpn-common/types/server (from $GOROOT)
        /home/pietro/go/src/github.com/eduvpn/eduvpn-common/types/server (from $GOPATH)
make[1]: *** [Makefile:20: lib/linux/amd64/libeduvpn_common-2.0.0.so] Error 1
make[1]: Leaving directory '/home/pietro/Desktop/eduvpn-common/exports'
make: *** [Makefile:4: build] Error 2
jwijenbergh commented 6 months ago

See https://eduvpn.github.io/eduvpn-common/gettingstarted/building/example.html

jwijenbergh commented 6 months ago

Ah! please give me the output of

go env

it seems like GO111MODULE is off for you?

try to build with

GO111MODULE=on make
pietro-sillano commented 6 months ago

it seems to work now

GO111MODULE=on make
make -C exports
make[1]: Entering directory '/home/pietro/Desktop/eduvpn-common/exports'
CGO_ENABLED=1 go build -o lib/linux/amd64/libeduvpn_common-2.0.0.so -buildmode=c-shared .
go: downloading golang.org/x/text v0.14.0
go: downloading codeberg.org/eduVPN/proxyguard v0.0.0-20240227170952-f81a10eebf39
go: downloading github.com/jwijenbergh/eduoauth-go v0.0.0-20240228154608-9a9ea667cfea
go: downloading golang.zx2c4.com/wireguard/wgctrl v0.0.0-20230429144221-925a1e7659e6
go: downloading golang.org/x/net v0.21.0
go: downloading github.com/jedisct1/go-minisign v0.0.0-20230811132847-661be99b8267
go: downloading golang.org/x/crypto v0.20.0
go: downloading golang.org/x/sys v0.17.0
mv lib/linux/amd64/libeduvpn_common-2.0.0.h lib/linux/amd64/eduvpn_common.h || true     # Normalize header name
make[1]: Leaving directory '/home/pietro/Desktop/eduvpn-common/exports'
jwijenbergh commented 6 months ago

did you disable go modules? how did you install go?

Note: Now you're building the main branch, you want to build the latest release https://github.com/eduvpn/eduvpn-common/releases/tag/1.2.0

jwijenbergh commented 5 months ago

closing due to inactivity