Opened 7 months ago

Last modified 2 weeks ago

#73357 assigned defect

djview @4.12.3: tar: Ignoring malformed pax extended attribute

Reported by: angelog0 (Angelo Graziosi) Owned by: NicosPavlov
Priority: Normal Milestone:
Component: ports Version: 2.11.6
Keywords: highsierra Cc: sambthompson (Sam Thompson), Dave-Allured (Dave Allured)
Port: djview

Description

As usual I did a selfupdate and then

sudo port outdated
The following installed ports are outdated:
djview                         4.12_1 < 4.12.3_0
leptonica                      1.84.1_1 < 1.86.0_0
libgpg-error                   1.57_0 < 1.58_0
libjpeg-turbo                  3.1.2_0 < 3.1.3_0
mpg123                         1.33.2_0 < 1.33.4_0
py312-cython                   3.2.2_0 < 3.2.3_0
py312-markdown                 3.8.2_0 < 3.10_0
py313-markdown                 3.8.2_0 < 3.10_0
unrar                          7.2.2_0 < 7.2.3_0

sudo port upgrade outdated
[...]

but the upgrade of djview failed in extracting. If I read correctly the main.log, the tarball does not exists.

I searched djview on Available Ports but it does not exist there too...

Attachments (1)

mainlog.tar.gz (1.7 KB) - added by angelog0 (Angelo Graziosi) 7 months ago.

Download all attachments as: .zip

Change History (9)

Changed 7 months ago by angelog0 (Angelo Graziosi)

Attachment: mainlog.tar.gz added

comment:1 in reply to:  description Changed 7 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: highsierra added
Owner: set to NicosPavlov
Port: djview added
Status: newassigned
Summary: Failure upgrading MacPorts (DJVIEW whis does not exist...)djview @4.12.3: tar: Ignoring malformed pax extended attribute
Version: 2.11.6

Replying to angelog0:

but the upgrade of djview failed in extracting. If I read correctly the main.log, the tarball does not exists.

No, the tarball exists, and the log says:

:info:extract tar: Ignoring malformed pax extended attribute
:info:extract tar: Error exit delayed from previous errors.

This is an error with the way this tarball was created. It contains extended attributes that the tar program on your old version of macOS doesn't understand.

The best solution is to bring this problem to the attention of the developers of djview. They can release a new version whose tarball is created without the use of extended attributes, since they are unnecessary. Then we can update the port to that version.

I searched djview on Available Ports but it does not exist there too...

No, the port exists. The problem that searching doesn't find it is a bug in the web site.

comment:2 Changed 5 months ago by sambthompson (Sam Thompson)

Cc: sambthompson added

comment:3 Changed 4 months ago by ryandesign (Ryan Carsten Schmidt)

I don't see a new version available yet and I don't see a bug report about this yet.

If anybody is affected by this and wants it fixed, please head over to https://sourceforge.net/p/djvu/bugs/, see if a bug has been filed, and if not, file one and then share the URL here.

comment:4 Changed 4 months ago by angelog0 (Angelo Graziosi)

I installed djview using gnutar and then reverting to the default tar (aka bsdtar). Maybe you have to abandon tar in favour of gnutar...

Last edited 4 months ago by angelog0 (Angelo Graziosi) (previous) (diff)

comment:5 Changed 4 months ago by angelog0 (Angelo Graziosi)

They are other ports affected by this issue, for example p34-clone.. which I have upgraded with the above workaround..

comment:6 in reply to:  5 Changed 4 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to angelog0:

They are other ports affected by this issue, for example p34-clone..

Yes, there are. The ticket about p5.34-clone is #73560. For each affected port, somebody needs to inform the developers that they are distributing a distfile that has compatibility problems, and ask them to fix it in the next release.

comment:7 Changed 4 months ago by ryandesign (Ryan Carsten Schmidt)

Every member of the djview 4.12.3 archive has the com.apple.provenance extended attribute; for example here it is on the top-level directory, as seen on macOS 12:

% sudo port extract djview
% ls -ld@ $(port work djview)/*
drwxr-xr-x@ 26 macports  wheel  832 Mar 16 00:54 /opt/local/var/macports/build/djview-30c12d0e/work/djview-4.12.3
	com.apple.provenance	 11 

As I've said elsewhere, upstream should package future distfiles using tar --no-xattrs.

comment:8 Changed 2 weeks ago by Dave-Allured (Dave Allured)

Cc: Dave-Allured added
Note: See TracTickets for help on using tickets.