[MacPorts] #60176: Failure to activate cctools with bsdtar from libarchive port
MacPorts
noreply at macports.org
Wed Apr 15 17:31:27 UTC 2020
#60176: Failure to activate cctools with bsdtar from libarchive port
-------------------------+----------------------
Reporter: agouasmi | Owner: eborisch
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.2
Resolution: | Keywords:
Port: libarchive |
-------------------------+----------------------
Comment (by eborisch):
These are failing as the files it is trying to create are set readonly
''and'' have extended metadata associated with them from the buildbot for
some reason. Explicitly, they have these (in addition to a "Intentionally
left blank" empty resource fork which I've elided) attached: (this is in
the cctools tarball linked above)
{{{
xattr -l opt/local/share/man/man3/end.3.gz
[...]
com.apple.lastuseddate#PS:
00000000 A5 F5 38 5C 00 00 00 00 AA 2A 8D 10 00 00 00 00
|..8......*......|
00000010
com.apple.metadata:kMDLabel_xnqz26a5n2idcpq4xsodv4zg4u:
00000000 F2 C1 BC 50 DC 76 36 DF 4D 59 1F CB B9 DA F9 1D
|...P.v6.MY......|
00000010 E5 71 D3 83 CD 13 71 7F 02 99 A4 AC CE F6 1D 6E
|.q....q........n|
00000020 AB 6A 26 77 D2 42 F7 65 F2 E0 E4 24 9D CC DE 51
|.j&w.B.e...$...Q|
00000030 05 24 5B 8C B4 AC D9 44 13 07 A4 1F 00 81 F4 20
|.$[....D....... |
00000040 B2 3C 76 67 99 BF 26 8F F2 7B 7E C5 18 73 24 34
|.<vg..&..{~..s$4|
00000050 1A 64 E6 A9 4E 5E BC F1 2B |.d..N^..+|
00000059
}}}
So there's potentially a bug in libarchive where it tries to
[https://github.com/libarchive/libarchive/blob/master/libarchive/archive_write_disk_posix.c#L1827
set these] after the file
[https://github.com/libarchive/libarchive/blob/master/libarchive/archive_write_disk_posix.c#L1790
has been chmod()-ed] to readonly and gets an EPERM. This is similar to a
bug I helped fix to get compression working in the first place. I don't
know if the
[https://github.com/libarchive/libarchive/blob/master/libarchive/archive_write_disk_posix.c#L1786
comment in the code] about chmod() clearing ACLs applies to OSX, so that
needs some investigation. Anyone know?
But there's also the question of why the builtbot is creating this
metadata in the first place. Anyone know why these are on there or if they
are needed?
--
Ticket URL: <https://trac.macports.org/ticket/60176#comment:16>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list