9047 Commits

Author SHA1 Message Date
Mohamed Akram 4608bce1bc Simplify dependency upgrade message 2026-04-18 22:25:59 +04:00
Joshua Root 0d18aba5b9 Update ChangeLog 2026-04-18 13:35:40 +10:00
Joshua Root 0924d612e1 get_archive_sites_conf_values: fully qualify names
These were resolved relative to the current namespace in Tcl 9.

Closes: https://trac.macports.org/ticket/73861
2026-04-18 09:52:16 +10:00
Joshua Root d3013e0a1d Fix Tcl crash when cwd is inaccessible
Upstream: https://core.tcl-lang.org/tcl/info/7e7e1d39046945a2
2026-04-17 17:13:25 +10:00
Herby Gillot 7fe28793c0 selfupdate: preserve all configure arguments
During selfupdate, only a few configure arguments (--prefix,
--with-install-user, --with-install-group, --with-directory-mode)
were reconstructed and passed to configure. Other arguments such as
--with-curlprefix, --with-applications-dir, --with-frameworks-dir,
and tool paths were silently lost.

Save the original configure arguments to
$prefix/share/macports/configure_args during make install, and read
them back during selfupdate. Fall back to the previous reconstruction
logic when upgrading from an older version that lacks the saved file.

Closes: https://trac.macports.org/ticket/73670

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-17 02:14:12 -04:00
Clemens Lang 022fe2c6f4 registry2.0: Fix variable with Tcl 9 2026-04-14 22:15:04 +02:00
Joshua Root 2af99c0cfe thread: fix typedef redefinitions
Upstream: https://core.tcl-lang.org/thread/tktview/d3f41333aa42ca4db36821fddfae90342259381e
2026-04-14 08:58:12 +10:00
Joshua Root faf3b851f7 Remove tdbc{mysql,odbc,postgres}
We don't use these for anything, and they can be re-added if that
changes.
2026-04-14 08:19:15 +10:00
Joshua Root d54ca2c6a9 critcl: handle macos platform synonym
Tcl 9 reports the platform name as 'macosx' for some versions and as
'macos' for others.
2026-04-14 07:06:24 +10:00
Joshua Root e5aa79688a regen configure 2026-04-14 07:05:40 +10:00
Joshua Root b2e7b42ab1 autogen.sh: remove configure~
We don't really need a backup file when we have git.
2026-04-14 06:53:36 +10:00
Joshua Root 542f742b3f tdbc: fix typedef redefinitions
These definitions would be needed when building against Tcl 8 headers
but are already present in Tcl 9 headers.

Upstream: https://core.tcl-lang.org/tdbc/tktview/4d6a271e4b
2026-04-14 06:21:18 +10:00
Joshua Root c6af8b4115 sip_copy_proc: guard CPU_SUBTYPE_PTRAUTH_ABI instead 2026-04-14 05:54:35 +10:00
Joshua Root 50d9457147 sip_copy_proc: guard use of CPU_SUBTYPE_ARM64E 2026-04-14 05:30:51 +10:00
Joshua Root 3ee66457f6 portlivecheck: use replace profile with tempfd 2026-04-13 22:00:29 +10:00
Joshua Root da802ee4e6 Avoid typedef redefinition in tclsqlite3.c 2026-04-13 11:51:10 +10:00
Joshua Root 70245630c2 Fix typedef redefinition in tclDate.h 2026-04-13 10:19:54 +10:00
Clemens Lang 49cdfa72d1 port1.0: Drop utf-8 check from port lint
This is no longer required with Tcl 9, since it will outright fail on
non-UTF-8 characters in the input even without this:

| Can't map the URL 'file://$path' to a port description file ("couldn't read file "$path": invalid or incomplete multibyte or wide character").
| Please verify that the directory and portfile syntax are correct.

Note that `-encoding binary` is no longer supported and will trigger an
error. The error message above is with `-translation binary`.
2026-04-12 23:18:24 +02:00
Clemens Lang f87eccb754 Update ChangeLog 2026-04-12 20:32:39 +02:00
Clemens Lang e38ba073db configure: Disable trace mode on arm64 macOS <= 14
/bin/ln on macOS 14 is built with a set of relocations that break when
binary-patching the architecture from arm64e to arm64, leading to 'dyld:
bad bind opcode 0x19'.

Newer versions don't seem to ship such binaries, so until somebody comes
along to find a solution for these few binaries, let's just disable
tracemode support on macOS <= 14.
2026-04-12 14:29:41 +02:00
Clemens Lang 51e37f5506 tests/trace: Print log on error 2026-04-12 14:29:41 +02:00
Clemens Lang 0bbe4ad0ee port1.0: Fix running in installation directory
Attempting to normalize the userhome of the macports user might not work
if the user has not yet been created while running tests from within the
source tree, so don't do that unless running as root (where the test
that triggers this is skipped).

Additionally, the SIP workaround path for darwintrace needs to be
configurable, because the path in the installation directory might not
exist yet (CI may not have yet run make install). This path then also
needs to be added to the various sandboxes we configure.

This also means darwintrace.dylib needs to be picked up from the source
tree, so add another variable to test-tclsh.in (and pass that variable
through by modifying test-macports.conf) and check for its existence in
porttrace.tcl.
2026-04-12 14:29:41 +02:00
Clemens Lang dc9b17c26a tests: Fix trace test to run in source (and skip if root)
This also means we no longer need to reinplace the macports user's
username into the test file, so there's no longer a need to generate it
using configure.
2026-04-12 14:29:41 +02:00
Clemens Lang 2076649ac7 darwintrace: Use SIP workaround path in source tree for tests
Since we're moving to being able to run tests without installing
MacPorts, we can't rely on the SIP workaround path to exist yet. Prefer
the path from $DARWINTRACE_SIP_WORKAROUND_PATH if it is set in
darwintrace's sip_copy_proc.c, and set up a new temporary directory for
each test.
2026-04-12 14:29:41 +02:00
Clemens Lang baa4aaa118 tests: Re-enable trace test on arm64, run in source tree 2026-04-12 14:29:41 +02:00