From owner-freebsd-ports@freebsd.org Mon Jun 3 18:47:59 2019 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AA2CE15BA675 for ; Mon, 3 Jun 2019 18:47:59 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dreamchaser.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8D5FA68109 for ; Mon, 3 Jun 2019 18:47:58 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from breakaway.dreamchaser.org (breakaway [192.168.151.122]) by nightmare.dreamchaser.org (8.15.2/8.15.2) with ESMTP id x53Ilukq020044; Mon, 3 Jun 2019 12:47:56 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Reply-To: freebsd@dreamchaser.org Subject: Re: force github file extension for fetch? (tar.bz2 instead of tar.gz) To: Michael Gmelin Cc: freebsd-ports@freebsd.org References: <425f342c-58df-2d82-4d1a-9be70eb9c008@dreamchaser.org> From: Gary Aitken Message-ID: Date: Mon, 3 Jun 2019 12:46:32 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (nightmare.dreamchaser.org [192.168.151.101]); Mon, 03 Jun 2019 12:47:56 -0600 (MDT) X-Rspamd-Queue-Id: 8D5FA68109 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of freebsd@dreamchaser.org designates 66.109.141.57 as permitted sender) smtp.mailfrom=freebsd@dreamchaser.org X-Spamd-Result: default: False [-6.61 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[freebsd@dreamchaser.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dreamchaser.org]; REPLYTO_ADDR_EQ_FROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: nightmare.dreamchaser.org]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.95)[-0.946,0]; IP_SCORE(-3.35)[ip: (-8.80), ipnet: 66.109.128.0/19(-4.40), asn: 21947(-3.52), country: US(-0.06)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:21947, ipnet:66.109.128.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jun 2019 18:47:59 -0000 On 6/3/19 11:19 AM, Michael Gmelin wrote: > > >> On 3. Jun 2019, at 19:03, Gary Aitken wrote: >> >> In attempting to build a new port (prusa3d slicer) I need another new >> port (wxWidgets). The original distfile fetch of wxWidgets was a .tar.gz. >> The configure phase had an error; a search for the source of the error >> turned up a bug (old) which claimed the error was solved by fetching the >> distfile as a .tar.bz2. >> .tar.bz2 is the github *nix distfile for the port. >> >> Is it possible to force fetching of .tar.bz2 instead of .tar.gz if both are >> available? Or how does one get around the problem? >> >> 11.2-RELEASE-p4 >> relevant Makefile details: >> >> PORTNAME= wxwidgets >> DISTVERSIONPREFIX= v >> DISTVERSION= 3.1.2 >> USE_GITHUB= yes >> GH_ACCOUNT= wxWidgets >> GH_PROJECT= wxWidgets >> > > See 5.4.5 in the porters handbook (EXTRACT_SUFX) > > https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-distfiles.html Thanks; unfortunately it doesn't seem to work If I set EXTRACT_SUFX= .tar.bz2 it still fetches .tar.gz If I set DISTFILES= wxWidgets-wxWidgets-v3.1.2_GH0.tar.bz2 it also still fetches .tar.gz If I manually fetch the file and set the above variables (separate attempts), make makesum will compute the checksum for both files (if both are present), but a make extract uses the .gz, not the .bz2 If I get rid of (rename) the .gz, it ignores the .bz2 and tries to fetch the .gz. Does EXTRACT_SUFX conflict with USE_GITHUB? Thanks, Gary