Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#66240 closed defect (fixed)

diffutils @3.8 does not build on PPC Leopard, Mac OS X 10.5.8, because /usr/bin/tar does not undertand the "J" option

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: ken-cunningham-webuse
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: leopard ppc Cc:
Port: diffutils

Description

--->  Extracting diffutils-for-muniversal
DEBUG: Executing org.macports.extract (diffutils-for-muniversal)
DEBUG: Extracting: diffutils-3.8.tar.xz
DEBUG: system -W /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils-for-muniversal/diffutils-for-muniversal/work: /usr/bin/tar xJf /opt/local/var/macports/distfiles/diffutils/diffutils-3.8.tar.xz
/usr/bin/tar: invalid option -- J
Try `tar --help' or `tar --usage' for more information.
Command failed: /usr/bin/tar xJf /opt/local/var/macports/distfiles/diffutils/diffutils-3.8.tar.xz
Exit code: 64
Error: Failed to extract diffutils-for-muniversal: command execution failed

The sytem's tar command is of version 1.15.1 und knows the compression related options [Zjz].

Attachments (1)

main.log (11.1 KB) - added by ballapete (Peter "Pete" Dyballa) 2 years ago.
Main.log from PPC Leopard

Download all attachments as: .zip

Change History (13)

Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from PPC Leopard

comment:1 Changed 2 years ago by kencu (Ken)

This port is for Ventura+ only.

Did something call it in? That is not supposed to happen if so.

comment:2 Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

Cmake.

comment:3 Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

pete 251 /\ port deps cmake
Full Name: cmake @3.23.5_0
Extract Dependencies: lbzip2
Build Dependencies:   diffutils-for-muniversal, gcc7
Library Dependencies: curl, expat, zlib, bzip2, libarchive, ncurses, libuv, libgcc, legacy-support

comment:4 Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

Could be here in Portfile:

  5 # cmake does not build universal on BigSur Intel
  6 if { ${os.platform} eq "darwin" && ${os.major} >= 20 && ${build_arch} eq "x86_64"} {
  7     universal_variant no
  8 } else {
  9     PortGroup       muniversal 1.0
 10 }

comment:5 Changed 2 years ago by kencu (Ken)

Well I know cmake might want muniversal, but muniversal is not supposed to want diffutils-for-muniversal on any system prior to Ventura:

if {${os.platform} eq "darwin" && ${os.version} >= 22} {
    depends_build-append port:diffutils-for-muniversal
}

so I am not sure why you are seeing it called in.

If you are, perhaps I should have used ${os.major} vs ${os.version} ?

I did not see this on Monterey though.

comment:6 Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

Changing cmake's Portfile as advised I get now:

pete 257 /\  port deps cmake
Full Name: cmake @3.23.5_0
Extract Dependencies: lbzip2
Build Dependencies:   diffutils-for-muniversal, gcc7
Library Dependencies: curl, expat, zlib, bzip2, libarchive, ncurses, libuv, libgcc, legacy-support

comment:7 Changed 2 years ago by ken-cunningham-webuse

Owner: set to ken-cunningham-webuse
Resolution: fixed
Status: newclosed

In 256aa13aac9bb131ccd3b6712bbab89208a61c96/macports-ports (master):

muniversal diff fix: use os.major

closes: #66240

comment:8 Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

Same behaviour on PPC Tiger, Mac OS X 10.4.11. This time openssl3 depends on diffutils-for-muniversal.

comment:9 Changed 2 years ago by kencu (Ken)

Peter, I can't reproduce your issue on any systems yet 10.7+, and I don't as yet understand why you would see this being called in, but the above push changes the test to os.major instead of os.version, and I suspect that might be it.

Pls wait a bit for that change to propagate through the ports tree, then update your ports tree, and see if you are still getting it.

comment:10 Changed 2 years ago by kencu (Ken)

I don't want to change diffutils-for-muniversal to use the MacPorts' xz port, as there are too many deps. There is no gz version of that file on the gnu servers.

