Bug 255314 - Mk/Uses/go.mk: 'make makesum' fails when lang/go is not installed
Summary: Mk/Uses/go.mk: 'make makesum' fails when lang/go is not installed
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dmitri Goutnik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-22 01:32 UTC by Yuri Victorovich
Modified: 2021-04-22 21:00 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer 2021-04-22 01:32:41 UTC
$ cd $PORTSDIR/biology/seqkit && sudo pkg delete go && make makesum
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
	go: 1.16.3,1

Number of packages to be removed: 1

The operation will free 285 MiB.

Proceed with deinstalling packages? [y/N]: y
[1/1] Deinstalling go-1.16.3,1...
[1/1] Deleting files for go-1.16.3,1: 100%
===>  License MIT accepted by the user
===>  License MIT accepted by the user
===>   seqkit-0.16.0 depends on file: /usr/local/sbin/pkg - found
===>   seqkit-0.16.0 depends on file: /usr/local/bin/go - not found
===>  License BSD3CLAUSE accepted by the user
===>   go-1.16.3,1 depends on file: /usr/local/sbin/pkg - found
=> v0.16.0.mod doesn't seem to exist in /disk-samsung/freebsd-ports/distfiles/.
=> Attempting to fetch https://golang.org/dl/v0.16.0.mod
fetch: https://golang.org/dl/v0.16.0.mod: Not Found
=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/v0.16.0.mod
fetch: http://distcache.FreeBSD.org/ports-distfiles/v0.16.0.mod: Not Found
=> Couldn't fetch it - please try to retrieve this
=> port manually into /disk-samsung/freebsd-ports/distfiles/ and try again.
*** Error code 1
Comment 1 Yuri Victorovich freebsd_committer 2021-04-22 21:00:02 UTC
The correct fix would be to make makesum depend on FETCH_DEPENDS.