Commit Graph

9044 Commits

Author SHA1 Message Date
Joshua Root 1ad9fd370c Expose portstartupitem::loaded without portstartupitem_run
Closes: https://trac.macports.org/ticket/74185
2026-07-04 21:24:37 +10:00
Joshua Root 756606eb77 tcl: upstream fixes for Thread build failure 2026-07-01 17:18:36 +10:00
Joshua Root 49767c8e7a Update Tcl to 9.0.4 2026-07-01 16:33:16 +10:00
Joshua Root cc211b28c7 Split package1.0 targets
See 06ff92e
2026-06-30 16:59:18 +10:00
Joshua Root 113d9b4236 Split remaining port1.0 targets
See 06ff92e
2026-06-29 14:33:40 +10:00
Joshua Root 05cc462c97 Split port1.0 targets a-d
See 0b375d0669
2026-06-26 10:27:31 +10:00
Joshua Root 06ff92efad Allow deferred loading of code for running targets
A Portfile interpreter created by mportopen will only end up actually
executing a subset of all targets, and may not execute any. Therefore,
splitting the code for running targets from that which is needed just
to parse the Portfile improves the speed of mportopen and reduces the
memory used by each open mport (which can really add up when installing
ports with large dependency graphs).

Initially only the portfetch code has been split, creating the new
portfetch_run package.
2026-06-26 10:27:31 +10:00
Fred Wright 928dc476a4 Fix possible PortIndex rsync update failure.
When attempting to update the local PortIndex from the precomputed
version for the current OS/arch, there is sometimes a preexisting
version with the correct mtime and size, but not the correct content.
With the default options, rsync fails to update it.  This change
suppresses skipping based on size and time (for the index-related
files, not the tarball).

This bug has no obvious user-visible effect, since the bad PortIndex
fails the signature check and is then regenerated, costing extra
time but not malfunctioning.  It's visible in the debug output.

TESTED:
Now correctly uses the downloaded index in a formerly failing case.
2026-06-26 09:52:30 +10:00
Joshua Root 705a14db2b portfile.7: attempt to fix syntax error
See: https://trac.macports.org/ticket/74123
2026-06-21 02:03:03 +10:00
Joshua Root dc32ae80b9 macports.tcl: add missing msgcat package
Closes: https://trac.macports.org/ticket/74119
2026-06-20 07:04:01 +10:00
Joshua Root e545ebe8c5 Defer loading of some packages 2026-06-18 05:39:46 +10:00
Joshua Root 63e51116d7 fetch_common: remove unused variable 2026-06-18 04:46:27 +10:00
Joshua Root ea7f26f176 mportsync: call getuid once outside loop
Closes: https://trac.macports.org/ticket/74113
2026-06-16 18:37:58 +10:00
Paul Guyot 4665f63232 Parse ar files for Mach-O code
Signed-off-by: Paul Guyot <pguyot@kallisys.net>
2026-06-15 21:49:26 +02:00
Clemens Lang 1db3e7ff4a darwintrace: Retry for EBADF when socket is closed
This currently triggers during the gtk3 build, suggesting there's a way
to close the file descriptors that isn't being caught by trace mode.
Work around this by re-establishing the connection when this happens.
2026-06-11 22:23:12 +02:00
Joshua Root 2229835b16 restore::main: add missing variable declaration 2026-06-11 07:34:38 +10:00
Joshua Root 445c7954c6 Document extract.methods
Also correct extract.suffix values
2026-06-04 16:49:17 +10:00
Joshua Root 52a975c0e7 Update ChangeLog 2026-06-04 16:14:49 +10:00
Joshua Root 6a6ec8067b Show phase durations at info level if using -T 2026-06-04 15:46:15 +10:00
Joshua Root 17defca435 Update ChangeLog 2026-05-25 03:51:36 +10:00
Joshua Root 22e1abd866 Add --purge option for port clean 2026-05-25 03:49:53 +10:00
Joshua Root 76d81e59d8 mportsync: clean up daily tarball's sig too 2026-05-21 21:07:58 +10:00
Joshua Root 6002a04f8c mportsync: factor out common code for extraction
Use the code that was being used to extract rsynced tarballs for the
tarball over http/ftp case as well. It looks like this also fixes the
bug that in the latter case, files no longer present in the tarball
were never deleted from the extracted location. (This appears to have
been the case since the daily tarball feature was added.)
2026-05-21 20:59:09 +10:00
Joshua Root 4266d00ade tcllib: fix tar header reading bug
Upstream: https://core.tcl-lang.org/tcllib/info/b01462dff791ba84
2026-05-21 20:36:29 +10:00
Joshua Root c6ef6c89ac mportsync: ensure ports tree is owned by root
The unprivileged macports user should not be able to modify the ports.
2026-05-21 01:36:28 +10:00