Skip to content

Commit

Permalink
legacy-support-devel: Update to latest master.
Browse files Browse the repository at this point in the history
Notable changes since last -devel version:

- Mismatched SDK compatibility is extended to include 15.x SDK.
- Broken 10.4 CLOCK_MONOTONIC is fixed.
- Empty modules are now (mostly) excluded from static library.
- Parallel builds now work.

Also removes redundant platforms line, making lint happier.

TESTED:
Tested both normal and -devel versions (currently identical) on
10.4-10.5 ppc, 10.5-10.6 ppc (i386 Rosetta), 10.4-10.6 i386, 10.4-12.x
x86_64, and 11.x-15.x arm64.
Builds on all tested platforms except 10.4 ppc +universal.
Passes all tests in all buildable cases.
  • Loading branch information
fhgwright committed Nov 4, 2024
1 parent e8a4830 commit 84303c0
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions devel/legacy-support/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ PortGroup muniversal 1.1

name legacy-support
categories devel
platforms darwin

maintainers {mascguy @mascguy} \
{fwright.net:fw @fhgwright} \
Expand All @@ -34,25 +33,31 @@ subport ${name} {
checksums rmd160 7d17aa039df1dd3e6d769a570bae703cea111e74 \
sha256 cc0f2c5d6d2dfe1b8cfa15b1f590856552df22dc9cfa1b2b796557ed2f54e3e1 \
size 95241

# Until this can be fixed disable parallel builds...
# https://build.macports.org/builders/ports-10.10_x86_64-builder/builds/141962/steps/install-port/logs/stdio
use_parallel_build no

pre-patch {
# until upstream can be fixed, do not include atexit symbols
# under certain circumstances, infinite recursive loops can form
delete ${worksrcpath}/src/macports_legacy_atexit.c
}
}

subport ${name}-devel {
conflicts ${name}
github.setup macports macports-legacy-support 4b3dd3692b41aeb702ba73e95dd88eca8738a5de
version 20241026
github.setup macports macports-legacy-support f1becf1234ee8065e8c8c8be8d9d0d87435eeeee
version 20241104
revision 0
livecheck.type none
checksums rmd160 8f86249c2931aa0e81d57b88e58f811cb336f7d7 \
sha256 1776dcf8bac4fc88293ee7788ca9fa42c2037abb0eeae3ab0a5e7ddd10ca0a1d \
size 99879
checksums rmd160 5bb32b95fe51e43599fcf76bc3f5af9925c4f176 \
sha256 73741106c0f039cd0f8a4dea6611c38f36bd22a145e9353a17a002113db4401b \
size 109352
set v_split [split ${release_ver} .]
set release_ver [lindex ${v_split} 0].[lindex ${v_split} 1].99
}

# Until this can be fixed disable parallel builds...
# https://build.macports.org/builders/ports-10.10_x86_64-builder/builds/141962/steps/install-port/logs/stdio
use_parallel_build no

# This port doesn't use C++ at all, except for a couple of tests which may
# fail to build with a non-OS-default stdlib setting. Since the cxx_stdlib
# selection is unimportant for the tests (which are actually only testing
Expand All @@ -61,12 +66,6 @@ use_parallel_build no

configure.cxx_stdlib

pre-patch {
# until upstream can be fixed, do not include atexit symbols
# under certain circumstances, infinite recursive loops can form
delete ${worksrcpath}/src/macports_legacy_atexit.c
}

build.env-append LD=ld \
"LIPO=/usr/bin/lipo" \
PLATFORM=${os.major} \
Expand Down

0 comments on commit 84303c0

Please sign in to comment.