help configuring and building on FreeBSD

7 views
Skip to first unread message

Riccardo Mottola

unread,
Jan 28, 2025, 1:40:25 AMJan 28
to Mozilla SeaMonkey Mailing List
Hi,

I build myself SeaMonkey on FreeBSD since they stopped providing binaries.
My last succesful build was 2.53.18.
Then I updated FreeBSD and together with 2.53.19, it wouldn't build
correctly due to rust issues.

Now I'm excited about 2.53.20. Got it.

I copied my existing .mozconfig to the new source directory.

I am then greeted with this:
% ./mach build
This mach command requires
/home/multix/.mozbuild/_virtualenvs/mach/bin/python, which wasn't found
on the system!
Consider running 'mach bootstrap' or 'mach create-mach-environment' to
create the mach virtualenvs, or set MACH_USE_SYSTEM_PYTHON to use the
system Python installation over a virtualenv.

I proceed with "mach bootstrap"

Creating default state directory: /home/multix/.mozbuild
Error running mach:

    ['bootstrap']

The error occurred in code that was called by the mach command. This is
either
a bug in the called code itself or in the way that mach is calling it.

You should consider filing a bug for this issue.

If filing a bug, please include the full output of mach, including this
error
message.

The details of the failure are as follows:

NameError: name 'sys' is not defined

  File
"/usr/home/multix/code/seamonkey-2.53.20/python/mozboot/mozboot/mach_commands.py",
line 36, in bootstrap
    bootstrapper = Bootstrapper(
                   ^^^^^^^^^^^^^
  File
"/usr/home/multix/code/seamonkey-2.53.20/python/mozboot/mozboot/bootstrap.py",
line 208, in __init__
    self.instance = cls(**args)
                    ^^^^^^^^^^^
  File
"/usr/home/multix/code/seamonkey-2.53.20/python/mozboot/mozboot/freebsd.py",
line 20, in __init__
    'py%s%s-sqlite3' % sys.version_info[0:2],


am I struggling with python here? I have 2.7, 3.9, 3.11 with python3
being 3.11

RIccardo

Riccardo Mottola

unread,
Jan 28, 2025, 2:09:15 PMJan 28
to Mozilla SeaMonkey Mailing List
Self-reply to track the answer:


'Riccardo Mottola' via [email protected] wrote:
> % ./mach build
> This mach command requires
> /home/multix/.mozbuild/_virtualenvs/mach/bin/python, which wasn't found
> on the system!
> Consider running 'mach bootstrap' or 'mach create-mach-environment' to
> create the mach virtualenvs, or set MACH_USE_SYSTEM_PYTHON to use the
> system Python installation over a virtualenv.
>
> I proceed with "mach bootstrap"
>
> Creating default state directory: /home/multix/.mozbuild
> Error running mach:
>
>     ['bootstrap']
>
>

before running "mach build" do set:

 setenv MACH_USE_SYSTEM_PYTHON 1

Riccardo
Reply all
Reply to author
Forward
0 new messages