Skip to content

MACOSX_DEPLOYMENT_TARGET set incorrectly by configure in Python 2.7 #68602

Closed

Description

@debohman
mannequin
BPO 24414
Nosy @ronaldoussoren, @ned-deily, @debohman
PRs
  • [2.7] Backport macOS universal build and installer fixes from 3.6. #6469
  • Files
  • configure.ac_diffs.txt
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/ned-deily'
    closed_at = <Date 2018-04-15.20:30:13.057>
    created_at = <Date 2015-06-08.21:44:34.167>
    labels = ['OS-mac', 'build']
    title = 'MACOSX_DEPLOYMENT_TARGET set incorrectly by configure in Python 2.7'
    updated_at = <Date 2018-04-15.20:30:13.055>
    user = 'https://github.com/debohman'

    bugs.python.org fields:

    activity = <Date 2018-04-15.20:30:13.055>
    actor = 'ned.deily'
    assignee = 'ned.deily'
    closed = True
    closed_date = <Date 2018-04-15.20:30:13.057>
    closer = 'ned.deily'
    components = ['Build', 'macOS']
    creation = <Date 2015-06-08.21:44:34.167>
    creator = 'debohman'
    dependencies = []
    files = ['39661']
    hgrepos = []
    issue_num = 24414
    keywords = ['patch']
    message_count = 3.0
    messages = ['245038', '315292', '315339']
    nosy_count = 3.0
    nosy_names = ['ronaldoussoren', 'ned.deily', 'debohman']
    pr_nums = ['6469']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue24414'
    versions = ['Python 2.7']

    Activity

    1. debohman commented on Jun 8, 2015

      debohmanmannequin
      MannequinAuthor

      MACOSX_DEPLOYMENT_TARGET is not set correctly when building the 2.7.10 sources. This causes readline to not be included in the build.

      This appears to already be fixed in 3.4.3. I picked up the change to configure.ac from 3.4.3 and it resolved the problem.

      I am building on 10.9.5. In my case MACOSX_DEPLOYMENT_TARGET was chosen as 10.4.

      The configuration options I am using are:

      ./configure --enable-shared

      Attaching diffs.

    2. added
      build
      on Jun 8, 2015
    3. self-assigned this
      on Jun 8, 2015
    4. removed
      build
      on Jun 8, 2015
    5. ned-deily commented on Apr 14, 2018

      @ned-deily
      Member

      New changeset ee8e4b6 by Ned Deily in branch '2.7':
      [2.7] Backport macOS universal build and installer fixes from 3.6. (GH-6469)
      ee8e4b6

    6. ned-deily commented on Apr 15, 2018

      @ned-deily
      Member

      Thanks for your suggested patch and my apologies for not replying sooner. For Python 2.7.15, we have done some housecleaning of old macOS support issues and, as part of ee8e4b6 for bpo-32726, I have backported the deployment target setting behavior from 3.x, i.e. the deployment target on current systems is now set to the build system's OS level unless overridden by MACOSX_DEPLOYMENT_TARGET= on the configure command or as an environment variable. So the previous behavior can be forced by:

      ./configure MACOSX_DEPLOYMENT_TARGET=10.4

      As you noted, using a proper value for the deployment target allows things like using the system libedit readline support and standard library support for more recent system calls.

    7. changed the title [-]MACOSX_DEPLOYMENT_TARGET set incorrectly by configure[/-] [+]MACOSX_DEPLOYMENT_TARGET set incorrectly by configure in Python 2.7[/+] on Apr 15, 2018
    8. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    OS-macbuild

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions