Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jun 2022 01:56:03 +0200
From:      Michael Gmelin <grembo@freebsd.org>
To:        Philipp Ost <pj@smo.de>
Cc:        ports@freebsd.org
Subject:   Re: Help needed with USE_GITHUB
Message-ID:  <994F7D7B-AD2B-4D2F-9E27-C15BA51F9933@freebsd.org>
In-Reply-To: <d0e6d400-8f1d-8817-862b-cc21c9be0ee9@smo.de>
References:  <d0e6d400-8f1d-8817-862b-cc21c9be0ee9@smo.de>

next in thread | previous in thread | raw e-mail | index | archive | help
The key is correcting the typo in PORTNAME:

gingko =3D> ginkgo

Cheers
Michael

> On 12. Jun 2022, at 01:23, Philipp Ost <pj@smo.de> wrote:
>=20
> =EF=BB=BFHi everyone,
>=20
> I'm working on a port for the Gingko library (https://github.com/ginkgo-pr=
oject/ginkgo). Since the project is hosted on GitHub, I'd like to make use o=
f the USE_GITHUB macro and its friends. Alas, I'm not able to get it to work=
:
>=20
> $ make makesum
> =3D=3D=3D>  License BSD3CLAUSE accepted by the user
> =3D=3D=3D>  License BSD3CLAUSE accepted by the user
> =3D=3D=3D>   gingko-1.4.0 depends on file: /usr/local/sbin/pkg - found
> =3D> gingko-project-gingko-v1.4.0_GH0.tar.gz doesn't seem to exist in /hom=
e/pj/FreeBSD/ports-wip/distfiles/.
> =3D> Attempting to fetch https://codeload.github.com/gingko-project/gingko=
/tar.gz/v1.4.0?dummy=3D/gingko-project-gingko-v1.4.0_GH0.tar.gz
> fetch: https://codeload.github.com/gingko-project/gingko/tar.gz/v1.4.0?dum=
my=3D/gingko-project-gingko-v1.4.0_GH0.tar.gz: Not Found
> =3D> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/ging=
ko-project-gingko-v1.4.0_GH0.tar.gz
> fetch: http://distcache.FreeBSD.org/ports-distfiles/gingko-project-gingko-=
v1.4.0_GH0.tar.gz: Not Found
> =3D> Couldn't fetch it - please try to retrieve this
> =3D> port manually into /home/pj/FreeBSD/ports-wip/distfiles/ and try agai=
n.
> *** Error code 1
>=20
> Stop.
> make[1]: stopped in /home/pj/FreeBSD/ports-wip/math/gingko
> *** Error code 1
>=20
> Stop.
> make: stopped in /home/pj/FreeBSD/ports-wip/math/gingko
> $
>=20
> Here's my WIP Makefile so far:
>=20
> --------8<--------
> PORTNAME=3D       gingko
> DISTVERSIONPREFIX=3D      v
> DISTVERSION=3D    1.4.0
> CATEGORIES=3D     math
> #MASTER_SITES=3D  GH/${GH_ACCOUNT}/${PORTNAME}/archive/refs/tags
>=20
> MAINTAINER=3D     bsd@philippost.de
> COMMENT=3D        High-performance linear algebra library for manycore sys=
tems
>=20
> LICENSE=3D        BSD3CLAUSE
> LICENSE_FILE=3D   ${WRKSRC}/LICENSE
>=20
> USE_GITHUB=3D     yes
> GH_ACCOUNT=3D     gingko-project
>=20
> .include <bsd.port.mk>
> -------->8--------
>=20
> I don't understand why this fails. Looking at other ports which make use o=
f USE_GITHUB (i.e., devel/mold), I fail to see what I miss.
> Fetching https://github.com/ginkgo-project/ginkgo/archive/refs/tags/v1.4.0=
.tar.gz succeeds, hence my attempt at overriding MASTER_SITES.
> When downloading the release sources using Firefox, I receive a file gingk=
o-1.4.0.tar.gz. I don't know where that ultimately originates from.
>=20
> What am I missing? Could someone please be so kind and enlighten me?
>=20
> Philipp
>=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?994F7D7B-AD2B-4D2F-9E27-C15BA51F9933>