Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#62511 closed defect (fixed)

py-tensorflow-hub: /usr/bin/gnutar: This does not look like a tar archive

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: essandess (Steve Smith)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc:
Port: py-tensorflow-hub

Description

https://build.macports.org/builders/ports-10.8_x86_64-builder/builds/41172/steps/install-port/logs/stdio

gzip: /opt/local/var/macports/distfiles/py-tensorflow-hub/tensorflow_hub-0.11.0-py2.py3-none-any.whl has more than one entry--rest ignored
/usr/bin/gnutar: This does not look like a tar archive
/usr/bin/gnutar: Skipping to next header
/usr/bin/gnutar: Error exit delayed from previous errors

Looks like this port downloads a file that it does not intend for MacPorts to extract. In that case clear extract.only.

However, it was not discussed when this port was added why it downloads something precompiled rather than compiling it as is usual in MacPorts.

Change History (5)

comment:2 in reply to:  description ; Changed 3 years ago by essandess (Steve Smith)

Replying to ryandesign:

However, it was not discussed when this port was added why it downloads something precompiled rather than compiling it as is usual in MacPorts.

This Python wheel is just a bunch of Python files and scripts. It is not compiled.

comment:3 Changed 3 years ago by essandess (Steve Smith)

Resolution: fixed
Status: assignedclosed

In fe2dbd21f3d90bdbb941368af0132052e9b4a9f7/macports-ports (master):

py-tensorflow-hub: Bugfix extract.only

Fixes: #62511

comment:4 in reply to:  2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to essandess:

Please see https://github.com/macports/macports-ports/pull/10353

Thanks.

Replying to essandess:

Replying to ryandesign:

However, it was not discussed when this port was added why it downloads something precompiled rather than compiling it as is usual in MacPorts.

This Python wheel is just a bunch of Python files and scripts. It is not compiled.

Ok. Nevertheless, why do we download a wheel rather than package it ourselves like we normally do?

comment:5 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

And can you please fix this in all of the other ports you added that have the same problem? For example, py-tf-slim is also affected but I did not check all of your other ports.

Note: See TracTickets for help on using tickets.