From owner-freebsd-ports@freebsd.org Thu Mar 4 00:28:22 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 B69025576AE for ; Thu, 4 Mar 2021 00:28:22 +0000 (UTC) (envelope-from pauamma@gundo.com) Received: from mail.gundo.com (gibson.gundo.com [75.145.166.65]) by mx1.freebsd.org (Postfix) with ESMTP id 4DrWtY2PHdz3rqM for ; Thu, 4 Mar 2021 00:28:21 +0000 (UTC) (envelope-from pauamma@gundo.com) Received: from webmail.gundo.com (variax.gundo.com [75.145.166.70]) by mail.gundo.com (Postfix) with ESMTP id 912E94C1285; Wed, 3 Mar 2021 18:28:20 -0600 (CST) MIME-Version: 1.0 Date: Thu, 04 Mar 2021 00:28:20 +0000 From: Pau Amma To: Kevin Oberman Cc: FreeBSD Ports ML Subject: Re: Problems with updating a port due to top directory in tarball In-Reply-To: References: User-Agent: Roundcube Webmail/1.4.8 Message-ID: X-Sender: pauamma@gundo.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4DrWtY2PHdz3rqM X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of pauamma@gundo.com designates 75.145.166.65 as permitted sender) smtp.mailfrom=pauamma@gundo.com X-Spamd-Result: default: False [-3.40 / 15.00]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[pauamma]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[75.145.166.65:from]; R_SPF_ALLOW(-0.20)[+a]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[gundo.com]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[75.145.166.65:from]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7922, ipnet:75.144.0.0/13, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-ports] 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: Thu, 04 Mar 2021 00:28:22 -0000 On 2021-03-04 00:00, 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. > > Is there a way to specify the name of the restore directory? Or to > rename > it after the extract phase? I'd use the post-extract target, but maybe there's a better way. > Since loading the "Porter's Handbook" as a > single file seems to not be an option any longer, it is harder to > search > through the whole thing, I may have missed an simple way to deal with > this. Have you tried https://docs.freebsd.org/en/books/porters-handbook/ ? It loads as a single file for me.