But as this is only supposed to be used on Ventura+ anyway, the fix I'm going to use here is to make sure that it is never called for on anything < Ventura.

comment:11 Changed 2 years ago by kencu (Ken)

don't forget to wait long enough for the fix to get to you -- no point reporting that the old muniversal still has the same problem without seeing what the fix does first.

comment:12 Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

On PPC Tiger/Mac OPS X 10.4.11 I quite a lot of portgroups directories with many different versions of muniversal-1.?.tcl files:

12 Nov 20:10 /opt/local/var/macports/sources/nue.de.rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/muniversal-1.0.tcl
12 Nov 20:10 /opt/local/var/macports/sources/nue.de.rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/muniversal-1.1.tcl
10 Jul 13:40 /opt/local/var/macports/registry/portgroups/7be4c548a811171a3664a68ff62cb9d6c363a91a119062baca5784bb2885216f-48136/muniversal-1.0.tcl
21 Mai 19:02 /opt/local/var/macports/registry/portgroups/4147e44a415f5eed54f46f4032aba2d4b30151a9169da99da6e1582700f5b453-44172/muniversal-1.1.tcl
 5 Apr  2022 /opt/local/var/macports/registry/portgroups/893d1b94a88701eab14019f30e4b457e02f4cfbc740d3c226758d2d3291ca229-43462/muniversal-1.1.tcl
 7 Mär  2022 /opt/local/var/macports/registry/portgroups/07b4e07cb087333ae0a3fbc55ef9619c307de5256e821f4a5396d14e83f1de32-47834/muniversal-1.0.tcl
 3 Mär  2021 /opt/local/var/macports/registry/portgroups/9640203d56bbef0300d2bd6ec7f069efd745a36899f30c41cc8f0fff9216bc45-47751/muniversal-1.0.tcl
30 Jan  2021 /opt/local/var/macports/registry/portgroups/43d531691d0fd887b7be6f02f42b731adc15c5c7f1d1258f371f994f1a465645-47748/muniversal-1.0.tcl
10 Nov  2020 /opt/local/var/macports/registry/portgroups/d6311f3573c6f97f1d72b2c0a66b20978d13a38aa5c931d1138c57757f5f22a6-47088/muniversal-1.0.tcl
14 Aug  2020 /opt/local/var/macports/registry/portgroups/351c2af53742af677ebdb2fa178896874ef93807e7d1d0d9a5639689a62c1959-47110/muniversal-1.0.tcl
20 Jul  2020 /opt/local/var/macports/registry/portgroups/597f3cc42de106e45daaef1288a01126a0635e148a23d0e2b6c94c68faf858ba-47120/muniversal-1.0.tcl
23 Mär  2019 /opt/local/var/macports/registry/portgroups/fe3e5bccfe935a894ca3dd6c18676410d0be3df50ba8a25e49743f4b44c7df58-45478/muniversal-1.0.tcl
11 Sep  2018 /opt/local/var/macports/registry/portgroups/d3cdf815334e0cc16d1bc5ad5fd16b7ee235a62cbd97fd664280b884092c4ceb-43912/muniversal-1.0.tcl
 9 Mai  2018 /opt/local/var/macports/registry/portgroups/2d5a1da7a3037f5aa2f285a5999ae6a994e73dc26f9752791a46d3d0aea172c8-43920/muniversal-1.0.tcl
23 Jan  2017 /opt/local/var/macports/registry/portgroups/bc096df2e403f1233bd63539659155f0df517353232408f00a2aafd7ea400660-41472/muniversal-1.0.tcl
 3 Dez  2016 /opt/local/var/macports/registry/portgroups/50bcb2ea8f822430a974d74eecee17070896c7575e5ca2500babd0964edbe87a-41615/muniversal-1.0.tcl
 2 Nov  2014 /opt/local/var/macports/registry/portgroups/487eb711e2f873206372ba8e67fdd71df3cf5a70e51719f7682654ea864793cb-39295/muniversal-1.0.tcl

Are they all needed? Can I get rid of most of them?

Note: See TracTickets for help on using tickets.