Issues importing GCC 7.2.0 tarball
by Sam Thursfield
I got stuck in a timesink today trying to update our gcc-tarball repo.
I don't have time to fix these issues but I will write them up here
Firstly, the GCC 7.2 tarball from https://ftp.gnu.org/gnu/gcc/gcc-7.2.0/
doesn't import correctly with Lorry's `lorry.tar-importer` script, nor
with the `contrib/fast-import/import-tars.perl` script from Git that it
is based on.
The script fails with an error like this:
fatal: Unsupported command: // any later version.
fast-import: dumping crash report to fast_import_crash_10201
The exact message varies, but the issue seems to be that it's sending
source code as `git fast-import` commands, causing `git fast-import` to
raise an error.
GCC publish checksums for their release tarballs and I have verified
that the file didn't get corrupted during transmission. There `tar -t`
command doesn't report any issue with the tarball and `tar -x` can
successfully extract everything.
To add to the fun, Lorry fails to recognise that the import failed. I
have narrowed this down to what looks like a Python 2 bug. If I run the
tarball import command in my shell or using subprocess.Popen from Python
3, I get a non-zero exit code. However if I run it using
subprocess.Popen from Python 2, I get a returncode of 0.
I don't have time to dig further into either of these problems, so
instead I've manually pushed a gcc-7.2.0 tag to our delta/gcc-tarball
Sam Thursfield, Codethink Ltd.
Office telephone: +44 161 236 5575
4 years, 10 months