Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Linux2 platform definition is incorrect for alpha, hppa, mips, sparc #48240

Closed
ths mannequin opened this issue Sep 28, 2008 · 5 comments
Closed

The Linux2 platform definition is incorrect for alpha, hppa, mips, sparc #48240

ths mannequin opened this issue Sep 28, 2008 · 5 comments
Labels
easy stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@ths
Copy link
Mannequin

ths mannequin commented Sep 28, 2008

BPO 3990
Nosy @loewis, @doko42, @jwilk, @merwok, @stefanor, @zware
Dependencies
  • bpo-12619: Automatically regenerate platform-specific modules
  • Superseder
  • bpo-28027: Remove Lib/plat-/ files
  • Files
  • linux2-plat-upstream.diff: Patch for this Bug
  • 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 = None
    closed_at = <Date 2016-09-09.16:46:51.919>
    created_at = <Date 2008-09-28.17:23:55.925>
    labels = ['easy', 'type-bug', 'library']
    title = 'The Linux2 platform definition is incorrect for alpha, hppa, mips, sparc'
    updated_at = <Date 2016-09-09.16:46:51.917>
    user = 'https://bugs.python.org/ths'

    bugs.python.org fields:

    activity = <Date 2016-09-09.16:46:51.917>
    actor = 'zach.ware'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-09-09.16:46:51.919>
    closer = 'zach.ware'
    components = ['Library (Lib)']
    creation = <Date 2008-09-28.17:23:55.925>
    creator = 'ths'
    dependencies = ['12619']
    files = ['11644']
    hgrepos = []
    issue_num = 3990
    keywords = ['easy']
    message_count = 5.0
    messages = ['73978', '73988', '145836', '146840', '275339']
    nosy_count = 7.0
    nosy_names = ['loewis', 'doko', 'jwilk', 'eric.araujo', 'ths', 'stefanor', 'zach.ware']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = 'resolved'
    status = 'closed'
    superseder = '28027'
    type = 'behavior'
    url = 'https://bugs.python.org/issue3990'
    versions = ['Python 2.7', 'Python 3.2', 'Python 3.3']

    @ths
    Copy link
    Mannequin Author

    ths mannequin commented Sep 28, 2008

    The linux2 platform definition is incorrect for several architectures,
    namely Alpha, PA-RISC(hppa), MIPS and SPARC. On these architectures,
    Linux inherited some of the socket and dlfcn constants from the
    proprietary OS provided by the hardware manufacturer, which means they
    differ from the usual Linux constants.

    The appended patch against current SVN adresses this by introducing
    linux2-alpha, linux2-hppa, linux2-mips and linux2-sparc platforms.

    I changed only the incorrect constants on each platform and kept
    everything else the same.

    Bugs in the Debian Bugtracker related to this problem are:
    http://bugs.debian.org/499132
    http://bugs.debian.org/500383
    http://bugs.debian.org/500417
    http://bugs.debian.org/500418

    The first two bug reports carry patches for Python 2.5 and Python 2.4,
    respectively.

    The patch probably fixes also spurious python segfaults seen on the
    Debian Autobuilders for MIPS, since the RTLD_* constants for dlopen were
    incorrect. (That said, those segfaults are hard to reproduce, so this is
    a somewhat speculative conclusion.)

    @ths ths mannequin added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Sep 28, 2008
    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Sep 28, 2008

    I dislike the brute-force approach of this patch. IMO, a less intrusive
    solution should be found.

    @merwok
    Copy link
    Member

    merwok commented Oct 18, 2011

    If we keep the plat-* directories, I think too that introducing new sys.platform values seems a bit heavy-handed.

    @merwok
    Copy link
    Member

    merwok commented Nov 2, 2011

    A proposal by Martin in a python-dev email:

    I'd generate four versions of CDROM.py (with differing names), and
    provide a CDROM.py that imports the right one.

    @merwok merwok added the easy label Nov 2, 2011
    @zware
    Copy link
    Member

    zware commented Sep 9, 2016

    The platform-specific modules have been removed.

    @zware zware closed this as completed Sep 9, 2016
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    easy stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants