Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jun 2019 21:28:46 -0600
From:      Gary Aitken <freebsd@dreamchaser.org>
To:        Michael Gmelin <freebsd@grem.de>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: force github file extension for fetch? (tar.bz2 instead of tar.gz)
Message-ID:  <f535db92-6843-d906-21cb-7c595716ee8a@dreamchaser.org>
In-Reply-To: <20190603233346.00bd6db6@bsd64.grem.de>
References:  <425f342c-58df-2d82-4d1a-9be70eb9c008@dreamchaser.org> <D6D5C64D-1710-43C1-98D9-C2878E4F71D2@grem.de> <a1894232-d5d1-476e-669c-8e5ba75ad7d6@dreamchaser.org> <20190603233346.00bd6db6@bsd64.grem.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On 6/3/19 3:33 PM, Michael Gmelin wrote:
> On Mon, 3 Jun 2019 12:46:32 -0600
> Gary Aitken <freebsd@dreamchaser.org> wrote:
>> On 6/3/19 11:19 AM, Michael Gmelin wrote:
>>>> On 3. Jun 2019, at 19:03, Gary Aitken <freebsd@dreamchaser.org>
>>>> wrote:
<snip>
>>>> 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)
>>
>> 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?
> 
> Github support is using _GITHUB_EXTRACT_SUFX (see bsd.sites.mk line
> 450):
> 
>    _GITHUB_REV=    0
>    _GITHUB_EXTRACT_SUFX=   .tar.gz
> 
> So this can't be overridden on purpose.

ah, thanks

> Are you sure you need a new wxWidgets port though? Won't
> x11-toolkits/wxgtk31 be sufficient (see also:
> https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/using-wx.html
> )

thank you, I missed that, did not think to look in handbook and didn't
recognize wxgtk as an alias for wxwidget.  I think that should work.

Gary



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f535db92-6843-d906-21cb-7c595716ee8a>