Commit Graph

255 Commits

Author SHA1 Message Date
Ryan Schmidt 163752f5b7 Use "macOS" when OS version is unknown 2018-06-08 10:02:03 -05:00
Ryan Schmidt 334c703e37 Use historical OS names as appropriate
Use "Mac OS X" for 10.0-10.7, "OS X" for 10.8-10.11, "macOS" for 10.12+.

In the configure script check, direct the user to the Mac App Store to
update the OS on 10.8 and later, instead of Software Update.
2018-06-08 10:02:03 -05:00
Rainer Müller 8475592e4d build: Remove $OBJC detection and rule for .m
The OBJC compiler variable is not used anywhere in base, not even in the
suffix rule for compiling '.m' source files. As there are no Objective-C
source files, completely remove this rule.
2018-05-08 16:22:04 +02: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
Rainer Müller 68e2d2d5fe compat: Move strlcpy implementation 2018-04-02 23:20:37 +02:00
Rainer Müller bb804d1484 compat: New directory for compatibility functions
Move all implementations that are meant for older systems to their own
directory in order to be able to reuse the objects without copying *.c
files around.
2018-04-02 23:20:37 +02:00
Rainer Müller d389f5bc2e pextlib: Only build objects if necessary
For functions that might be unavailable, but we have a replacement
in the source, make the HAVE_* definitions available to Makefiles.
2018-04-02 22:52:54 +02:00
Rainer Müller 3440d0b7c8 pextlib: Add getline for legacy systems
Include an implementation of getline for old systems that do not provide
it in their libc. On macOS, getline should be available as of 10.7 Lion.

This implementation is based on NetBSD's nbcompat library:
http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/pkgtools/libnbcompat/
2018-04-02 22:52:54 +02:00
Rainer Müller 954bd3c68c configure: Remove --with-ports-tree option
This was entirely unsused and the purpose is unclear.
2018-03-28 12:56:46 +02:00
Rainer Müller 8e663b9d62 configure: Add --without-startupitems option
This controls the value of the option startupitem_install in
macports.conf. It is meant to simplify a secondary installation.
2018-03-28 12:56:41 +02:00
Eitan Adler 209e78f57a Further assume we're on a POSIX system
- GNU sed has supported -E for a long time. In addition, `-E` has been
  POSIX since 2012.  http://austingroupbugs.net/view.php?id=528#c1112

- readlink has been in POSIX even longer. Removal of this check breaks
  macOS 10.3 and lower.

  This is already broken in configure
  ```
  31   10.0*|10.1|10.1.*|10.2*|10.3*)
  32     AC_MSG_ERROR([This version of Mac OS X is not supported
  ```

- While here, change autogen.sh to use autoreconf
2017-12-22 07:57:13 +11:00
Eitan Adler ce62e0dbef Clean up a ton 2017-12-19 22:43:21 +11:00
Eitan Adler 5f988d5451 Assume we're building on a POSIX compliant 2017-12-19 22:43:21 +11:00
Eitan Adler 6403f93c15 Update config.guess 2017-12-19 22:43:21 +11:00
Ryan Schmidt bdeb4419bb Begin AS_HELP_STRINGs with lowercase letter, no trailing period 2017-12-06 04:08:10 -06:00
Kurt Hindenburg 5821508e9c Remove configure checks for launchd
Macports supports Tiger and later which all have launchd.

see https://trac.macports.org/ticket/36770
2017-10-14 10:19:32 -04:00
Rainer Müller 5f6bd08834 configure: Update Xcode version checks 2017-09-28 15:02:43 +02:00
Rainer Müller 3ba09e0620 configure: Update macOS version checks 2017-09-28 15:01:19 +02:00
Rainer Müller 4c439bc70d Prefer stdatomic over deprecated OSAtomic*
Fixes compilation warnings:

darwintrace.c:330:12: warning: 'OSAtomicCompareAndSwapPtr' is deprecated:
    first deprecated in macOS 10.12 - Use atomic_compare_exchange_strong_explicit(memory_order_relaxed)
    from <stdatomic.h> instead [-Wdeprecated-declarations]
2017-07-12 02:00:55 +02:00
Rainer Müller 9fd6b4256a Remove call to removed ACX_PTHREAD
The macro was already removed in 2fb8f13a.
2017-06-01 18:07:48 +02:00
Rainer Müller 73b8087002 Remove MP_COMPILER_ATTRIBUTE_LF_PRIVATE check
There is no code in base making use of the MP_PRIVATE define
(or LF_PRIVATE, as incorrectly documented).
2017-05-14 11:41:20 +02:00
Rainer Müller 2fb8f13a3e Remove checks for ObjC runtime and foundation
After removal of cflib and tclobjc, there is no code requiring
a Objective-C runtime or oundation libraries in base anymore.

The autoconf macros PTHREAD_LIBS or PTHREAD_CFLAGS are not used and have
no other references in the configure script. Therefore this is now also
unused code and can safely be removed.
2017-05-14 11:41:20 +02:00
Rainer Müller 055fe85275 Replace vendor tarballs with extracted source
Extract the vendor tarballs in order to avoid significant increases of
the repository size on updates. Rename the configure functionality from
MP_CONFIG_TARBALL to MP_CONFIG_SUBDIR.

Update vendor source versions: Tcl 8.5.19, tcllib 1.18
2017-01-08 15:14:16 +11:00
Joshua Root 75e25987d5 configure script updates 2016-12-16 00:56:17 +11:00
Joshua Root c128a2af59 Remove Id lines 2016-12-15 05:51:11 +11:00