Date: Sun, 28 Sep 2014 22:08:53 +0000 (UTC) From: Steve Wills <swills@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r369502 - in head/net/syncthing: . files Message-ID: <201409282208.s8SM8ru9092309@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: swills Date: Sun Sep 28 22:08:52 2014 New Revision: 369502 URL: http://svnweb.freebsd.org/changeset/ports/369502 QAT: https://qat.redports.org/buildarchive/r369502/ Log: net/syncthing: put back patch to avoid upgrading, avoid stripping We don't want the built in upgrading, we want to do it via ports/packages, so put back the patch to make it always say the version in use is current. Avoid stripping as stripping go binaries is explicitly unsupported, dangerous and known to cause problems. Added: head/net/syncthing/files/patch-upgrade__upgrade_supported.go (contents, props changed) Modified: head/net/syncthing/Makefile Modified: head/net/syncthing/Makefile ============================================================================== --- head/net/syncthing/Makefile Sun Sep 28 21:54:56 2014 (r369501) +++ head/net/syncthing/Makefile Sun Sep 28 22:08:52 2014 (r369502) @@ -3,7 +3,7 @@ PORTNAME= syncthing PORTVERSION= 0.9.18 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/archive/v${PORTVERSION}.tar.gz?dummy=/:group1 \ https://bitbucket.org/kardianos/osext/get/:group2 \ @@ -71,7 +71,6 @@ post-patch: do-build: # timestamp here refers to source, not build time cd ${WRKSRC} ; ${SETENV} GOPATH=${WRKSRC} go build -ldflags "-w -X main.Version v${PORTVERSION} -X main.BuildStamp 1411588890 -X main.BuildUser ${USER} -X main.BuildHost ${HOST}" github.com/syncthing/syncthing/cmd/syncthing - ${STRIP_CMD} ${WRKSRC}/syncthing do-install: ${INSTALL_PROGRAM} ${WRKSRC}/syncthing ${STAGEDIR}${PREFIX}/bin/ Added: head/net/syncthing/files/patch-upgrade__upgrade_supported.go ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/syncthing/files/patch-upgrade__upgrade_supported.go Sun Sep 28 22:08:52 2014 (r369502) @@ -0,0 +1,10 @@ +--- upgrade/upgrade_supported.go.orig 2014-09-28 21:24:06.335428814 +0000 ++++ upgrade/upgrade_supported.go 2014-09-28 21:24:59.699424791 +0000 +@@ -70,6 +70,7 @@ + + // Returns the latest release, including prereleases or not depending on the argument + func LatestRelease(prerelease bool) (Release, error) { ++ return Release{}, ErrVersionUnknown + resp, err := http.Get("https://api.github.com/repos/syncthing/syncthing/releases?per_page=10") + if err != nil { + return Release{}, err
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409282208.s8SM8ru9092309>