Commit Graph

7861 Commits

Author SHA1 Message Date
Joshua Root f47765effa HACKING: minor updates 2021-04-17 10:45:21 +10:00
Joshua Root f77071b9b9 Update reference to svn repo to git 2021-04-17 10:41:51 +10:00
Joshua Root 1b0cb607ad Adjust phrasing of message in print_tickets_url
Some users read the old message as a request to open a ticket whenever
the message was printed. It's actually printed whenever an error
occurs, which doesn't necessarily signify a bug.
2021-04-17 10:07:11 +10:00
Joshua Root d9181903e6 Set a default value for platforms 2021-04-17 09:50:32 +10:00
Joshua Root 00a263133c rev-upgrade: report cxx_stdlib mismatches better
Closes: https://trac.macports.org/ticket/56629
2021-04-17 09:01:21 +10:00
Joshua Root d484695545 Log port version and variants
Closes: https://trac.macports.org/ticket/59643
2021-04-17 08:37:24 +10:00
Joshua Root cea9833fd1 Improve dep cycle handling and reporting
Fixes: https://trac.macports.org/ticket/59289
2021-04-15 13:28:53 +10:00
Joshua Root 5f41bb41b3 Relax activate/deactivate error conditions
Treat activating an already active port and deactivating an already
inactive port as harmless no-ops. Specifying a port or version of a
port that isn't installed is still an error.

Fixes: https://trac.macports.org/ticket/56817
2021-04-15 12:13:51 +10:00
Joshua Root eed8979df0 fix sometimes missing variables 2021-04-15 04:06:05 +10:00
Joshua Root b329769a01 update initial registry version 2021-04-15 04:03:33 +10:00
Joshua Root 19c933969b Preserve only requested variants on upgrade
Fixes: https://trac.macports.org/ticket/46956
2021-04-15 03:51:13 +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 a18eb94efc Change startupitem_install default if not root
Closes: https://trac.macports.org/ticket/56743
2021-04-14 03:40:41 +10:00
Joshua Root 3f248bd82a Put trace mode socket in a subdir
Closes: https://trac.macports.org/ticket/56180
2021-04-14 03:05:28 +10:00
Joshua Root 81d6ca2547 Enable pragma fullfsync on each reg_attach
Turns out it's not persistent, unlike journal_mode = WAL.
2021-04-12 05:42:08 +10:00
Joshua Root 5779dbc66d Enable fullfsync and WAL (if possible) for registry
Using fullfsync should make the registry much less likely to experience
corruption in scenarios like writing to it when power fails.
Write-ahead logging (WAL) should reduce the window in which syncing
needs to occur, hopefully improving reliability further as well as
improving performance. However, WAL is only practical for us to use
with SQLite versions 3.22.0 and newer, because older versions didn't
allow read-only access to the database, which would mean commands like
'port installed' run with normal privileges would not work with a
root-owned installation.

Closes: https://trac.macports.org/ticket/61154
2021-04-12 04:57:56 +10:00
Clemens Lang 19468ac56d cregistry: Avoid segfault on extended result codes
When an SQLite call returned one of the extended result codes (see
https://sqlite.org/rescode.html#extended_result_code_list), the existing
switch/case did not handle that, errPtr remained uninitialized, and
following code crashed with a segmentation fault.

Avoid this by handling the extended result codes just like we're
handling SQLITE_ERROR. Additionally, default-initialize the errPtr
structure to avoid crashes in the future.

This manifested itself when attempting to uninstall ports from
a database that returned SQLITE_CORRUPT_INDEX (779).
2021-04-08 21:07:49 +02:00
Ryan Schmidt 2e957955a4 Don't use /usr/bin/git on Mavericks anymore
GitHub appears to have changed and /usr/bin/git on Mavericks is no
longer able to validate its SSL certificate.
2021-03-27 19:35:02 -05:00
Joshua Root b2617a269d support compiler.c_standard 2017
This doesn't do a whole lot since this revision of the standard only
fixes errata in the spec, but it does let you guarantee a compiler that
accepts -std=c17 for projects that insist on using it. I guess it's
theoretically possible that following the earlier erroneous spec
results in compiler behaviour that breaks some code, too, though
implementors usually won't follow the letter of the spec if it says to
do something clearly broken.
2021-03-26 01:49:30 +11:00
Joshua Root ee1ff6668a mportopen: close mport if sourcing Portfile fails 2021-03-19 10:16:59 +11:00
Joshua Root d2d987eb4d don't put _inregistry_* vars in options
The options get passed to all dependencies that may be processed, and
these values are only valid for the specific port being opened.
2021-03-16 00:32:10 +11:00
Joshua Root 0c57dda311 regenerate configure 2021-03-08 00:15:33 +11:00
Joshua Root 3c0f70bb7d Add sanity check to find_close_sdk
Closes: https://trac.macports.org/ticket/61866
2021-02-25 21:28:10 +11:00
Michael Dickens ce359d44cf Replicate make 'and' function for GNU Make 3.80
MacOS X 10.4 has this version of GNU Make; MacOS X 10.5 to current provides version 3.81, which has a working 'and' function.
2021-02-12 23:46:46 +01:00
WHR af12ddf24f Fix defining variable '__darwintrace_initialized' in header 2021-02-03 03:32:11 +11:00