On 8/2/17 5:00 PM, Mike Gilbert wrote:
> On Wed, Aug 2, 2017 at 4:52 PM, Anthony G. Basile <[email protected]> wrote:
>> Hi everyone,
>>
>> Upstream gnu.org used to provide .gz and .bz2 compressed tarballs for
>> gcc's source code.  With gcc-6.4.0 however, they only provide .gz and
>> .xz.  Our toolchain.eclass is written only for .bz2.  I'd like to commit
>> the attached patch to deal with this change.  A better fix would
>> autodetect whether upstream has .bz2 or .xz but I'm not sure how to
>> proceed with that.
> 
> Another option would be to move the SRC_URI setting code into the
> individual ebuilds, instead of setting it in the eclass.
> 

I would still have problems with the unpack which I can't override.



Also, [Arfrever] on IRC suggested that instead of

if tc_version_is_between 6.4.0 7 ;  then

I use

if tc_version_is_between 5.5 6 || tc_version_is_between 6.4 7 ||
tc_version_is_at_least 7.2 ; then

to better future proof the code.  The assumption here being that gnu.org
will continue using .xz instead of .bz2 going forward which seems
reasonable.

-- 
Anthony G. Basile, Ph.D.
Gentoo Linux Developer [Hardened]
E-Mail    : [email protected]
GnuPG FP  : 1FED FAD9 D82C 52A5 3BAB  DC79 9384 FA6E F52D 4BBA
GnuPG ID  : F52D4BBA

Reply via email to