Skip to content

invalid path to the Build module on ubuntu #1079

@dmach

Description

@dmach
$ podman run -it ubuntu:latest
$ apt-get update
$ apt-get install obs-build
$ /usr/lib/obs-build/queryconfig
Can't locate Build.pm in @INC (you may need to install the Build module) (@INC entries checked: /usr/lib/build /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.38.2 /usr/local/share/perl/5.38.2 /usr/lib/x86_64-linux-gnu/perl5/5.38 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.38 /usr/share/perl/5.38 /usr/local/lib/site_perl) at /usr/lib/obs-build/queryconfig line 29.
BEGIN failed--compilation aborted at /usr/lib/obs-build/queryconfig line 29.

The problem seems to be in the following lines:

BEGIN {
  unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/lib/build');
}

It should the directory queryconfig is located in.
That would also make it work for git checkouts.

It seems that most of the files would require such change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions