You are not logged in.

#1 2023-05-29 13:46:16

screenfox
Member
Registered: 2023-05-13
Posts: 49

[Solved] Seamonkey build errors

[Solved] At least partially solved in the below linked duplicate issue. Can build, with manual patching step :-/

(Possibly a duplicate of https://bbs.archlinux.org/viewtopic.php?id=286083 - will investigate later)

So i tried to makepkg -i -s the https://aur.archlinux.org/seamonkey.git repo.
I built other AUR packages successfully before, so base development packages should be fine in general.

It pulled Python Python-2.7.18 and then i get the following error: 

 0:01.62   BASH_ARGV=([0]="/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/python/mozbuild/mozbuild/action/dump_env.py" [1]="/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/obj-x86_64-pc-linux-gnu/_virtualenvs/init/bin/python" [2]="/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/.mozconfig" [3]="    /home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15")                                                                                                        
 0:01.63 checking for Python 3... Creating Python 3 environment
 0:01.69 /home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/third_party/python/virtualenv/virtualenv.py:24: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives                                             
 0:01.69   import distutils.spawn
 0:01.69 /home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/third_party/python/virtualenv/virtualenv.py:25: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead                                                                                                               
 0:01.69   import distutils.sysconfig
 0:01.69 Using base prefix '/usr'
 0:01.69 New python executable in /home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/obj-x86_64-pc-linux-gnu/_virtualenvs/init_py3/bin/python3
 0:01.69 Also creating executable in /home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/obj-x86_64-pc-linux-gnu/_virtualenvs/init_py3/bin/python
 0:01.69 ERROR: The executable /home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/obj-x86_64-pc-linux-gnu/_virtualenvs/init_py3/bin/python3 is not functioning                                                                                                                                                    
 0:01.69 ERROR: It thinks sys.prefix is '/usr' (should be '/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/obj-x86_64-pc-linux-gnu/_virtualenvs/init_py3')                                                                                                                                                     
 0:01.69 ERROR: virtualenv is not compatible with this system or executable

With the following lines of DEBUG trailing:

 0:01.69 DEBUG: python3: running with pid 36010
 0:01.69 DEBUG: python3: sys.executable: '/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/obj-x86_64-pc-linux-gnu/_virtualenvs/init/bin/python'
 0:01.69 DEBUG: python3: executable from configuration: None
 0:01.69 DEBUG: python3: found executable: u'/usr/bin/python3'
 0:01.69 DEBUG: python3: using venv: u'/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/obj-x86_64-pc-linux-gnu/_virtualenvs/init_py3'
 0:01.69 Traceback (most recent call last):
 0:01.69   File "/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/configure.py", line 167, in <module>
 0:01.69     sys.exit(main(sys.argv))
 0:01.69   File "/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/configure.py", line 40, in main
 0:01.69     sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))
 0:01.69   File "/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/python/mozbuild/mozbuild/configure/__init__.py", line 446, in run
 0:01.69     self.include_file(path)
 0:01.69   File "/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/python/mozbuild/mozbuild/configure/__init__.py", line 437, in include_file
 0:01.69     exec_(code, self)
 0:01.69   File "/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/python/mozbuild/mozbuild/util.py", line 60, in exec_
 0:01.69     exec(object, globals, locals)
 0:01.69   File "/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/moz.configure", line 7, in <module>
 0:01.69     include('build/moz.configure/init.configure')
 0:01.69   File "/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/python/mozbuild/mozbuild/configure/__init__.py", line 746, in include_impl
 0:01.69     self.include_file(what)
 0:01.69   File "/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/python/mozbuild/mozbuild/configure/__init__.py", line 437, in include_file
 0:01.69     exec_(code, self)
 0:01.69   File "/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/python/mozbuild/mozbuild/util.py", line 60, in exec_
 0:01.69     exec(object, globals, locals)
 0:01.69   File "/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/build/moz.configure/init.configure", line 469, in <module>
 0:01.69     @imports(_from='six', _import='ensure_text')
 0:01.69   File "/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/python/mozbuild/mozbuild/configure/__init__.py", line 729, in decorator
 0:01.69     depends = DependsFunction(self, func, dependencies, when=when)
 0:01.69   File "/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/python/mozbuild/mozbuild/configure/__init__.py", line 134, in __init__
 0:01.69     sandbox._value_for(self)
 0:01.69   File "/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/python/mozbuild/mozbuild/configure/__init__.py", line 521, in _value_for
 0:01.69     return self._value_for_depends(obj)
 0:01.69   File "/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/python/mozbuild/mozbuild/util.py", line 1023, in method_call
 0:01.69     cache[args] = self.func(instance, *args)
 0:01.69   File "/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/python/mozbuild/mozbuild/configure/__init__.py", line 530, in _value_for_depends
 0:01.69     value = obj.result()
 0:01.69   File "/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/python/mozbuild/mozbuild/util.py", line 1023, in method_call
 0:01.69     cache[args] = self.func(instance, *args)
 0:01.69   File "/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/python/mozbuild/mozbuild/configure/__init__.py", line 160, in result
 0:01.69     return self._func(*resolved_args)
 0:01.69   File "/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/python/mozbuild/mozbuild/configure/__init__.py", line 1123, in wrapped
 0:01.69     return new_func(*args, **kwargs)
 0:01.69   File "/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/python/mozbuild/mozbuild/configure/__init__.py", line 788, in wrapper
 0:01.69     ret = template(*args, **kwargs)
 0:01.69   File "/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/build/moz.configure/checks.configure", line 58, in wrapped
 0:01.69     ret = func(*args, **kwargs)
 0:01.69   File "/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/python/mozbuild/mozbuild/configure/__init__.py", line 1123, in wrapped
 0:01.69     return new_func(*args, **kwargs)
 0:01.69   File "/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/build/moz.configure/init.configure", line 567, in virtualenv_python3
 0:01.69     manager.build(python)
 0:01.69   File "/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/python/mozbuild/mozbuild/virtualenv.py", line 495, in build
 0:01.69     self.create(python)
 0:01.69   File "/home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/python/mozbuild/mozbuild/virtualenv.py", line 235, in create
 0:01.69     self.virtualenv_root, result))
 0:01.69 Exception: Failed to create virtualenv: /home/<single word username redacted>/aur/seamonkey/src/seamonkey-2.53.15/obj-x86_64-pc-linux-gnu/_virtualenvs/init_py3 (virtualenv.py retcode: 100)
 0:01.70 *** Fix above errors and then restart with\
 0:01.70                "./mach build"
 0:01.70 make: *** [client.mk:114: configure] Fehler 1
==> FEHLER: Ein Fehler geschah in build().
    Breche ab...

Since i am not familiar with Python, any hint about those sys.prefix, virtualenv things is welcome, i have no idea what it means. Also, why would it pull Python 2.7 and then say it uses Python 3?
Can anyone confirm a recent successful build of seamonkey from AUR?

Last edited by screenfox (2023-06-02 10:44:42)

Offline

#2 2023-05-29 21:18:39

loqs
Member
Registered: 2014-03-06
Posts: 17,315

Re: [Solved] Seamonkey build errors

See https://bbs.archlinux.org/viewtopic.php?id=286083
Please note https://aur.archlinux.org/packages/seamonkey builds its own copy of python2 so does not need python2 to be installed and will not use the system's copy.

Offline

#3 2023-05-29 22:27:21

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [Solved] Seamonkey build errors

screenfox, please edit your post and use [ code ] tags (not quote tags) when posting output. This makes the output easier to read and provides a scroll box for long output.

https://wiki.archlinux.org/title/Genera … s_and_code
https://bbs.archlinux.org/help.php#bbcode

Offline

#4 2023-05-30 08:19:14

screenfox
Member
Registered: 2023-05-13
Posts: 49

Re: [Solved] Seamonkey build errors

Updated the code tag, will need some time to investigate the duplicate issue.

Offline

#5 2023-06-01 17:58:58

giannis-arch
Member
Registered: 2017-09-20
Posts: 20

Re: [Solved] Seamonkey build errors

seamonkey 2.53.16 with rust 1.69 & python 3.11.3 PKGBUILD

# Maintainer: Kyle Keen <keenerd@gmail.com>

pkgname=seamonkey
pkgver=2.53.16
pkgrel=1
pkgdesc="SeaMonkey internet suite with built python 3.11.3-1"
arch=('x86_64')
license=('MPL')
depends=('dbus-glib' 'gtk3' 'hunspell' 'icu'
         'libevent' 'libpulse' 'libvpx' 'libxt' 'mime-types'
         'nss' 'sqlite' 'startup-notification')
makedepends=('autoconf2.13' 'clang' 'imake' 'llvm' 'mesa' 'python'
             'rustup' 'yasm' 'unzip' 'zip' 'nasm' 'cbindgen')
optdepends=('libnotify: Notification integration')
_python2_pkgver=2.7.18
url="https://www.seamonkey-project.org/"
source=("https://archive.mozilla.org/pub/seamonkey/releases/$pkgver/source/seamonkey-$pkgver.source.tar.xz"
        "mozconfig"
        "https://www.python.org/ftp/python/$_python2_pkgver/Python-$_python2_pkgver.tar.xz"{,.asc}
        "https://github.com/BioMike/gentoo-seamonkey-patches/raw/main/seamonkey/1018_seamonkey_2.53.15-PY3.11_support.patch")
noextract=(seamonkey-${pkgver}.${_lang}.langpack.xpi)
sha256sums=('SKIP'
            'SKIP'
            'b62c0e7937551d0cc02b8fd5cb0f544f9405bafc9a54d3808ed4594812edef43'
            'SKIP'
            'SKIP')
validpgpkeys=('C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF')  # Benjamin Peterson
install="$pkgname.install"
options=(!lto)

# Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
# Note: These are for Arch Linux use ONLY. For your own distribution, please
# get your own set of keys. Feel free to contact foutrelis@archlinux.org for
# more information.
_google_api_key=AIzaSyDwr302FpOSkGRpLlUpPThNTDPbXcIn_FM

# Mozilla API keys (see https://location.services.mozilla.com/api)
# Note: These are for Arch Linux use ONLY. For your own distribution, pleas
# get your own set of keys. Feel free to contact heftig@archlinux.org for
# more information.
_mozilla_api_key=e05d56db0a694edc8b5aaebda3f2db6a

prepare() {
  sed   -i -e 's/'rU'/'r'/g' "${srcdir}/seamonkey-${pkgver}"/python/mozbuild/mozbuild/util.py
  sed   -i -e 's/'rU'/'r'/g' "${srcdir}/seamonkey-${pkgver}"/python/mozbuild/mozbuild/preprocessor.py
  sed   -i -e 's/'rU'/'r'/g' "${srcdir}/seamonkey-${pkgver}"/testing/web-platform/tests/tools/py/py/_path/common.py
  sed   -i -e 's/'rU'/'r'/g' "${srcdir}/seamonkey-${pkgver}"/build/pymake/tests/formattingtests.py
  sed   -i -e 's/'rU'/'r'/g' "${srcdir}/seamonkey-${pkgver}"/build/pymake/mkformat.py
  sed   -i -e 's/'rU'/'r'/g' "${srcdir}/seamonkey-${pkgver}"/build/pymake/mkparse.py
  sed   -i -e 's/'rU'/'r'/g' "${srcdir}/seamonkey-${pkgver}"/third_party/python/py/py/_path/common.py
  sed   -i -e 's/2.53.15/2.53.16/g'  "${srcdir}"/1018_seamonkey_2.53.15-PY3.11_support.patch

  cd "$pkgname-$pkgver"
  cp ../mozconfig .mozconfig
  cd ..
  patch -p1 -d $pkgname-$pkgver -i ../1018_seamonkey_2.53.15-PY3.11_support.patch

  rustup toolchain install 1.69.0

  echo -n "$_google_api_key" > google-api-key
  echo -n "$_mozilla_api_key" > mozilla-api-key

  cat >> .mozconfig <<EOF
  ac_add_options --with-google-location-service-api-keyfile=${PWD@Q}/google-api-key
  ac_add_options --with-google-safebrowsing-api-keyfile=${PWD@Q}/google-api-key
  ac_add_options --with-mozilla-api-keyfile=${PWD@Q}/mozilla-api-key
EOF
}

build() {
  #Python 2 is EOL https://bugzilla.mozilla.org/show_bug.cgi?id=1756371
  cd "Python-$_python2_pkgver"
  ./configure --prefix=/usr \
              --disable-optimizations \
              --without-lto \
              --without-ensurepip
  DESTDIR="$srcdir"/fakeinstall make install
  cd ..
  export PATH="$PWD/fakeinstall/usr/bin:$PATH"
  cd "$pkgname-$pkgver"

  ./mach build
}

package() {
  cd "$pkgname-$pkgver"

  DESTDIR="$pkgdir" INSTALL_SDK= ./mach install

  rm -rf "$pkgdir"/usr/lib/seamonkey/{dictionaries,hyphenation}
  ln -s /usr/share/hunspell "$pkgdir/usr/lib/seamonkey/dictionaries"
  ln -s /usr/share/hyphen "$pkgdir/usr/lib/seamonkey/hyphenation"

  install -Dm644 comm/suite/branding/seamonkey/default128.png \
          "$pkgdir/usr/share/pixmaps/seamonkey.png"

  install -Dm644 toolkit/mozapps/installer/linux/rpm/mozilla.desktop \
                "$pkgdir/usr/share/applications/seamonkey.desktop"
  sed -i 's/@MOZ_APP_DISPLAYNAME@/SeaMonkey internet suite/' \
                "$pkgdir/usr/share/applications/seamonkey.desktop"
  sed -i 's/@MOZ_APP_NAME@/seamonkey/' "$pkgdir/usr/share/applications/seamonkey.desktop"
}

Last edited by giannis-arch (2023-06-02 15:50:01)

Offline

Board footer

Powered by FluxBB