From owner-freebsd-ports@freebsd.org Sun Mar 7 08:35:52 2021 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 820E955E366 for ; Sun, 7 Mar 2021 08:35:52 +0000 (UTC) (envelope-from danm@prime.gushi.org) Received: from prime.gushi.org (prime.gushi.org [IPv6:2620:137:6000:10::142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "prime.gushi.org", Issuer "RapidSSL TLS DV RSA Mixed SHA256 2020 CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DtZYg2Bplz4X0L for ; Sun, 7 Mar 2021 08:35:50 +0000 (UTC) (envelope-from danm@prime.gushi.org) Received: from prime.gushi.org (localhost [127.0.0.1]) by prime.gushi.org (8.16.1/8.16.1) with ESMTPS id 1278Zkwg085999 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 7 Mar 2021 00:35:47 -0800 (PST) (envelope-from danm@prime.gushi.org) DKIM-Filter: OpenDKIM Filter v2.10.3 prime.gushi.org 1278Zkwg085999 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gushi.org; s=prime2014; t=1615106147; bh=wIPm8Hn8ZuNr4sp97reHpG6KXiH6HvMdGvlSX/X3rDY=; h=Date:From:To:cc:Subject:In-Reply-To:References; z=Date:=20Sun,=207=20Mar=202021=2000:35:45=20-0800=20(PST)|From:=20 "Dan=20Mahoney=20(Gushi)"=20|To:=20Kevin=20O berman=20|cc:=20Hiroo=20Ono=20,=0D=0A=20=20=20=20=20=20=20=20FreeBSD=20Ports=20ML=20|Subject:=20Re:=20Problems=20with=20updating= 20a=20port=20due=20to=20top=20directory=20in=20tarball|In-Reply-To :=20|References:=20=20<0538558a-880e-415d-8499-5b7ea05212e 3@gmail.com>=20; b=r/ANh3KN37NXp3z1CkSP8I5anYGE9SeSEfKbdy6ilVge6PbArbZFhW/WGAoiyl2uC rddD0zMxSX/qCS8N79go+mZ/l/7MkoHeS7r43B6TRKvDPAt6EDXYcce+uitQUjfuvc PewmrL3qcfD0R52WC6qZIv1D0+VOv6jxrPhVXK8Z3ljr3oIkE2pgMDQKTpigGwUP69 2nHvg0idwEPx9mm39pImxbn3cIchnm5zqzHg5ROj8/84lV8Ff3NnCWwPtDCZen8vhw q302DCMStY+WL/kgfsTzbPPYenMTZdHr1nIRMoeUTdzaexCA7qAv+C4j6wfHYysBNy xef05TFKDoPqg== Received: (from danm@localhost) by prime.gushi.org (8.16.1/8.16.1/Submit) id 1278Zkt2085998; Sun, 7 Mar 2021 00:35:46 -0800 (PST) (envelope-from danm) Date: Sun, 7 Mar 2021 00:35:45 -0800 (PST) From: "Dan Mahoney (Gushi)" To: Kevin Oberman cc: Hiroo Ono , FreeBSD Ports ML Subject: Re: Problems with updating a port due to top directory in tarball In-Reply-To: Message-ID: <85195dbb-d39c-8253-5031-aa5defb0ad3c@prime.gushi.org> References: <0538558a-880e-415d-8499-5b7ea05212e3@gmail.com> X-OpenPGP-Key-ID: 0x624BB249 MIME-Version: 1.0 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.2 (prime.gushi.org [0.0.0.0]); Sun, 07 Mar 2021 08:35:48 +0000 (UTC) X-Rspamd-Queue-Id: 4DtZYg2Bplz4X0L X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gushi.org header.s=prime2014 header.b=r/ANh3KN; dmarc=pass (policy=none) header.from=prime.gushi.org; spf=pass (mx1.freebsd.org: domain of danm@prime.gushi.org designates 2620:137:6000:10::142 as permitted sender) smtp.mailfrom=danm@prime.gushi.org X-Spamd-Result: default: False [-5.70 / 15.00]; R_SPF_ALLOW(-0.20)[+a]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[2620:137:6000:10::142:from]; CTYPE_MIXED_BOGUS(1.00)[]; DMARC_POLICY_ALLOW(-0.50)[prime.gushi.org,none]; DKIM_TRACE(0.00)[gushi.org:+]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2620:137:6000:10::142:from]; ASN(0.00)[asn:393507, ipnet:2620:137:6000::/44, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gushi.org:s=prime2014]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; DWL_DNSWL_MED(-2.00)[gushi.org:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; SPAMHAUS_ZRD(0.00)[2620:137:6000:10::142:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_CC(0.00)[gmail.com,freebsd.org]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-ports]; RCVD_COUNT_TWO(0.00)[2] X-Mailman-Approved-At: Sun, 07 Mar 2021 09:45:56 +0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Mar 2021 08:35:52 -0000 On Sat, 6 Mar 2021, Kevin Oberman wrote: > On Wed, Mar 3, 2021 at 10:15 PM Hiroo Ono wrote: > >> >> On 2021=E5=B9=B43=E6=9C=884=E6=97=A5=E6=9C=A8=E6=9B=9C=E6=97=A5 9=E6=99= =8200=E5=88=8632=E7=A7=92 JST, Kevin Oberman wrote: >>> I'm trying to update a port I maintain. Since I last updated, it moved >> from >>> ISC to github and it uses unusual naming conventions. >>> >>> The distfile is "irrtoolset/archive/release-5.1.3.tar.gz". I can work >>> around this with a DIST_SUBDIR and DISTNAME, but when the extract takes >>> place, the top directory in the tarball is "irrtoolset-release-5.1.3". >>> Since this is not expected, patch fails. >> >> If it is same as what is tagged as "release-5.1.3", >> >> DISTVERSIONPREFIX=3D release- >> DISTVERSION=3D 5.1.3 >> USE_GITHUB=3D yes >> GH_ACCOUNT=3D irrtoolset >> GH_PROJECT=3D irrtoolset >> >> should work. >> cf. >> >> https://docs.freebsd.org/en_US.ISO8859-1/books/porters-handbook/makefile= -distfiles.html#makefile-master_sites-github-description >> >> Thanks you very much! The update to the port has been submitted and is > awaiting a committer. Looking at the Porter's Handbook, I now understand > how it works, but it would have taken a VERY long time to figure it all o= ut > without your help! (Might have taken until the heat death of the universe= =2E) I also was hitting some issues with this for opendmarc, which recently=20 moved from Sourceforge to Github. Well, moved a while ago but put out its= =20 first github-exclusive release recently. For some of the process, portsfiles just plain didn't try to fetch. Even= =20 when I copied the relevant variables verbatim from another port. Despite having the porter's handbook open lots, there were many things I=20 had to just go read the files in /usr/ports/Mk to figure out. There could definitely be more recipes. One example: how to correctly=20 handle a port that uses an RPM. Or multiple RPMs. --=20 --------Dan Mahoney-------- Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC FB: fb.com/DanielMahoneyIV LI: linkedin.com/in/gushi Site: http://www.gushi.org ---------------------------