Skip to content

sudo breaks some Linux distro builds using source-build  #12634

@omajid

Description

@omajid

#12576 added use of sudo in the build scripts. That breaks building under Linux distribution build systems, which mostly don't grant root access.

For example, in the Red Hat build system, using sudo leads to an error like this:

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper

Fedora has the exact same error: https://koji.fedoraproject.org/koji/getfile?taskID=78653320&volume=DEFAULT&name=build.log&offset=-4000 (this is from an unrelated build that also tries to use sudo).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions