Skip to content

Modify OS X installer builds to package liblzma for the new lzma module #57716

Closed

Description

@ned-deily
BPO 13507
Nosy @db3l, @ronaldoussoren, @ned-deily
Files
  • xz.patch
  • 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 2012-04-01.07:23:18.112>
    created_at = <Date 2011-11-30.10:07:58.694>
    labels = ['OS-mac', 'type-feature', 'build']
    title = 'Modify OS X installer builds to package liblzma for the new lzma module'
    updated_at = <Date 2012-04-01.07:23:18.111>
    user = 'https://github.com/ned-deily'

    bugs.python.org fields:

    activity = <Date 2012-04-01.07:23:18.111>
    actor = 'ned.deily'
    assignee = 'ned.deily'
    closed = True
    closed_date = <Date 2012-04-01.07:23:18.112>
    closer = 'ned.deily'
    components = ['Build', 'macOS']
    creation = <Date 2011-11-30.10:07:58.694>
    creator = 'ned.deily'
    dependencies = []
    files = ['24827']
    hgrepos = []
    issue_num = 13507
    keywords = ['patch']
    message_count = 5.0
    messages = ['148646', '152258', '155666', '157261', '157262']
    nosy_count = 6.0
    nosy_names = ['nicholas.riley', 'db3l', 'ronaldoussoren', 'nadeem.vawda', 'ned.deily', 'python-dev']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'needs patch'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue13507'
    versions = ['Python 3.3']

    Activity

    1. ned-deily commented on Nov 30, 2011

      @ned-deily
      MemberAuthor

      Since AFAIK Apple does not currently ship a version of liblzma with Mac OS X, the OS X installer build script should be modified to build and link a version in support of the new lzma module (bpo-6715).

      Mac/BuildScript/build-installer.py

      http://tukaani.org/xz/

    2. self-assigned this
      on Nov 30, 2011
    3. db3l commented on Jan 29, 2012

      @db3l
      Contributor

      I recently built the xz library on my OSX Tiger buildbot (that also does the daily DMGs via the build script), and Nadeem mentioned this ticket.

      As an FYI, I wasn't able to get the xz library (5.0.3) to configure/build as a universal build (i386/ppc) in a single step (as in the build script recipes). It appears to use some compile options incompatible with multiple -arch.

      For my buildbot, I built it twice (as i386 and ppc) and then combined the libraries (static and shared) using lipo. This appears to work for both the regular buildbot and the DMG creation.

      In peeking at the build script this approach is a bit beyond the current recipe process, so would need more work than just a new recipe. Assuming a build/lipo process is considered legitimate for release installers, of course, I'm not that sure how much I ended up "cheating".

    4. nicholasriley commented on Mar 13, 2012

      nicholasrileymannequin
      Mannequin

      The configure problem is soluble with --disable-dependency-tracking (it was the -M* options to gcc that caused the problem); something similar is used for SQLite.

      The attached patch should do it...

    5. python-dev commented on Apr 1, 2012

      python-devmannequin
      Mannequin

      New changeset 0e1177499762 by Ned Deily in branch 'default':
      Issue bpo-13507: OS X installer builds now build liblzma for the new
      http://hg.python.org/cpython/rev/0e1177499762

    6. ned-deily commented on Apr 1, 2012

      @ned-deily
      MemberAuthor

      Thanks for the patch. Applied to default for 3.3.

    7. 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-macbuildThe build process and cross-buildtype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions