Commit Graph

164 Commits

Author SHA1 Message Date
Herby Gillot 37202506ec selfupdate: make configure save file writable
Fixes: https://trac.macports.org/ticket/73899
2026-04-23 13:31:13 -04:00
Herby Gillot d2354c700f make: skip autoconf regeneration for clean/distclean goals
GNU Make tries to remake any included makefile, so `include
Mk/macports.autoconf.mk` causes the top-level `Mk/macports.autoconf.mk:`
rule to fire. That rule depends on `config.status`, whose rule re-runs
`./config.status --recheck` (effectively `./configure`), and the
autoconf.mk recipe then runs `make clean` as a side effect.

The result: `make clean` and `make distclean` both trigger a configure
run before cleaning, which is wasteful and surprising.

Skip the regeneration rules entirely when the only goals on the command
line are clean or distclean. Any other goal (or the default build)
still picks up configuration changes as before.
2026-04-18 15:58:10 -04: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
Joshua Root 8c8e12d390 regen on darwintracelib1.0/tests/Makefile.in changes
Closes: https://trac.macports.org/ticket/73697
2026-03-22 09:50:51 +11:00
Joshua Root a215377381 Avoid dscl commands entirely if not root
Apparently Crowdstrike only cares that the shell script being executed
mentions 'dscl' and 'Password', regardless of whether it's in a
conditional branch that never gets executed.

See: https://trac.macports.org/ticket/69187
2025-07-30 09:24:12 +10:00
Joshua Root d1e4f0422f Just warn if updating RUNUSR home dir fails
See: https://trac.macports.org/ticket/72676
2025-07-10 11:23:36 +10:00
Joshua Root 7fbe0c8a92 Makefiles: quote $(MAKE)
See: https://trac.macports.org/ticket/72582
2025-06-12 07:27:50 +10:00
Joshua Root fe7636bb0d Add missing codesign targets 2025-06-11 02:07:14 +10:00
Joshua Root 99cc556453 Add signify public keys for ports and archives 2025-06-09 02:37:27 +10:00
Joshua Root ad2f4ab4f9 Makefile: be more cautious changing RUNUSR home dir
Don't update the home dir unless the user otherwise appears to be the
one that we created. Also warn if it has a login shell set.

Closes: https://trac.macports.org/ticket/70938
2025-05-23 11:57:04 +10:00
Joshua Root 426ded6078 Makefile: Avoid running dscl when not root
See: https://trac.macports.org/ticket/69187
2025-05-21 13:51:02 +10:00
Joshua Root fe87793b8e Drop support for Mac OS X 10.4 Tiger
See thread: https://lists.macports.org/pipermail/macports-dev/2025-January/046014.html
2025-02-01 16:43:15 +11:00
Joshua Root e8b8b2b73a Add and document DISTKEY var for 'make dist' 2024-07-08 21:33:11 +10:00
Joshua Root 3b73d1a202 Makefile: Don't hardcode public key name 2024-07-07 00:06:13 +10:00
Clemens Lang 943cc71a28 keys: Add signify(1) public key for base
Add a new public key for use with signify(1) to verify downloaded
MacPorts base relases. Adjust the Makefile to install this key in
$prefix/share/macports/keys/base, so that we have a designated space for
additional keys (enabling future key roll-over) and separate keys, for
example for a ports tree signature.
2024-07-03 12:21:26 +10:00
Joshua Root 4c63e8d0a0 Move pingtimes into cache subdir 2024-02-25 12:47:59 +11:00
Joshua Root 0129a0c750 Split port.tcl portlist procs into their own package
These can be of use to other API clients.
2024-01-31 08:05:12 +11:00
Joshua Root 128e8cedda Update RUNUSR home dir if it's any undesired value
Fixes: https://trac.macports.org/ticket/49101
2023-09-20 09:41:55 +10:00
Joshua Root ede4db4522 Don't suggest mpstats if it's installed
Fixes: https://trac.macports.org/ticket/62930
2022-09-26 12:03:08 +10:00
Joshua Root 3f3808a09b Remove message about 2019 cxx_stdlib transition
3 years is probably long enough.
2022-09-26 12:03:08 +10:00
Joshua Root 4ce1e96415 Fix and simplify checks for Tiger
Closes: https://github.com/macports/macports-base/pull/218
Closes: https://trac.macports.org/ticket/61649
2021-04-14 04:32:32 +10:00
Joshua Root 172782bdc8 Add codesign target 2019-09-07 12:41:06 +10:00
Joshua Root f807e8c954 Advise on the cxx_stdlib change when upgrading. 2019-08-24 12:58:49 +10:00
Joshua Root 6a3e0a29ce Mention mpstats at install time 2019-08-19 13:30:51 +10:00
Joshua Root 328eb95678 Add script to set cxx_stdlib_overridden on upgrade
You can't tell whether configure.cxx_stdlib was overridden by a port if
it was not recorded at install time. This creates a problem for users
upgrading from versions of MacPorts that did not record it: rev-upgrade
will think that ports that do override it are broken, because they do
not follow the global cxx_stdlib setting.

Therefore, to ease the transition, keep a list of ports that are known
to override the setting, and when upgrading base, set the flag in the
registry for those ports if it is currently null.

Closes: https://trac.macports.org/ticket/56326
2018-05-07 09:16:15 +10:00