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

running configure on Solaris 10 gives grep "illegal option" errors #87040

Open
martinwheatleyhome mannequin opened this issue Jan 9, 2021 · 6 comments
Open

running configure on Solaris 10 gives grep "illegal option" errors #87040

martinwheatleyhome mannequin opened this issue Jan 9, 2021 · 6 comments
Labels
3.9 only security fixes 3.10 only security fixes build The build process and cross-build type-feature A feature request or enhancement

Comments

@martinwheatleyhome
Copy link
Mannequin

martinwheatleyhome mannequin commented Jan 9, 2021

BPO 42874
Nosy @tiran, @pganssle, @miss-islington
PRs
  • bpo-42874: Remove grep -qE options for Solaris 10 compatibility #24200
  • 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 = None
    created_at = <Date 2021-01-09.12:14:13.486>
    labels = ['3.10', 'type-feature', '3.9', 'build']
    title = 'running configure on Solaris 10 gives grep "illegal option" errors'
    updated_at = <Date 2021-01-12.18:18:04.214>
    user = 'https://bugs.python.org/martinwheatleyhome'

    bugs.python.org fields:

    activity = <Date 2021-01-12.18:18:04.214>
    actor = 'miss-islington'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Build']
    creation = <Date 2021-01-09.12:14:13.486>
    creator = 'martin.wheatley.home'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 42874
    keywords = ['patch']
    message_count = 6.0
    messages = ['384720', '384811', '384951', '384953', '384955', '384972']
    nosy_count = 4.0
    nosy_names = ['christian.heimes', 'p-ganssle', 'miss-islington', 'martin.wheatley.home']
    pr_nums = ['24200']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue42874'
    versions = ['Python 3.9', 'Python 3.10']

    @martinwheatleyhome
    Copy link
    Mannequin Author

    martinwheatleyhome mannequin commented Jan 9, 2021

    I'm installin Python 3.91. on a Solaris 10 system (I known it's 'old' but I have a legacy installation to support).

    Running ./configure the following errors are seen...

    checking PROFILE_TASK... -m test --pgo
    checking for --with-lto... no
    checking for llvm-profdata... no
    grep: illegal option -- q
    Usage: grep -hblcnsviw pattern file . . .
    checking for -Wextra... yes
    checking whether /usr/sfw/bin/gcc accepts and needs -fno-strict-aliasing... yes
    checking if we can turn off /usr/sfw/bin/gcc unused result warning... no
    checking if we can turn off /usr/sfw/bin/gcc unused parameter warning... yes

    and

    checking aligned memory access is required... yes
    checking for --with-hash-algorithm... default
    checking for --with-tzpath... grep: illegal option -- q
    grep: illegal option -- E
    Usage: grep -hblcnsviw pattern file . . .
    "/usr/share/zoneinfo:/usr/lib/zoneinfo:/usr/share/lib/zoneinfo:/etc/zoneinfo"
    checking for --with-address-sanitizer... no
    checking for --with-memory-sanitizer... no
    checking for --with-undefined-behavior-sanitizer... no
    checking for t_open in -lnsl... yes
    checking for socket in -lsocket... yes

    @martinwheatleyhome martinwheatleyhome mannequin added topic-installation 3.9 only security fixes type-feature A feature request or enhancement labels Jan 9, 2021
    @ned-deily ned-deily changed the title configure errors running configure on Solaris 10 gives grep "illegal option" errors Jan 10, 2021
    @ned-deily ned-deily added build The build process and cross-build and removed topic-installation labels Jan 10, 2021
    @tiran
    Copy link
    Member

    tiran commented Jan 11, 2021

    Paul, please take a look. You added the code in commit 62972d9.

    @pganssle
    Copy link
    Member

    This particular grep statement is used to validate the tzpath variable. Apparently it is easy enough to achieve what I was going for using vanilla grep with no options, so I've created #68388 to fix the issue.

    I notice that there are other uses of -q and -E in the configure file, but presumably those are on more optional paths.

    @martin.wheatley.home: Can you check to see if #68388 fixes your issue?

    Also, can you clarify whether this happens with a plain ./configure invocation, or are you specifying ./configure --with-tzpath='/usr/share/zoneinfo:/usr/lib/zoneinfo:/usr/share/lib/zoneinfo:/etc/zoneinfo' yourself?

    @pganssle pganssle added 3.10 only security fixes labels Jan 12, 2021
    @martinwheatleyhome
    Copy link
    Mannequin Author

    martinwheatleyhome mannequin commented Jan 12, 2021

    I'll do the test

    it happens with a plain ./configure

    Many thanks
    Martin

    On Tue, 12 Jan 2021 at 15:11, Paul Ganssle <report@bugs.python.org> wrote:

    Paul Ganssle p.ganssle@gmail.com added the comment:

    This particular grep statement is used to validate the tzpath variable.
    Apparently it is easy enough to achieve what I was going for using vanilla
    grep with no options, so I've created #68388 to fix the issue.

    I notice that there are other uses of -q and -E in the configure file,
    but presumably those are on more optional paths.

    @martin.wheatley.home: Can you check to see if #68388 fixes your issue?

    Also, can you clarify whether this happens with a plain ./configure
    invocation, or are you specifying ./configure --with-tzpath='/usr/share/zoneinfo:/usr/lib/zoneinfo:/usr/share/lib/zoneinfo:/etc/zoneinfo'
    yourself?

    ----------
    versions: +Python 3.10


    Python tracker <report@bugs.python.org>
    <https://bugs.python.org/issue42874\>


    1 similar comment
    @martinwheatleyhome
    Copy link
    Mannequin Author

    martinwheatleyhome mannequin commented Jan 12, 2021

    I'll do the test

    it happens with a plain ./configure

    Many thanks
    Martin

    On Tue, 12 Jan 2021 at 15:11, Paul Ganssle <report@bugs.python.org> wrote:

    Paul Ganssle p.ganssle@gmail.com added the comment:

    This particular grep statement is used to validate the tzpath variable.
    Apparently it is easy enough to achieve what I was going for using vanilla
    grep with no options, so I've created #68388 to fix the issue.

    I notice that there are other uses of -q and -E in the configure file,
    but presumably those are on more optional paths.

    @martin.wheatley.home: Can you check to see if #68388 fixes your issue?

    Also, can you clarify whether this happens with a plain ./configure
    invocation, or are you specifying ./configure --with-tzpath='/usr/share/zoneinfo:/usr/lib/zoneinfo:/usr/share/lib/zoneinfo:/etc/zoneinfo'
    yourself?

    ----------
    versions: +Python 3.10


    Python tracker <report@bugs.python.org>
    <https://bugs.python.org/issue42874\>


    @miss-islington
    Copy link
    Contributor

    New changeset 0f66498 by Paul Ganssle in branch 'master':
    bpo-42874: Remove grep -qE options for Solaris 10 compatibility (GH-24200)
    0f66498

    @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
    3.9 only security fixes 3.10 only security fixes build The build process and cross-build type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    4 participants