Bug 286023 - net/gotify-cli: fix build failure
Summary: net/gotify-cli: fix build failure
Status: Closed Unable to Reproduce
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Matthias Fechner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-11 03:18 UTC by King John
Modified: 2025-04-15 04:33 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (mfechner)


Attachments
fix build failure. (1.15 KB, patch)
2025-04-11 03:18 UTC, King John
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description King John 2025-04-11 03:18:22 UTC
Created attachment 259452 [details]
fix build failure.

===> Tidying github.com/gotify/cli/v2 dependencies
cd: /usr/ports/net/gotify-cli/work/github.com/gotify/cli/v2/v2@v2.3.2: No such file or directory
*** Error code 2

Only directory github.com/gotify/cli/v2@v2.3.2 exist in work dir.
Comment 1 Matthias Fechner freebsd_committer freebsd_triage 2025-04-11 17:30:30 UTC
I cannot reproduce this, is building perfectly fine for me.
Just deleted all distfiles.

Here the build logs:
https://pkg.fechner.net/build.html?mastername=142amd64-default&build=2025-04-11_20h24m39s

Can you please be more specific, how to reproduce that error?
Comment 2 King John 2025-04-12 00:12:22 UTC
(In reply to Matthias Fechner from comment #1)
make clean ;make package in net/gotify-cli directory.
Comment 3 King John 2025-04-12 00:27:42 UTC
# pkg install gotify-cli
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
pkg: No packages available to install matching 'gotify-cli' have been
found in the repositories

Failed on 14.2R quarterly/latest.

The same is true to gotify-server.
Comment 4 Matthias Fechner freebsd_committer freebsd_triage 2025-04-15 03:42:52 UTC
(In reply to King John from comment #3)
I think the:
pkg: No packages available to install matching 'gotify-cli' have been
found in the repositories

Is related to this bug:
https://github.com/golang/go/issues/49405

If you use a new Intel CPU you maybe have the same problem.

Nothing I can do here.
It is building perfectly fine for me as you could see in the build logs.
So this seems not be related to the port or you have another problem on your system, are you sure you have no modifications in the ports.

Maybe check you variables you set.

I cannot build gotify outside poudriere, as I can already a newer go version installed that does not match the go version gotify is asking for.
Comment 5 King John 2025-04-15 04:33:05 UTC
(In reply to Matthias Fechner from comment #4)

OS version: 14.2-RELEASE-p3
CPU: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz

I reset ports to the current main (commit: b5cbae9a8991). It now can be built successfully (make package).