From nobody Sat Jun 11 23:56:03 2022 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1A3618464A2 for ; Sat, 11 Jun 2022 23:56:08 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: from mail.evolve.de (mail.evolve.de [213.239.217.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail.evolve.de", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LLF8k6jXjz4S1S; Sat, 11 Jun 2022 23:56:06 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: by mail.evolve.de (OpenSMTPD) with ESMTP id b02e7738; Sat, 11 Jun 2022 23:56:05 +0000 (UTC) Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id c260a27a (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sat, 11 Jun 2022 23:56:05 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org Mime-Version: 1.0 (1.0) Subject: Re: Help needed with USE_GITHUB From: Michael Gmelin In-Reply-To: Date: Sun, 12 Jun 2022 01:56:03 +0200 Cc: ports@freebsd.org Message-Id: <994F7D7B-AD2B-4D2F-9E27-C15BA51F9933@freebsd.org> References: To: Philipp Ost X-Mailer: iPhone Mail (19E258) X-Rspamd-Queue-Id: 4LLF8k6jXjz4S1S X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=softfail (mx1.freebsd.org: 213.239.217.29 is neither permitted nor denied by domain of grembo@freebsd.org) smtp.mailfrom=grembo@freebsd.org X-Spamd-Result: default: False [-2.51 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[grembo]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-0.996]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.92)[-0.918]; R_SPF_SOFTFAIL(0.00)[~all]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[ports]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:213.239.192.0/18, country:DE]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N The key is correcting the typo in PORTNAME: gingko =3D> ginkgo Cheers Michael > On 12. Jun 2022, at 01:23, Philipp Ost 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 > -------->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